Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #36 (closed defect: invalid)

Opened 14 years ago

Last modified 12 years ago

/docs/wiki20/index.html <> Printable Version

Reported by: Chris Williams Owned by: anonymous
Priority: normal Milestone:
Component: Documentation Version: 0.8
Severity: normal Keywords:
Cc:

Description

The code sample for model.py at the bottom of this page:  http://www.turbogears.org/docs/wiki20/index.html

class Page(SQLObject):
    _connection = hub
    pagename=StringCol(alternateID=True, length=30)
    data=StringCol()  

is not the same as the (incorrect) code sample on the printable version:  http://www.turbogears.org/docs/wiki20/printable.html

class Page(SQLObject):
    pagename=StringCol(alternateID=True, length=30)
    data=StringCol() 

Change History

comment:1 Changed 14 years ago by kevin

  • Status changed from new to closed
  • Resolution set to invalid

You might be looking at a cached copy or something. For me, those two are the same. (And the printable file is generated directly from the separate page files.)

When using 0.8 quickstart, you no longer need the _connection variable.

Note: See TracTickets for help on using tickets.