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 #40 (closed defect: fixed)

Opened 14 years ago

Last modified 12 years ago

Comment on docs/wiki20/page5.html

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

Description

On line 5 of the updates to the save method, the parameter "name" is passed to Page:

    @turbogears.expose(validators=dict(new=validators.StringBoolean()))
    def save(self, pagename, data, submit, new):
        hub.begin()
        if new:
            page = Page(name=pagename, data=data)

It should be "pagename":

    @turbogears.expose(validators=dict(new=validators.StringBoolean()))
    def save(self, pagename, data, submit, new):
        hub.begin()
        if new:
            page = Page(pagename=pagename, data=data)

Change History

comment:1 Changed 14 years ago by kevin

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

got it. Thanks!

Note: See TracTickets for help on using tickets.