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"
To: web2py@go
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 = 'IS
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 l
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.
- Origi
ent: Sunday, 13 November, 2011 5:53:52 PM
Subject: Re: [web2py] Re: web2py dal not creating database
what is in your: define_table(..., migrate=? ) and db = DAL(,
migrate_enabled=? )
It needs to be setted to True or ommited to create the tables.
On Sun, Nov 13, 2011 at 4:14 AM, Jimmy
hough, 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 w
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 to
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 'layout.html'}}
8 matches
Mail list logo