What i see is that an author of SQLObject fixed it only in trunk (1.2.x version), not in 1.0.x or 1.1.x So first of you should ask him backport fix to previous branches (project has its own mailing ist), and the second one is try to install SQLObject from the sources. Is not a big deal.
2011/10/8 mejlholm <[email protected]>: > Hi All, > > I'm facing some problems when porting from TG 1.5b2 to TG- 1.5. I've > been running TG 1.5b2 for quite a while now, without any troubles. As > far as I can tell, all the configuration changes were covered in my > conversion from 1.1 to 1.5b2. > > Anyways, my issue seems to be coming from the use of SQLObject and > Visit. > > I get the following errors: > > 2011-10-08 17:20:51,403 cherrypy.error INFO [08/Oct/2011:17:20:51] > ENGINE Bus STARTING > 2011-10-08 17:20:51,403 turbogears.startup INFO Starting TurboGears... > 2011-10-08 17:20:51,404 turbogears.startup INFO Loading template > engines... > 2011-10-08 17:20:51,409 turbogears.startup INFO Adding CherryPy tools, > hooks and dispatchers... > 2011-10-08 17:20:51,410 turbogears.visit INFO Visit tool initialized. > 2011-10-08 17:20:51,411 turbogears.startup INFO Starting TurboGears > extension visit = turbogears.visit... > 2011-10-08 17:20:51,414 turbogears.visit INFO Loading visit manager > from plugin: sqlobject > 2011-10-08 17:20:51,423 turbogears.visit.sovisit INFO Successfully > loaded 'discgolf.model.Visit' > 2011-10-08 17:20:51,440 turbogears.startup ERROR Error starting > TurboGears extension visit = turbogears.visit: 'bool' object is not > callable > Traceback (most recent call last): > File "/home/ddgu/tg-1.5/lib/python2.7/site-packages/TurboGears-1.5- > py2.7.egg/turbogears/startup.py", line 202, in start_turbogears > ext.start_extension() > File "/home/ddgu/tg-1.5/lib/python2.7/site-packages/TurboGears-1.5- > py2.7.egg/turbogears/visit/api.py", line 88, in start_extension > _manager = _create_visit_manager(timeout) > File "/home/ddgu/tg-1.5/lib/python2.7/site-packages/TurboGears-1.5- > py2.7.egg/turbogears/visit/api.py", line 67, in _create_visit_manager > return provider_class(timeout) > File "/home/ddgu/tg-1.5/lib/python2.7/site-packages/TurboGears-1.5- > py2.7.egg/turbogears/visit/sovisit.py", line 32, in __init__ > super(SqlObjectVisitManager, self).__init__(timeout) > File "/home/ddgu/tg-1.5/lib/python2.7/site-packages/TurboGears-1.5- > py2.7.egg/turbogears/visit/api.py", line 254, in __init__ > self.create_model() > File "/home/ddgu/tg-1.5/lib/python2.7/site-packages/TurboGears-1.5- > py2.7.egg/turbogears/visit/sovisit.py", line 35, in create_model > hub.begin() > File "/home/ddgu/tg-1.5/lib/python2.7/site-packages/TurboGears-1.5- > py2.7.egg/turbogears/database.py", line 279, in begin > conn = self.getConnection() > File "/home/ddgu/tg-1.5/lib/python2.7/site-packages/TurboGears-1.5- > py2.7.egg/turbogears/database.py", line 262, in getConnection > return self.begin(conn) > File "/home/ddgu/tg-1.5/lib/python2.7/site-packages/TurboGears-1.5- > py2.7.egg/turbogears/database.py", line 285, in begin > trans = conn.transaction() > File "/home/ddgu/tg-1.5/lib/python2.7/site-packages/SQLObject-1.1.3- > py2.7.egg/sqlobject/dbconnection.py", line 465, in transaction > return Transaction(self) > File "/home/ddgu/tg-1.5/lib/python2.7/site-packages/SQLObject-1.1.3- > py2.7.egg/sqlobject/dbconnection.py", line 751, in __init__ > self._connection = dbConnection.getConnection() > File "/home/ddgu/tg-1.5/lib/python2.7/site-packages/SQLObject-1.1.3- > py2.7.egg/sqlobject/dbconnection.py", line 336, in getConnection > conn = self.makeConnection() > File "/home/ddgu/tg-1.5/lib/python2.7/site-packages/SQLObject-1.1.3- > py2.7.egg/sqlobject/postgres/pgconnection.py", line 134, in > makeConnection > conn.autocommit(1) > TypeError: 'bool' object is not callable > 2011-10-08 17:20:51,446 turbogears.startup INFO Starting TurboGears > extension identity = turbogears.identity.visitor... > 2011-10-08 17:20:51,450 turbogears.identity INFO Identity starting > 2011-10-08 17:20:51,471 turbogears.identity.soprovider INFO > Successfully loaded "discgolf.model.User". > 2011-10-08 17:20:51,472 turbogears.identity.soprovider INFO > Successfully loaded "discgolf.model.Group". > 2011-10-08 17:20:51,473 turbogears.identity.soprovider INFO > Successfully loaded "discgolf.model.Permission". > 2011-10-08 17:20:51,474 turbogears.identity.soprovider INFO > Successfully loaded "discgolf.model.VisitIdentity". > 2011-10-08 17:20:51,478 turbogears.startup ERROR Error starting > TurboGears extension identity = turbogears.identity.visitor: 'bool' > object is not callable > Traceback (most recent call last): > File "/home/ddgu/tg-1.5/lib/python2.7/site-packages/TurboGears-1.5- > py2.7.egg/turbogears/startup.py", line 202, in start_turbogears > ext.start_extension() > File "/home/ddgu/tg-1.5/lib/python2.7/site-packages/TurboGears-1.5- > py2.7.egg/turbogears/identity/visitor.py", line 53, in start_extension > create_extension_model() > File "/home/ddgu/tg-1.5/lib/python2.7/site-packages/TurboGears-1.5- > py2.7.egg/turbogears/identity/visitor.py", line 81, in > create_extension_model > provider.create_provider_model() > File "/home/ddgu/tg-1.5/lib/python2.7/site-packages/TurboGears-1.5- > py2.7.egg/turbogears/identity/soprovider.py", line 203, in > create_provider_model > hub.begin() > File "/home/ddgu/tg-1.5/lib/python2.7/site-packages/TurboGears-1.5- > py2.7.egg/turbogears/database.py", line 279, in begin > conn = self.getConnection() > File "/home/ddgu/tg-1.5/lib/python2.7/site-packages/TurboGears-1.5- > py2.7.egg/turbogears/database.py", line 248, in getConnection > return self.begin(conn) > File "/home/ddgu/tg-1.5/lib/python2.7/site-packages/TurboGears-1.5- > py2.7.egg/turbogears/database.py", line 285, in begin > trans = conn.transaction() > File "/home/ddgu/tg-1.5/lib/python2.7/site-packages/SQLObject-1.1.3- > py2.7.egg/sqlobject/dbconnection.py", line 465, in transaction > return Transaction(self) > File "/home/ddgu/tg-1.5/lib/python2.7/site-packages/SQLObject-1.1.3- > py2.7.egg/sqlobject/dbconnection.py", line 751, in __init__ > self._connection = dbConnection.getConnection() > File "/home/ddgu/tg-1.5/lib/python2.7/site-packages/SQLObject-1.1.3- > py2.7.egg/sqlobject/dbconnection.py", line 336, in getConnection > conn = self.makeConnection() > File "/home/ddgu/tg-1.5/lib/python2.7/site-packages/SQLObject-1.1.3- > py2.7.egg/sqlobject/postgres/pgconnection.py", line 134, in > makeConnection > conn.autocommit(1) > TypeError: 'bool' object is not callable > 2011-10-08 17:20:51,482 turbogears.startup INFO Starting TurboGears > extension turbomail = turbomail.adapters.tg1... > 2011-10-08 17:20:51,482 turbogears.startup INFO Starting TurboGears > extension toscawidgets = tw.mods.tg... > 2011-10-08 17:20:51,483 turbogears.startup INFO Running the registered > startup functions... > 2011-10-08 17:20:51,484 turbogears.startup INFO TurboGears has been > started. > 2011-10-08 17:20:51,486 cherrypy.error INFO [08/Oct/2011:17:20:51] > ENGINE Started monitor thread '_TimeoutMonitor'. > 2011-10-08 17:20:51,696 cherrypy.error INFO [08/Oct/2011:17:20:51] > ENGINE Serving on 0.0.0.0:8080 > 2011-10-08 17:20:51,698 cherrypy.error INFO [08/Oct/2011:17:20:51] > ENGINE Bus STARTED > > The config/app.cfg file is set up as follows: > > # VISIT TRACKING > # -------------- > # Each visit to your application will be assigned a unique visit ID > tracked via > # a cookie sent to the visitor's browser. > > # Enable Visit tracking > visit.on = True > > # Number of minutes a visit may be idle before it expires. > # visit.timeout=20 > > # The interval for updating the visits in the database in seconds. > # visit.interval = 30 > > # Where to look for the key of an existing visit in the request and in > which > # order. Comma-separated list of possible values: 'cookie', 'form'. > # By default only use visit key in session cookie. > # visit.source = 'cookie' > > # The name of the cookie to transmit to the visitor's browser. > # visit.cookie.name = 'tg-visit' > > # The name of the request parameter with the session key (for when > # 'visit.source' includes 'form'). Name MUST NOT contain dashes or > dots! > # visit.form.name = 'tg_visit' > > # Domain name to specify when setting the cookie (must begin with . > according to > # RFC 2109). The default (None) should work for most cases and will > default to > # the machine to which the request was made. NOTE: localhost is NEVER > a valid > # value and will NOT WORK. > # visit.cookie.domain = None > > # Specific path for the cookie > # visit.cookie.path = '/' > > # The name of the VisitManager class or plugin used for visitor > tracking. > visit.manager = 'sqlobject' > > # Database class to use for visit tracking > visit.soprovider.model = 'discgolf.model.Visit' > identity.soprovider.model.visit = 'discgolf.model.VisitIdentity' > > as far as I can tell, this should all be right. Anybody got any > ideas? > > -- > You received this message because you are subscribed to the Google Groups > "TurboGears" 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/turbogears?hl=en. > > -- You received this message because you are subscribed to the Google Groups "TurboGears" 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/turbogears?hl=en.

