[web2py] Init Script in Web2Py

2012-08-10 Thread tommasot
I have a newbie question. I need to create some record in db on application startup,like for example default user and other things.. Where is the right script/place to implement it --

[web2py] Question about vars and crud.create (newbie)

2012-09-05 Thread tommasot
I need to catch the request parameters in a crud.create operation Thi the simple code in the controller form = crud.create(db.anno,next='list_anno') and this the domain db.define_table('anno', Field('descrizione'), Field('incorso','boolean'),format='%(descrizione)s') Now i want before

[web2py] Re: Init Script in Web2Py

2012-09-05 Thread tommasot
Thank you so much Il giorno venerdì 10 agosto 2012 11:56:15 UTC+2, tommasot ha scritto: > > I have a newbie question. > > I need to create some record in db on application startup,like for example > default user and other things.. > > Where is the right script/place to implement it > > --

[web2py] NewBie Question about crud.create

2012-09-05 Thread tommasot
I have the following code in the controller about record creation *form = crud.create(db.anno,next='list_anno')* This is the model,how you can see is very simple :) *db.define_table('anno', Field('descrizione'), Field('incorso','boolean'),format='%(descrizione)s')* Now i want to catch t

[web2py] Re: NewBie Question about crud.create

2012-09-06 Thread tommasot
Anthony > > On Wednesday, September 5, 2012 11:09:41 AM UTC-4, tommasot wrote: >> >> I have the following code in the controller about record creation >> >> *form = crud.create(db.anno,next='list_anno')* >> >> This is the model,how you can see i

[web2py] Re: NewBie Question about crud.create

2012-09-06 Thread tommasot
Il giorno mercoledì 5 settembre 2012 17:09:41 UTC+2, tommasot ha scritto: > > I have the following code in the controller about record creation > > *form = crud.create(db.anno,next='list_anno')* > > This is the model,how you can see is very simple :) > > *d

[web2py] Cron @reboot and socket server on web2py startup

2015-04-27 Thread tommasot
I want run a simple script on web2py startup,that listen on a tcp port the script is the following "example.py". The file in the "applications/myapp/cron" folder *import SocketServer* *import logging* *class MyTCPHandler(SocketServer.BaseRequestHandler):* *# handle syslog event message*

[web2py] Re: Cron @reboot and socket server on web2py startup

2015-04-27 Thread tommasot
SOLVED: Not a Web2py problem,but when i kill it, the port status remain in TIME_WAIT,so another process cannot open the port again If i wait about 30 seconds after kill the process,it restart without problems Il giorno lunedì 27 aprile 2015 23:44:29 UTC+2, tommasot ha scritto: > > I want