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
--
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
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
>
>
--
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
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
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
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*
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
8 matches
Mail list logo