[web2py] Re: Auto-complete Error

2017-05-28 Thread Rudy
Not sure if you are still looking for the solution, i found it from another thread. You need to add the "keyword" for the fields which reference the same field in another table. Cheers! db.define_table( 'order_cab', Field('pick_up', db.location, widget =

[web2py] Re: Can't get compute field or virtiual field to work for me

2017-05-28 Thread Peter
STOP PRESS - Got it! So I've learned something new - *thanks again Anthony!* Still not paying enough attention to the tracebacks - subsequent errors were a different problem. for the record this virtual field definition... db.person.display_name = Field.Virtual('display_name',

[web2py] Re: Can't get compute field or virtiual field to work for me

2017-05-28 Thread Peter
Thanks Anthony I would like to get the later suggestion working but not sure how to pass the row object from a field or if this is what you mean the signature it needs? My function is updated to this... # There were typos in the filed name which weren't helping (e.g. person.type should

[web2py] Re: Can't get compute field or virtiual field to work for me

2017-05-28 Thread Anthony
> When I add code to display the contents'Shortname: %s' % > person.short_name > (even after I have edited the table - which I understand should trigger > the shortname update) > Updating the record will only trigger the compute field update if *all* the fields needed by the function

[web2py] Re: how to compare date time in web2py?

2017-05-28 Thread Peter
I had some fun with this max_age_allowed = 20 * 60 # total seconds in 20 minutes update_age = request.now - person.created_on # Duration in datetime format since record created update_age = update_age.total_seconds() # Duration converted to seconds print "It is %s seconds since record

[web2py] Can't get compute field or virtiual field to work for me

2017-05-28 Thread Peter
I'm trying to build a default display name from the table/fields below depending on person.type and whether or not the person.referrer_rf is populated and I am trying two different methods 1> a compute field and 2> a virtual field Either would probably suffice if can get one to work...

[web2py] Re: Future of web2py

2017-05-28 Thread Oasis Agano
Is the new framework web3py if so when is the official launch? On Sunday, May 28, 2017 at 2:32:01 AM UTC+2, Relsi Maron wrote: > > > Hi Andrea, > > Yes, there will be a future for web2py! > > Web2py will remain being what it is. :) > > A new version, with support for Python 3, is about to come.

[web2py] path to file issues

2017-05-28 Thread Maurice Waka
Using Ubuntu.. If you have such a path to a file or Db; path = '/home/username/web2py/applications/welcome/databases/usern.db' conn = sqlite3.connect(path) code... Now if you want to compile the code and upload to GAE, what will happen at compile time, in terms of the path? Do you have to change

[web2py] Re: Future of web2py

2017-05-28 Thread Ron Chatterjee
How different web3py will be as opposed to web2py? Big learning curve or very similar? Can someone upload a w2p file and convert into w3p with few changes? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: cpython and web2py

2017-05-28 Thread Ron Chatterjee
I understand that. No one is disputing better coding better performance. But the question is: Cython wrapper ( Default. Py ) Is it possible. If so how? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] Re: Deploying on hosted server with cpanel

2017-05-28 Thread A.H.Gilbert
Hi Massimo, I have now tried pythonanywhere and it worked fine for me using some fairly trivial applications. My motivation for possibly wanting to use a cpanel site is that I have for some time run a static website for an orchestra I play in. I am developing an interactive

[web2py] Re: Problem executing function from web2py shell

2017-05-28 Thread icodk
SOLVED !! The table I try to select() has a common filter property and this requires an extra parameter that I do not supply in my dummy function. The very simple solution is to add ignore_common_filters=True to the query Sorry for the disruption On Saturday, May 27, 2017 at 9:23:04 PM UTC+2,