[web2py] Modules do not reflected changes.

2017-08-30 Thread Claudio Andre
Hello, I'm using web2py 2.15.3-stable on Kali (debian) and having a strange behavior. Each time I change anything on the source code of one of the modules I have inside of the folder /applications/modules/ is not reflected on the application unless I reboot the VM (tried restarting just the web

Re: [web2py] Re: unique entry or null validation

2014-04-13 Thread Claudio Cocciarelli
request.method =="update": field1.requires = None else: field1.requires = IS_EMPTY_OR(IS_NOT_IN_DB(db, 'table.field1')) I just hope it doesn't cause some nasty side effects. Claudio -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http:

[web2py] Re: unique entry or null validation

2014-04-09 Thread Claudio Cocciarelli
quite difficult to explain but I hope you got my point. Basically I don't want the validator to be called on "update()" but only on "insert()" Any advice on how to deal with this situation? Claudio Il giorno venerdì 4 giugno 2010 07:47:58 UTC+2, mdipierro ha scritto: >

Re: [web2py] Re: html in session.flash?

2012-08-29 Thread Claudio Zambaldi
this was tested on web2py 1.99.2 Am I missing something? 2012/8/29 Claudio Zambaldi : > Anthony, thanks for your reply. > > XML doesn't seem to render to html but to string. > > The following two lines in the welcome app index: > session.flag= not (session.flag) > ses

Re: [web2py] Re: html in session.flash?

2012-08-29 Thread Claudio Zambaldi
ossible to get some html content into the session.flash message? >> I would like to include an "undo" link for a delete action. >> Could also be nice to easily access newly created content. >> Thank you. > > -- > > > -- Claudio Zambaldi :: 0176-50123077 :: http://zambaldi.de --

[web2py] delete database entry by form

2010-04-19 Thread claudio
I have a newbie question: How can I create a form to delete selected entries from a database? Can I use SQLFORM for this? I have tables roughly like this in db.py db.define_table('person', Field('name')) db.define_table('posts', Field('title'), Field('author',db.person)) and in default.py a fun