About QuickWiki tutorial:
in models, _init_.py file i've got:
class Page(object):
content = None
def __str__(self):
return self.title
def get_wiki_content(self):
content = publish_parts(self.content, writer_name="html")
["html_body"]
titles = sets.Set(wikiwords.findall(content))
for title in titles:
title_url = h.url_for(controller='page', action='index',
title=title)
content = content.replace(title, h.link_to(title,
title_url))
return content
mapper(Page, pages_table)
and when I go with "paster setup-app development.ini" it shows error
"name "Page" is not definied". Where could I go wrong?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---