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 =
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',
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
> 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
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
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...
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.
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
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)
-
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)
-
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
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,
12 matches
Mail list logo