Okay. Now the validator says: enter date as 1963-08-28
The 2010.05.31 isn't valid. :( But have a '%Y-%m-%d': '%Y.%m.%d' in language file and the date picker is working correctly On máj. 31, 21:17, mdipierro <mdipie...@cs.depaul.edu> wrote: > hmmmm. I do not know. I need to see more about the app. > Anyway > > Field('expire','date', > label=T("Expire"), > requires=IS_NOT_EMPTY()), > > should be > > Field('expire','date', > label=T("Expire"), > requires=IS_DATE()), > > this may be part of the problem. > > On May 31, 2:04 pm, szimszon <szims...@gmail.com> wrote: > > > I was able to start web2py. > > > But I have a problem I don't know if it's existed in before... > > > SQLite db: > > > In hu-hu.py: > > > '%Y-%m-%d': '%Y.%m.%d', > > > In db.py: > > > db.define_table('dnssec_zsk', > > Field('dns_id',db.dns, > > label=T('DNS config'), > > requires=IS_IN_DB(db,'dns.id','%(name)s'),), > > Field('dns_zones_id',db.dns_zones, > > label=T("Zone"), > > requires=IS_IN_DB(db,'dns_zones.id','% > > (name)s')), > > Field('name','string', > > label=T('Name'), > > requires=IS_NOT_EMPTY(), > > comment=T("Kdomain_name+algorithm_id > > +key_id.extension"), > > ), > > Field('public','text', > > label=T("Public key"), > > requires=IS_NOT_EMPTY()), > > Field('private','text', > > label=T("Private key"), > > requires=IS_NOT_EMPTY()), > > Field('expire','date', > > label=T("Expire"), > > requires=IS_NOT_EMPTY()), > > ) > > > I insert a record. > > > If I query the table I get: > > > invalid literal for int() with base 10: '2011.05.11' > > > I have the following row: > > > "4",,"Koregpreshaz.eu. > > +005+61200","......","......","2011.05.11.","1","1" > > > On máj. 31, 19:21, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > > I think I fixed this. Following advice from Alexandre Andrade. Please > > > check latest trunk. > > > > Massimo > > > > On May 31, 10:35 am, szimszon <szims...@gmail.com> wrote: > > > > > Any progress? Can I help somehow? > > > > > On ápr. 19, 22:58, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > > > > Mind that this is not the end of the story. Thesimplejsonthat ships > > > > > with web2py was modified to handle date/datetime/time. By replacing > > > > > with the latest officialsimplejsonyou will may not be able to > > > > > serialize DAL records. > > > > > > One option is to include latest web2py in web2py and re-apply the > > > > > patch. we will do so in 1.77.x but it would be useful to get to the > > > > > bottom of why this problem arose in the first place. > > > > > > Masismo > > > > > > On Apr 19, 3:36 pm, szimszon <szims...@gmail.com> wrote: > > > > > > > Okay, copy "/usr/share/pyshared/simplejson" to gluon/contrib seems > > > > > > to > > > > > > work for me. > > > > > > > BigTNX. (1.77.2 :) > > > > > > > On ápr. 19, 22:25, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > > > > > > try copysimplejsoninto gluon/contrib/simplejsonfor now. > > > > > > > > On Apr 19, 3:23 pm, szimszon <szims...@gmail.com> wrote: > > > > > > > > > I can't run it (1.77.1) even if I installed thesimplejson1.9.2 > > > > > > > > in > > > > > > > > virtualenv: > > > > > > > > > >>> sys.path > > > > > > > > > ['', > > > > > > > > '/home/szimszon/.virtualenvs/web2py/lib/python2.5/site-packages/ > > > > > > > > setuptools-0.6c11-py2.5.egg', > > > > > > > > '/home/szimszon/.virtualenvs/web2py/lib/ > > > > > > > > python2.5/site-packages/simplejson-1.9.2-py2.5.egg'... > > > > > > > > > On ápr. 19, 13:58, szimszon <szims...@gmail.com> wrote: > > > > > > > > > > I got the some traceback as before :( > > > > > > > > > > >>> sys.path > > > > > > > > > > ['', > > > > > > > > > '/home/szimszon/.virtualenvs/web2py/lib/python2.5/site-packages/ > > > > > > > > > setuptools-0.6c11-py2.5.egg', '/usr/lib/pymodules/python2.5', > > > > > > > > > '/home/ > > > > > > > > > szimszon/.virtualenvs/web2py/lib/python2.5', '/home/ > > > > > > > > > szimszon/.virtualenvs/web2py/lib/python2.5/plat-linux2', > > > > > > > > > '/home/ > > > > > > > > > szimszon/.virtualenvs/web2py/lib/python2.5/lib-tk', '/home/ > > > > > > > > > szimszon/.virtualenvs/web2py/lib/python2.5/lib-dynload', > > > > > > > > > '/usr/lib/ > > > > > > > > > python2.5', '/usr/lib/python2.5/plat-linux2', > > > > > > > > > '/usr/lib/python2.5/lib- > > > > > > > > > tk', > > > > > > > > > '/home/szimszon/.virtualenvs/web2py/lib/python2.5/site-packages', > > > > > > > > > '/usr/local/lib/python2.5/site-packages', > > > > > > > > > '/usr/lib/python2.5/site- > > > > > > > > > packages', '/usr/lib/python2.5/site-packages/PIL', > > > > > > > > > '/usr/lib/python2.5/ > > > > > > > > > site-packages/gst-0.10', > > > > > > > > > '/usr/lib/pymodules/python2.5/gtk-2.0', '/usr/ > > > > > > > > > lib/python2.5/site-packages/wx-2.6-gtk2-unicode'] > > > > > > > > > > On ápr. 19, 13:30, Mathieu Clabaut > > > > > > > > > <mathieu.clab...@gmail.com> wrote: > > > > > > > > > > > I use > > > > > > > > > > virtualenvwrapperhttp://www.doughellmann.com/docs/virtualenvwrapper/which > > > > > > > > > > seems to work like a charm. > > > > > > > > > > > export WORKON_HOME=$HOME/.virtualenvs > > > > > > > > > > source /usr/bin/virtualenvwrapper.sh # put those 2 lines in > > > > > > > > > > your > > > > > > > > > > $HOME/.bashrc > > > > > > > > > > mkvirtualenv web2py > > > > > > > > > > > From here, you just have to type : > > > > > > > > > > workon web2py > > > > > > > > > > > berfore launching web2py. > > > > > > > > > > > It is not a web2py solution, but it may help in the > > > > > > > > > > meanwhile. > > > > > > > > > > > -Mathieu > > > > > > > > > > > On Mon, Apr 19, 2010 at 13:15, szimszon > > > > > > > > > > <szims...@gmail.com> wrote: > > > > > > > > > > > Is there now a quick way to start web2py without > > > > > > > > > > > removingsimplejson > > > > > > > > > > > from debian? > > > > > > > > > > > > Tnx. > > > > > > > > > > > > On ápr. 11, 16:23, mdipierro <mdipie...@cs.depaul.edu> > > > > > > > > > > > wrote: > > > > > > > > > > > > What's your advice about this? > > > > > > > > > > > > > Out r version ofsimplejsonis patched to serialize > > > > > > > > > > > > dates. We could > > > > > > > > > > > > upgrade to the latest and re-patch and for now this > > > > > > > > > > > > problem will go > > > > > > > > > > > > away but this is not a long term solution. Clearly we > > > > > > > > > > > > must change > > > > > > > > > > > > something in the waysimplejsonis imported to avoid > > > > > > > > > > > > conflict. > > > > > > > > > > > > > Massimo > > > > > > > > > > > > > On Apr 11, 4:30 am, muybay <yabyum...@gmail.com> wrote: > > > > > > > > > > > > > > I have the issue also. I am going to try this > > > > > > > > > > > > > suggestion and possibly > > > > > > > > > > > > > diff the two versions (upgraded vs web2pysimplejson). > > > > > > > > > > > > > > On Apr 8, 8:00 am, mdipierro > > > > > > > > > > > > > <mdipie...@cs.depaul.edu> wrote: > > > > > > > > > > > > > > > One solution is to upgrade thesimplejsonthat comes > > > > > > > > > > > > > > with web2py. The > > > > > > > > > > > > > > problem is that the one we use has been modified to > > > > > > > > > > > > > > handle dates. > > > > > > > > > > > > > > > On Apr 8, 4:27 am, Johann Spies > > > > > > > > > > > > > > <johann.sp...@gmail.com> wrote: > > > > > > > > > > > > > > > > Removing Debian's python-simplejsonhelped me to > > > > > > > > > > > > > > > start web2py again > > > > > > > > > > > - > > > > > > > > > > > > > > > and broke some other stuff on Debian. > > > > > > > > > > > > > > > > Regards > > > > > > > > > > > > > > > Johann > > > > > > > > > > > > > > > -- > > > > > > > > > > > > > > > "Every good gift and every perfect gift is > > > > > > > > > > > > > > > from above, > > > > > > > > > > > > > > > and cometh down from the Father of lights, > > > > > > > > > > > > > > > with whom > > > > > > > > > > > > > > > is no variableness, neither shadow of > > > > > > > > > > > > > > > turning." > > > > > > > > > > > > > > > James 1:17 > > > > > > > > > > > > -- > > > > > > > > > > > Subscription settings: > > > > > > > > > > >http://groups.google.com/group/web2py/subscribe?hl=en > >