[web2py] Re: Virtual Fields and Smartgrid not working as expected

2013-10-04 Thread Tim Richardson
I've been trying to debug this but the learning curve is steep. If you generate a query like so: db.person.full_name = Field.Virtual('full_name',lambda row: 999) qry = db.person set = db(qry) res = set.select() then the virtual field is not included in the SQL sent to the database.

Re: [web2py] Re: web2py 2.7.1 is OUT

2013-10-04 Thread 黄祥
is the order field on grid is change? e.g. db.define_table('purchase_requisition_header', Field('purchase_requisition_no'), Field('purchase_requisition_date', 'date', notnull=True), Field('supplier', 'reference supplier', notnull=True), Field('payment_type', 'reference payment_type'

[web2py] chat-tornado in web2py using websocket_messaging.py

2013-10-04 Thread Junior Phanter
greetings , sorry my bad english , I 'm trying to implement a chat using the tornado and websocket_messaging.py , but I'm having trouble hearing the tornado server . the server receives the tornado MESSAGES using : websocket_send ( ' http://127.0.0.1: ', ' Hello World ', ' mykey ', ' mygrou

[web2py] Re: HTML error code 206, due to headers not set

2013-10-04 Thread Massimo Di Pierro
This is where the 206 status is set and looks to me the headers are set. Can anybody reproduce the problem? Can you show us the controller? On Friday, 4 October 2013 14:16:04 UTC-5, Niphlod wrote: > > if you get back only that header, something is wrong with your setup. > web2py adds a bunch of

Re: [web2py] Re: web2py 2.7.1 is OUT

2013-10-04 Thread Alfonso de la Guarda
Massimo, Let me fix that, i am checking also for more possible bugs using inspect code from pycharm Saludos, Alfonso de la Guarda Twitter: @alfonsodg Redes sociales: alfonsodg Telef. 991935157 1024D/B23B24A4 5469 ED92 75A3 BBDB FD6B 58A5 54A1 851D B23B 24A4

[web2py] Re: How to serve multiple domains and multiple applications on nginx using pattern-based route

2013-10-04 Thread IVINH
Nginx config: server { listen 80; server_name demo.ivinh.com www.demo.ivinh.com; include deny_admin.txt; access_log logs/demo.ivinh.com.access.log; error_log logs/demo.ivinh.com.error.log; location / { proxy_pass http://127.0.0.1:86; proxy_set_header Host demo.ivinh.com; include proxy.

[web2py] Re: web2py 2.7.1 is OUT

2013-10-04 Thread Massimo Di Pierro
Ouch. I will post 2.7.2 asap. On Friday, 4 October 2013 21:13:24 UTC-5, IVINH wrote: > > LDAP_AUTH: > > File "D:\web2py\gluon\contrib\login_methods\ldap_auth.py", line 645 > if username is None: >^ > IndentationError: unindent does not match any outer indentation level

[web2py] Re: Web2py on apache2 is slow

2013-10-04 Thread Massimo Di Pierro
I agree with this assessment. The last issue is a problem we need to address in the install scripts. Could you make a patch? On Thursday, 3 October 2013 15:34:04 UTC-5, Thomas J. wrote: > > I've recently been comparing Web2py and PHP, this is what i found, maybe > it helps: > > 1.: PHP is faster

[web2py] Re: Web2py admin crashes

2013-10-04 Thread Massimo Di Pierro
I did not hear this before. What is the problem with the update button. Can you explain it in more detail? What are you upgrading from and to? On Friday, 4 October 2013 14:57:32 UTC-5, Dave S wrote: > > On Thursday, October 3, 2013 10:51:37 AM UTC-7, Dave S wrote: >> >> >> On Thursday, October 3,

[web2py] Re: web2py 2.7.1 is OUT

2013-10-04 Thread IVINH
LDAP_AUTH: File "D:\web2py\gluon\contrib\login_methods\ldap_auth.py", line 645 if username is None: ^ IndentationError: unindent does not match any outer indentation level Vào 07:54:25 UTC+7 Thứ bảy, ngày 05 tháng mười năm 2013, Massimo Di Pierro đã viết: > > Chang

[web2py] web2py 2.7.1 is OUT

2013-10-04 Thread Massimo DiPierro
Changelog - jQuery 1.10.2 - codemirror 3.18, thanks Paolo - namespaces in T("Welcome", ns="namespace"), thanks jamarcer (experimental) - more Auth options, thanks Charles - more admin configuration, thanks Roberto - new gluon.contrib.strip.StripeForm for PCI compliant payments - webclient can hend

[web2py] Re: Print-friendly css for SQLTABLE?

2013-10-04 Thread Derek
I use 'save the trees' which is a browser plugin that allows me to select what to print. Of course, it only works if you have it installed...\ On Friday, October 4, 2013 3:19:40 PM UTC-7, Dave S wrote: > > > > On Friday, October 4, 2013 2:41:29 PM UTC-7, Paolo Caruccio wrote: >> >> @media prin

[web2py] How to serve multiple domains and multiple applications on nginx using pattern-based route

2013-10-04 Thread Tito Garrido
Hi Folks, I am using the default setup from the book for nginx: scripts/setup-web2py-nginx-uwsgi-ubuntu.sh And my routes are using *pattern-based* system. The question is, how can I route www.domain1.com to app1 and www.domain2.comto app2? nginx config in sites-enabled: *server { list

[web2py] Re: MMS Gateway

2013-10-04 Thread Derek
That is off topic, but have you taken a look at Twilio? On Friday, October 4, 2013 10:11:43 AM UTC-7, Pankaj Pathak wrote: > > kindly Suggest me MMS Gateway > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code

[web2py] Re: Web2py on apache2 is slow

2013-10-04 Thread Derek
Yes, Python will be slower than PHP. PHP doesn't have a VM or garbage collection. However, Python should be adequate for reading files and such. As others have said, post your benchmarks and post your code. Chances are there are things you can do in the code to speed it up, and make it's perfor

[web2py] Re: onselect ajax...

2013-10-04 Thread Derek
This question gets asked frequently here, there should be a FAQ somewhere and this should be in it... Is this what you want? http://www.web2pyslices.com/slice/show/1467/cascading-drop-down-lists-with-ajax On Friday, October 4, 2013 2:04:41 PM UTC-7, Avi A wrote: > > I was exactly pasting it actu

[web2py] Re: Print-friendly css for SQLTABLE?

2013-10-04 Thread Dave S
On Friday, October 4, 2013 2:41:29 PM UTC-7, Paolo Caruccio wrote: > > @media print { > a[href]:after { > content:""; >} > } > > The above code should hide all the links within anchor tags in the printed > page. Please put the rule at the bottom of your custom css file or wrap

Re: [web2py] Re: Uwsgi-error: ImportError: No module named 'globals'

2013-10-04 Thread Johann Spies
On 13 September 2013 18:12, nils wrote: > I had a problem along the same lines, it turned out that uwsgi was compile > with python 3.3 support. > > This was Ubuntu 13.04 and I installed it via apt-get , check the entire > uwsgi logs for the python version. > > > Thanks for this. I only came bac

[web2py] Re: Print-friendly css for SQLTABLE?

2013-10-04 Thread Paolo Caruccio
@media print { a[href]:after { content:""; } } The above code should hide all the links within anchor tags in the printed page. Please put the rule at the bottom of your custom css file or wrap it in a

[web2py] Re: onselect ajax...

2013-10-04 Thread Avi A
I was exactly pasting it actually :). def echo(): value = request.post_vars.f_item_category filtered_sub=db(db.t_sub_categories.f_category_id == value).select(db.t_sub_categories.ALL,orderby=db.t_sub_categories.f_sub_category_name, cache=(cache.ram,10),cacheable=True) return dict(fi

[web2py] Re: admin disabled... or why is parameters_80.py needed

2013-10-04 Thread Niphlod
On Friday, October 4, 2013 9:30:17 PM UTC+2, Gour wrote: > > On Fri, 4 Oct 2013 11:53:22 -0700 (PDT) > Niphlod > wrote: > > > as often, you're making things much more complicated then they really > > are. > > I don't understand? > if you read the code of admin, you'll quickly realize. >

[web2py] Re: onselect ajax...

2013-10-04 Thread Niphlod
are you asking to me to read your mind ? :D On Friday, October 4, 2013 10:26:24 PM UTC+2, Avi A wrote: > > One more question please, > so now I have to build the filtered (with the value) sub categories select > object's html in the controller and return into the target div? > On Friday, October

[web2py] Re: onselect ajax...

2013-10-04 Thread Avi A
One more question please, so now I have to build the filtered (with the value) sub categories select object's html in the controller and return into the target div? On Friday, October 4, 2013 11:08:30 PM UTC+3, Avi A wrote: > > That works...Awesome thanks. > > On Friday, October 4, 2013 10:14:37

[web2py] Re: Print-friendly css for SQLTABLE?

2013-10-04 Thread Dave S
On Wednesday, September 25, 2013 12:51:35 PM UTC-7, Dave S wrote: > > Is there an example of setting up print-friendly CSS for a page that uses > SQLTABLE? If not, suggestions as to which file > (...project/static/css/web2py.css, web2py_bootstrap.css, ...) I should > start in to roll my own? >

[web2py] Re: onselect ajax...

2013-10-04 Thread Avi A
That works...Awesome thanks. On Friday, October 4, 2013 10:14:37 PM UTC+3, Niphlod wrote: > > you where trying the exact same thing on the onselect, and I left it there > as it was. > If you want to send the value of the selected item as a post variable, use > > ajax('echo', '#t_items_f_item_ca

[web2py] Re: admin disabled... or why is parameters_80.py needed

2013-10-04 Thread Gour
On Fri, 4 Oct 2013 14:41:30 -0400 Richard Vézina wrote: > This may help! Thank you. I'll try to learn something about nginx from it, but let me say that I do NOT have access to the setup of nginx at the front-end and therefore not sure, how much I can do via custom *.conf file. Of course, I cou

[web2py] Re: Web2py admin crashes

2013-10-04 Thread Dave S
On Thursday, October 3, 2013 10:51:37 AM UTC-7, Dave S wrote: > > > On Thursday, October 3, 2013 8:28:52 AM UTC-7, Joe Magaro wrote: >> >> Hi, >> >> All was working well, until today I went and clicked "administrative >> interface" for my site, and it issues a ticket. >> >> Internal errorTicket i

[web2py] Re: inversion between values and column in sqlite3

2013-10-04 Thread Massimo Di Pierro
db.executesql("INSERT INTO TBLB (PersonID, LastName, FirstName, Address) VALUES (test, example, tutorial, release)") should be db.executesql("INSERT INTO TBLB (PersonID, LastName, FirstName, Address) VALUES ('test', 'example', 'tutorial', 'release')") On Friday, 4 October 2013 07:52:34 UTC-5,

[web2py] Re: Inversion between column and values on DAL for sqlite3

2013-10-04 Thread Massimo Di Pierro
table dateK does not exist. On Friday, 4 October 2013 07:37:12 UTC-5, loïc lauréote wrote: > > Hi, i have an inversion in my code when i inject datas with sql statement. > message : "Column test doesn't exists" > > > I don't understand why. > I'm on windows 7 and python 27 > > > code : > > > im

[web2py] Re: admin disabled... or why is parameters_80.py needed

2013-10-04 Thread Gour
On Fri, 4 Oct 2013 11:53:22 -0700 (PDT) Niphlod wrote: > as often, you're making things much more complicated then they really > are. I don't understand? > web2py "calculates" what password_portnumber.py to use seeing where > the server listens to. It has (and can't have) knowledge of any > pr

[web2py] inversion between values and column in sqlite3

2013-10-04 Thread loïc lauréote
Hi, i use dal.py and for sqlite i have an inversion. Do you have the same problem ? thx message : test column doesn't exist. conf : windows 7, python27 *source code :* import re from dal import DAL, Field if __name__ == '__main__': db = DAL(('sqlite://openbioreactor.sqlite','mysql:/

[web2py] Re: Web2py on apache2 is slow

2013-10-04 Thread Thomas J.
I've recently been comparing Web2py and PHP, this is what i found, maybe it helps: 1.: PHP is faster whereever it can do stuff within the interpreter, that includes handling post/get-data or templates. The PHP interpreter is written in C, so these things are really fast, whereas Web2py has to t

[web2py] Inversion between column and values on DAL for sqlite3

2013-10-04 Thread loïc lauréote
Hi, i have an inversion in my code when i inject datas with sql statement. message : "Column test doesn't exists" I don't understand why. I'm on windows 7 and python 27 code : import re from dal import DAL, Field if __name__ == '__main__': dicti = {'name':12} bidul = 'bidul' db = DAL(

[web2py] Hosting para Web2py

2013-10-04 Thread Juan Carlos Gonzales Vitte
Hola a todos mi nombres es Juan Carlos, quiero implementar una pagina web en web2py, y desearia que alguien me pueda recomendar un hosting para la pagina, tambien quiero saber con quienes podriamos conversar sobre web2py, tenia la idea de hacerlo mas conocido enviando representantes o expositore

[web2py] Re: DAL: read tagged data with handle?

2013-10-04 Thread Martin Zach
Am Freitag, 4. Oktober 2013 02:03:20 UTC+2 schrieb Anthony: > > >From the above code, it appears db.product.tags is a list:reference > field, so it stores the id's of the referenced tag records. In readTagTest, > "b" >is a Row object, so if you want the id of that row, you should use > b.id:

[web2py] Re: Microsoft SQL Server Migrate Trying to Create New Table instead of Editing Old One

2013-10-04 Thread PN
So, in theory, will the following process fix the issue? 1. Start web2py with old DAL definitions and migrate = True. This should create the .table files as the old structure 2. Then change the DAL to reflect the new database structure, migrate still = True 3. Restart web2py and my tables should

[web2py] auth_user table 'email' field unique issue

2013-10-04 Thread Srini K
I have a question related to "*auth_user*" table. So far I was under impression "*email*" field is a unique field where no two rows can have the same "email". But with a use case I tried and have described below I ended up with 2 rows in "auth_user" with same email ! My app and the use case: 1

[web2py] Custom Style of a textarea.

2013-10-04 Thread Francisco García
Hello all, I am loading a form from a database table, with CRUD or SQLFORM (It is the same for me). This form contains text fields and textarea fields between others. Now, I need to change in the views the class of all textareas, from class=" text" to class="myclass" How can I do this from con

[web2py] Re: Union of tables displayed in SQLFORM.grid

2013-10-04 Thread TYRANISTAR
Thank you for your reply. Do you have an example on how to do that? Sorry for asking but I am still a newbie at web2py. Τη Πέμπτη, 3 Οκτωβρίου 2013 4:10:22 μ.μ. UTC+3, ο χρήστης TYRANISTAR έγραψε: > > Hello everyone, > > I have a big mysql table that I want to break into smaller ones in order >

[web2py] Re: User Login causes error on GAE

2013-10-04 Thread Massimo Di Pierro
Can you please open a ticket an point it to this thread? On Friday, 4 October 2013 12:20:42 UTC-5, Andy W wrote: > > Thanks for that Massimo. > Using lazy tables seems to be the cause (although it did work with prior > versions). Switching to lazy_tables=False under GAE fixes the problem. My > c

Re: [web2py] Re: admin disabled... or why is parameters_80.py needed

2013-10-04 Thread Richard Vézina
:) On Fri, Oct 4, 2013 at 2:53 PM, Niphlod wrote: > as often, you're making things much more complicated then they really are. > web2py "calculates" what password_portnumber.py to use seeing where the > server listens to. It has (and can't have) knowledge of any proxies in > between. > So, even

[web2py] Re: HTML error code 206, due to headers not set

2013-10-04 Thread Niphlod
if you get back only that header, something is wrong with your setup. web2py adds a bunch of standard headers on every response. https://github.com/web2py/web2py/blob/master/gluon/main.py#L209 On Friday, October 4, 2013 9:12:22 AM UTC+2, Jayakumar Bellie wrote: > > Hi, > When my application loads

[web2py] Re: onselect ajax...

2013-10-04 Thread Niphlod
you where trying the exact same thing on the onselect, and I left it there as it was. If you want to send the value of the selected item as a post variable, use ajax('echo', '#t_items_f_item_category', 'target') you'll get request.post_vars.f_item_category filled in the echo function. On Frida

Re: [web2py] Re: admin disabled... or why is parameters_80.py needed

2013-10-04 Thread Niphlod
as often, you're making things much more complicated then they really are. web2py "calculates" what password_portnumber.py to use seeing where the server listens to. It has (and can't have) knowledge of any proxies in between. So, even if your site is reachable from the outside world on the port

Re: [web2py] Re: admin disabled... or why is parameters_80.py needed

2013-10-04 Thread Richard Vézina
This may help! server { listen 80; return 301 https://appname.domain.med$request_uri; # http://wiki.nginx.org/Pitfalls#Taxing_Rewrites charset utf-8; server_name $hostname; root /var/www; access_log /var/log/nginx/yoursite.access.log;

[web2py] Re: admin disabled... or why is parameters_80.py needed

2013-10-04 Thread Gour
On Fri, 4 Oct 2013 10:45:13 -0700 (PDT) LightDot wrote: > Couple of things I don't understand - are you using anyserver.py or > not? No. > Are you using nginx in front of gunicorn, or..? Yes, nginx is used as reverse proxy. > Please post your relevant config files and full startup lines. He

[web2py] Re: Export not working on filtered table?

2013-10-04 Thread greenpoise
This was working on version 2.6.2 and now with the 2.6.4 is no longer working! Agh On Wednesday, August 28, 2013 11:11:35 AM UTC-7, greenpoise wrote: > > Massimo, > > I opened a ticket for this. I think you couldnt reproduce the error. I now > remember (I had not tried it since I opened the

[web2py] Re: Google charts plugin added

2013-10-04 Thread Dave S
On Thursday, October 3, 2013 4:03:09 PM UTC-7, Tim Richardson wrote: > > I added a google charts plugin > http://www.web2pyslices.com/slice/show/1721/google-charts-plugin > Thanks! /dps -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web

Re: [web2py] Re: admin disabled... or why is parameters_80.py needed

2013-10-04 Thread Richard Vézina
In this script you can see how is web2py started by uwsgi in emperor mode : https://github.com/web2py/web2py/blob/master/scripts/setup-web2py-nginx-uwsgi-ubuntu.sh the python web2py.py in included... Hope it could help you figure it out. I remember that with unicorn I start redmine with a redmin

[web2py] Re: admin disabled... or why is parameters_80.py needed

2013-10-04 Thread LightDot
Couple of things I don't understand - are you using anyserver.py or not? Are you using nginx in front of gunicorn, or..? Please post your relevant config files and full startup lines. Regards On Friday, October 4, 2013 7:23:27 PM UTC+2, Gour wrote: > > On Fri, 4 Oct 2013 13:10:48 -0400 > Richa

Re: [web2py] Re: admin disabled... or why is parameters_80.py needed

2013-10-04 Thread Richard Vézina
Not sure about that, but I think that specifying a port maybe mean that it is runned in local only... Richard On Fri, Oct 4, 2013 at 1:23 PM, Gour wrote: > On Fri, 4 Oct 2013 13:10:48 -0400 > Richard Vézina > wrote: > > > You miss the -a "password" parameter I think! > > > > You pass the same

[web2py] Re: admin disabled... or why is parameters_80.py needed

2013-10-04 Thread Gour
On Fri, 4 Oct 2013 13:10:48 -0400 Richard Vézina wrote: > You miss the -a "password" parameter I think! > > You pass the same password that is encrypted in you parameters_443.py > file... > > It may still miss some parameter to specify you want to run the > server in https mode. I know about '

[web2py] Re: User Login causes error on GAE

2013-10-04 Thread Andy W
Thanks for that Massimo. Using lazy tables seems to be the cause (although it did work with prior versions). Switching to lazy_tables=False under GAE fixes the problem. My code now looks as follows: # -*- coding: utf-8 -*-

[web2py] MMS Gateway

2013-10-04 Thread Pankaj Pathak
kindly Suggest me MMS Gateway -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "

Re: [web2py] admin disabled... or why is parameters_80.py needed

2013-10-04 Thread Richard Vézina
You miss the -a "password" parameter I think! You pass the same password that is encrypted in you parameters_443.py file... It may still miss some parameter to specify you want to run the server in https mode. Read this : http://web2py.com/books/default/chapter/29/04/the-core#Command-line-option

Re: [web2py] Re: Web2py on apache2 is slow

2013-10-04 Thread Michele Comitini
Jayakumar, Are you sure that the code does exactly the same thing on PHP and Python? Send the code here if you can. It could depend on what you do with the grep output or how many times you spawn grep. mic 2013/10/4 Ricardo Pedroso > On Fri, Oct 4, 2013 at 8:33 AM, Jayakumar Bellie wrote: >

[web2py] admin disabled... or why is parameters_80.py needed

2013-10-04 Thread Gour
Hello! Today I had problem making web2py working under cloned project with gunicorn server. In the beginning I did start web2py with: python anyserver.py -s gunicorn -p localport and I was able to use stored password to access admin interface remotely via https. However, when I tried with a n

Re: [web2py] Re: Scheduler question

2013-10-04 Thread Pankaj Pathak
Dear All, I want help to send sms with attachment, But i didn't succeed.Please help me. *Pankaj Pathak* *Software Developer * *Shrideva Technomech Pvt. Ltd.* On Fri, Oct 4, 2013 at 9:24 PM, Niphlod wrote: > > > Il giorno venerdì 4 ottobre 2013 11:31:33 UTC+2, Marin Pranjić ha scritto: > >>

Re: [web2py] Re: Scheduler question

2013-10-04 Thread Niphlod
Il giorno venerdì 4 ottobre 2013 11:31:33 UTC+2, Marin Pranjić ha scritto: > > > > > On Wed, Oct 2, 2013 at 4:13 PM, Niphlod >wrote: > >> >> >> Il giorno mercoledì 2 ottobre 2013 15:15:16 UTC+2, Marin Pranjić ha >> scritto: >> >>> Hi, >>> >>> I have a task queue that runs in the background. I wa

[web2py] Re: Absolute URL from field in grid

2013-10-04 Thread Niphlod
what do you have in row.pdf_path ? I assumed it was a Field('...', 'upload') but instead it seems that carries the whole link that is pregenerated and stored in the db in that case, just use _href=row.pdf_path Il giorno venerdì 4 ottobre 2013 12:51:16 UTC+2, Gael Princivalle ha scritto

[web2py] Re: Change SQLFORM.grid Submit button label

2013-10-04 Thread P T
Thanks, here I what I used to just rename the Submit label (see the picture below) if not grid.create_form and not grid.update_form and not grid.view_form: o = grid.element(_type='submit', _value='%s' % T('Submit')) o['_value'] = T("Compare Selected") On Wednesday, Octob

Re: [web2py] import a model ?

2013-10-04 Thread Jonathan Lundell
Mutatis mutandis… > On Oct 4, 2013, at 7:06 AM, Tim Richardson wrote: > > Thanks. I'll try import next time. > >> On Friday, October 4, 2013, Anthony wrote: >> And of course, you can always put model code in a module and import it where >> needed. >> >>> On Friday, October 4, 2013 8:55:26 AM

Re: [web2py] import a model ?

2013-10-04 Thread Tim Richardson
Thanks. I'll try import next time. On Friday, October 4, 2013, Anthony wrote: > And of course, you can always put model code in a module and import it > where needed. > > On Friday, October 4, 2013 8:55:26 AM UTC-4, Anthony wrote: >> >> I commented on the issue, but this is the intended behavior.

[web2py] Re: reference type field issue when requires is set ?

2013-10-04 Thread Anthony
> the issue I am pointing to is related to the display of the "owner_id" > values in the grid itself and > yes, my *real* code sets the "requires" attribute directly in the "thing" > table definition rather than after the fact as shown above, I didn't think > that this would make a difference,

[web2py] Re: reference type field issue when requires is set ?

2013-10-04 Thread Mirko
Hi Anthony, the issue I am pointing to is related to the display of the "owner_id" values in the grid itself and yes, my *real* code sets the "requires" attribute directly in the "thing" table definition rather than after the fact as shown above, I didn't think that this would make a difference,

[web2py] IMAP: Insert email to Sent folder

2013-10-04 Thread IVINH
Hi all, I have successfully insert my email to Sent table in IMAP, but the field "created" is null? uid = imapdb.Sent.insert( answered = True, content = content, to = request.vars.send_contact, cc = '', bcc = '', size = len(content), deleted = False, draft = False, flagged = False, sender = ma

[web2py] Re: Strange behaviour of URL.verify() / @requires_signature() with big vars

2013-10-04 Thread Anthony
Yes, the user cannot access the session (if it is stored in the filesystem or database, obviously the user has no access, and if stored in a cookie, it is encrypted). Anthony On Friday, October 4, 2013 2:44:29 AM UTC-4, D. wrote: > > Thank you for the provided solutions - I'll try them out asap

[web2py] MMS with Attachment

2013-10-04 Thread Pankaj Pathak
Dear All, I want to send sms with attachment to mobile, I have tried many sites but i didn't found proper link. kindly help me. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/l

[web2py] Re: reference type field issue when requires is set ?

2013-10-04 Thread Anthony
> > > db.define_table('gender', Field('name'), format='%(name)s') > db.define_table('person', Field('name'), Field('gender_id','reference > gender'), format='%(name)s') > db.define_table('thing', Field('name'), Field('owner_id','reference > person',format='%(name)s') > > with this controller: >

Re: [web2py] Re: import a model ?

2013-10-04 Thread Anthony
And of course, you can always put model code in a module and import it where needed. On Friday, October 4, 2013 8:55:26 AM UTC-4, Anthony wrote: > > I commented on the issue, but this is the intended behavior. The order of > execution is fixed (though you can determine that fixed order with prop

Re: [web2py] Re: import a model ?

2013-10-04 Thread Anthony
I commented on the issue, but this is the intended behavior. The order of execution is fixed (though you can determine that fixed order with proper naming of files and folders) -- response.models_to_run is only intended for specification of *which* files get executed, not in which order. Do you

Re: [web2py] network troubles with builtin webserver (Windows)

2013-10-04 Thread Vinicius Assef
I've been experienced same slowness problem with Firefox on Ubuntu 12.04. On Fri, Oct 4, 2013 at 6:24 AM, Ricardo Pedroso wrote: > On Thu, Oct 3, 2013 at 10:54 PM, Alex wrote: >> >> thanks a lot, Ricardo! >> >> you're right about HTTP pipeline. Opera is the only browser with >> (activated) HTTP

Re: [web2py] OperationalError: disk I/O error

2013-10-04 Thread António Ramos
I have my web2py in a windows 7 machine with 25Gb free space so Disk full Quotas permissions *Not aplicable* * * Also i have to mention the error is gone without saying what was the cause. I didnt change a thing I will check bad sectors 2013/10/4 Ricardo Pedroso > > > > (disk I/O error)

Re: [web2py] OperationalError: disk I/O error

2013-10-04 Thread Ricardo Pedroso
> > (disk I/O error) Can be several things, you have to figure it out: some reason can be: - Disk full - Disk is dying (bad sectors) - permissions - quotas ... -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://c

[web2py] Re: OperationalError: disk I/O error

2013-10-04 Thread António Ramos
What the hell is that? Thank you António 2013/10/4 António Ramos > > > > > > > > > > > > > web2py™ interface administrativa > >- site >- editar >

[web2py] OperationalError: disk I/O error

2013-10-04 Thread António Ramos
web2py™ interface administrativa - site - editar - sobre - erros

Re: [web2py] Re: Web2py on apache2 is slow

2013-10-04 Thread Ricardo Pedroso
On Fri, Oct 4, 2013 at 8:33 AM, Jayakumar Bellie wrote: > > I try to run a grep command on a 30 MB file and redirect output to a tmp > folder. > Read the file in the tmp folder and display it. > > When I do this in PHP it is very fast. > But when I do it in web2py it is slow. > > This is fast for

[web2py] Re: Absolute URL from field in grid

2013-10-04 Thread Gael Princivalle
Hi Niphlod. Thanks for your answer, I've resolved my first problem, now with args=row.pdf_path web2py read what there's inside the field. Great. But I'm still don'tunderstand how I can have an obsolute path. I've read that host=True can resolve it, but it don't. In the A helper: links = [lambda

Re: [web2py] Re: Scheduler question

2013-10-04 Thread Marin Pranjić
On Wed, Oct 2, 2013 at 4:13 PM, Niphlod wrote: > > > Il giorno mercoledì 2 ottobre 2013 15:15:16 UTC+2, Marin Pranjić ha > scritto: > >> Hi, >> >> I have a task queue that runs in the background. I want to switch to >> scheduler because I need more workers. >> Queued tasks are long running (video

Re: [web2py] network troubles with builtin webserver (Windows)

2013-10-04 Thread Ricardo Pedroso
On Thu, Oct 3, 2013 at 10:54 PM, Alex wrote: > thanks a lot, Ricardo! > > you're right about HTTP pipeline. Opera is the only browser with > (activated) HTTP pipeline. If I deactivate it the site is loaded very fast. > The 10 seconds delay is exactly the timeout setting for individual > requests.

[web2py] Re: Unable to get the data, ajax fail with status is 200

2013-10-04 Thread Jayakumar Bellie
I found the error it is Error 206, Only partially of the data is received. I have not found the solution yet. On Wednesday, September 25, 2013 7:36:21 PM UTC+5:30, Anthony wrote: > > Because jQuery is expecting a JSON response, if the returned data do not > parse to valid JSON, you will get an

[web2py] smartgrid with linked tables url hacking

2013-10-04 Thread Mirko
Hi all, with this db definition: db.define_table('gender', Field('name'), format='%(name)s') db.define_table('person', Field('name'), Field('gender_id','reference gender'), format='%(name)s') db.define_table('thing', Field('name'), Field('owner_id','reference person' ),format='%(name)s') and t

[web2py] Re: onselect ajax...

2013-10-04 Thread Avi A
This test returns none: def echo(): return request.vars.value if request.vars else 'None' On Thursday, October 3, 2013 8:18:15 PM UTC+3, Avi A wrote: > > > Hi, > I'm trying to use the ajax function on a list , with no success so far. > > def echo(): > return request.vars.value > > name="f

[web2py] reference type field issue when requires is set ?

2013-10-04 Thread Mirko
Hi all, when I use this db definition: db.define_table('gender', Field('name'), format='%(name)s') db.define_table('person', Field('name'), Field('gender_id','reference gender'), format='%(name)s') db.define_table('thing', Field('name'), Field('owner_id','reference person' ,format='%(name)s')

[web2py] Re: Web2py on apache2 is slow

2013-10-04 Thread Jayakumar Bellie
Both the servers H/W configuration are - Intel i5 650 @ 3.20GHz - 320 GB hard disk - 4GB RAM Both the server has Ubuntu 13.04 The major difference between the servers are Server 1: LAMP PostgreSQL (Installed but not used) Server 2: LAMP (Installed but not used, apart from apache2 used

[web2py] HTML error code 206, due to headers not set

2013-10-04 Thread Jayakumar Bellie
Hi, When my application loads, it does not load the js files fully. I found it loads then partially, due to this application is not at all usable. I found that application has only one header {'X-Powered-By': 'web2py'} http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html 10.2.7 206 Partial