TurboGears /.-ed, >new == True< or >new == "True"<

Andy Leszczynski leszczynscyATnospam.yahoo.com.nospam
Wed Oct 12 04:29:13 CEST 2005


watch this:
http://www.turbogears.org.nyud.net:8090/docs/wiki20/20MinuteWiki.mov

or read this:
http://www.turbogears.org.nyud.net:8090/docs/wiki2 0/page4.html

should not it be:

2 def save(self, pagename, data, submit, new):
3 hub.begin()
4 if new == True:
5     page = Page(pagename=pagename, data=data)
6 else:
7     page = Page.byPagename(pagename)
8     page.data = data

instead of:

4 if new == "True":



More information about the Python-list mailing list