good, let us know.
On Jan 20, 7:47 pm, "Sebastian E. Ovide" <sebastianov...@gmail.com>
wrote:
> ok... I had assumed that it was setted to work both with sqlite and GAE...
>
> I've replaced
>
> db=SQLDB('sqlite://identity.db')
>
> with
>
> try:
> from gluon.contrib.gql import * # if running on Google App
> Engine
> except:
> db=SQLDB('sqlite://identity.db') # if not, use SQLite or other
> DB
> else:
> db=GQLDB() # connect to Google BigTable
> session.connect(request,response,db=db) # and store sessions there
> #session.forget() # uncomment for no session at
> all
>
> and now it doesn't break anymore...
>
> let me test it properly...
>
> On Tue, Jan 20, 2009 at 11:28 PM, Sebastian E. Ovide <
>
> sebastianov...@gmail.com> wrote:
> > WARNING 2009-01-21 01:27:01,190 cache.py] no cache.disk
> > ERROR 2009-01-21 01:27:01,250 main.py] Traceback (most recent call
> > last):
> > File "C:\dev\web2py\gluon\restricted.py", line 62, in restricted
> > exec ccode in environment
> > File "C:\dev\web2py\applications\users/models/db.py", line 2, in <module>
> > db=SQLDB("sqlite://identity.db")
> > File "C:\dev\web2py\gluon\sql.py", line 458, in __init__
> > self._pool_connection(lambda:sqlite3.Connection(dbpath))
> > File "C:\dev\web2py\gluon\sql.py", line 423, in _pool_connection
> > self._connection=f()
> > File "C:\dev\web2py\gluon\sql.py", line 458, in <lambda>
> > self._pool_connection(lambda:sqlite3.Connection(dbpath))
> > NameError: global name 'sqlite3' is not defined
>
> > On Tue, Jan 20, 2009 at 12:47 PM, Markus Gritsch <m.grit...@gmail.com>wrote:
>
> >> On Tue, Jan 20, 2009 at 2:16 PM, Sebastian E. Ovide
> >> <sebastianov...@gmail.com> wrote:
> >> > I mean in local.. I haven't deploy it yet... just using the GAE SDK (the
> >> > last one)
>
> >> In the terminal, where you run dev_appserver.py, the exception is printed.
>
> >> Kind regards,
> >> Markus
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to
web2py+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---