On Jan 28, 2008, at 4:46 PM, Mikeroz wrote:

>
> 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?
>

Your mapper line seems to be indented incorrectly (it shouldn't be  
indented at all). Python most likely gave you its specific line  
number in the error message.

--
Philip Jenvey



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to pylons-discuss@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to