#801: 0.9a5 - sqlalchemy quickstart model.py template incorrect
--------------------------------+-------------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone:
Component: Installation | Version: 0.9a4
Severity: normal | Keywords:
--------------------------------+-------------------------------------------
if one selects sqlalchemy as a quickstart template, one gets...
{{{
from sqlobject import *
from turbogears.database import PackageHub
hub = PackageHub("myApp")
__connection__ = hub
# class YourDataClass(SQLObject):
# pass
from sqlalchemy.ext.activemapper import *
}}}
which needlessly calls sqlobject (if you're using sqlalchemy for id,
you're likely using it for all your classes) and then references to _ _
engine _ _ are made, but it is unset
that should be more like
{{{
from sqlalchemy import *
from sqlalchemy.ext.activemapper import *
from turbogears.database import PackageEngine
engine = __engine__ = PackageEngine("myApp")
}}}
this patch should correct it (untested though, i'm not sure how to test)-
it tosses in sqlalchemy info if the identity provider is sqlalchemy, and
defaults to sqlobject for everything else
--
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/801>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Tickets" 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-tickets
-~----------~----~----~----~------~----~------~--~---