[web2py] Re: Useful validators IS_LETTERS, IS_DIGITS

2011-08-28 Thread Saurabh Sawant
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

[web2py] Re: Useful validators IS_LETTERS, IS_DIGITS

2011-08-28 Thread Saurabh Sawant
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

[web2py] Useful validators IS_LETTERS, IS_DIGITS

2011-08-28 Thread Saurabh Sawant
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

[web2py] Re: Ace now powering GitHub edit

2011-08-16 Thread Saurabh Sawant
Yes. It has Vi keybindings too it seems.

[web2py] Re: How to use the new cpdb.py introduced in 1.97.1?

2011-07-23 Thread Saurabh Sawant
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

[web2py] How to use the new cpdb.py introduced in 1.97.1?

2011-07-23 Thread Saurabh Sawant
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

[web2py] Using the werkzeug debugger with web2py

2011-05-26 Thread Saurabh Sawant
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

[web2py] Awesome discussion about web2py

2011-04-29 Thread Saurabh Sawant
https://convore.com/pycon-2011/a-bias-survey-of-python-frameworks/