Okay, I tried it myself today. It seems to me, that the database wrapper 
does the trick. At least, after a few hours of testing no 'database is 
locked' error appeared...so I think it worked. 

Kind Regards
Bernhard

On Wednesday, October 2, 2013 4:14:29 PM UTC+2, Bernhard B wrote:
>
> Hi,
>
> I want to use web.py together with a sqlite3 database. My problem is, that 
> I need to update the entries in the database from various sites. 
>
> So basically, I want to do this: 
>
> urls = ("/", "base_url",
>         "/url1", "url1",
>         "/url2", "url2",
>         "/url3", "url3"
> )
>
> class url1:
>    def GET(self):
>        #update database 
>
> class url2:
>    def GET(self):
>       #update database
>
> class url3:
>    def GET(self):
>      #update database
>
> Without the web.py database wrapper I often get an Operational Error 
> (database is locked). 
>
> After going through the web.py documentation I found out, that web.py 
> provides a database wrapper. What's the purpose of this thing? Is it only 
> useful, to make migration between different database systems (sqlite, 
> postgres..) easier? Or can it help me in some way with the 'database is 
> locked' problem? 
>
> Thanks for your help!
>
> Kind Regards 
> Bernhard
>

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/webpy.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to