#2213: Reflection tables on model for tg2.
---------------------------+------------------------------------------------
 Reporter:  beyonlo        |        Owner:  Chris Arndt
     Type:  task           |       Status:  reopened   
 Priority:  normal         |    Milestone:  2.0rc1     
Component:  Documentation  |      Version:             
 Severity:  normal         |   Resolution:             
 Keywords:                 |  
---------------------------+------------------------------------------------
Changes (by jorge.vargas):

  * status:  closed => reopened
  * resolution:  fixed =>

Comment:

 I'm reopening because I just stumbled upon this error.

 I'm using the following as example code.
 {{{
 #1    metadata.reflect(bind=engine)
     from sqlalchemy import Table
     global Site
     class Site(DeclarativeBase):
 #1        __table__ = metadata.tables['site']
 #2        __table__ = Table('site',metadata,autoload=True)
 #3        __table__ =
 Table('site',metadata,autoload=True,autoload_with=engine)


 }}}

 1- the first table declaration works (and the reflect all at line1)
 2- This line does not works (this is the example in quickstart)
 3- This line does work

 Reflection made with a mysql database.

-- 
Ticket URL: <http://trac.turbogears.org/ticket/2213#comment:5>
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.
This group is read-only. No posting by normal members allowed.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to