After upgrading to 0.3.2 I'm seeing the following error when trying to
access my site built on web.py:

[Sat Jun 13 17:32:10 2009] [error] [client 127.0.0.1] Traceback (most
recent call last):
  File "/Library/Python/2.5/site-packages/web/application.py", line
192, in process
  File "/Library/Python/2.5/site-packages/web/session.py", line 56, in
_processor
    self._load()
  File "/Library/Python/2.5/site-packages/web/session.py", line 80, in
_load
    self.session_id = self._generate_session_id()
  File "/Library/Python/2.5/site-packages/web/session.py", line 122,
in _generate_session_id
    if session_id not in self.store:
  File "/Library/Python/2.5/site-packages/web/session.py", line 251,
in __contains__
  File "/Library/Python/2.5/site-packages/web/db.py", line 606, in
select
    out = db_cursor.rowcount
  File "/Library/Python/2.5/site-packages/web/db.py", line 909, in
query
TypeError: unbound method query() must be called with DB instance as
first argument (got SqliteDB instance instead)
, referer: http://buh.com/

I'm setting up the sessions like so:

db = web.database(dbn = 'sqlite', db = config['path'] + '/db/
xi.sqlite3')
store = web.session.DBStore(db, 'sessions')
session = web.session.Session(app, store, initializer = {'count': 0})
web.config._session = session

0.3.1 works fine with my code. I'm curious if someone knows what I
should change to get things going again. Thanks,


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to