IS_MATCH('[0-9]+')
> IS_MATCH('[a-zA-Z]+')
>
> On Aug 28, 12:59 pm, Saurabh Sawant wrote:
>
>
>
>
>
>
>
> > But IS_ALPHANUMERIC by virtue of its name suggests both letters and
> > numbers. Having separate validators for each of the cases w
res etc...
>
> http://web2py.com/book/default/docstring/IS_ALPHANUMERIC
>
>
>
>
>
>
>
>
>
> On Sun, Aug 28, 2011 at 1:54 PM, Saurabh Sawant wrote:
> > Hi,
>
> > I think these validators would be a nice addition to the great set of
> > va
None)
>>> IS_NUMBERS()("")
('', None)
>>> IS_NUMBERS()("A")
('A', 'enter only numbers')
>>> IS_NUMBERS()("!")
('!', 'enter only numbers')
"""
def __init__(self, error_message='enter only digits'):
IS_MATCH.__init__(self, '^[0-9]*$', error_message)
Regards,
Saurabh Sawant
Yes. It has Vi keybindings too it seems.
Hi Kenneth,
Yes both the connection strings work in db.py which I too find
very puzzling.
On Jul 23, 12:24 pm, Kenneth Lundström
wrote:
> It sounds like web2py is not able to open either the sqlite file or
> postgres database. Have you tried to use both connection strings in a
> model file t
I am having a hard time migrating data from sqlite to postgres
This is the command that I use
./web2py.py -S testapp -M -N -R scripts/cpdb.py -A -f
sqlite://applications/testapp/databases/storage.sqlite -y 'sqlite://
applications/testapp/databases/storage.sqlite' -Y 'postgres://
puser:ppass@loca
I am trying to wrap the web2py wsgi app in anyserver.py with the werkzeug
debugger but I can't get it to work. How do I raise the exception from
web2py to DebuggedApplication?
Here is what I did after following the steps mentioned
here http://werkzeug.pocoo.org/docs/debug/
def cherrypy(app,add
https://convore.com/pycon-2011/a-bias-survey-of-python-frameworks/
8 matches
Mail list logo