Hello,
I am trying to call it like so...
db.domains.name.requires =[IS_VALID_A(db, db.domains.name), IS_NOT_IN_DB(db,
db.domains.name)]
This is the first time I've tried to write a class so it's all new to me. I
copied an example.
- Original Message -
From: Anthony
Hello,
I am still working on learning the inner workings of web2py. At the moment I am
playing with custom validators. I have unfortunately been unable to figure out
how to get a meaningful error message returned to the user.
Here is my custom validator.
class IS_VALID_A(object):
Name =
Hello,
I am trying to figure out a way which I can have a select (drop down menu)
form, where based on the option that is selected the rest of the form
validators change. To try and explain it better here's the example I am
trying to work on.
I am working on a web2py powerdns front end (to
13/11/2011 21:33, Jimmy Stewpot mail...@oranged.to escreveu:
Hi,
I have nothing set in my model at all for migrate so I assume that it's True by
being ommited.
It has got me stumped.. I have not had problems like this in the past with my
previous testing.
- Original Message
to create the db (once the db is created, though, web2py will create
tables for you). See
http://web2py.com/book/default/chapter/06#Connection-Strings .
Anthony
On Saturday, November 12, 2011 11:10:18 PM UTC-5, Jimmy Stewpot wrote:
Hello,
I have been playing around with web2py for about
Hello,
I have been playing around with web2py for about a month.. I have
finally got to the point where I wanted to test the packing of my app
to test the install on another system. However when I load the app
into web2py on the new system the database is never created. I've even
gone so far as
, web2py will create
tables for you). See
http://web2py.com/book/default/chapter/06#Connection-Strings.
Anthony
On Saturday, November 12, 2011 11:10:18 PM UTC-5, Jimmy Stewpot wrote:
Hello,
I have been playing around with web2py for about a month.. I have
finally got to the point where I wanted
Hello,
I am new to web2py. I just started a new app to become more familiar
with the technology. So far I have the following.
# controller
def index():
form, rows = crud.select(db.domains,
query=(db.domains.created_by==auth.user_id))
return dict(rows=rows)
# view
{{extend
8 matches
Mail list logo