On Sep 9, 2006, at 2:47 PM, Joe wrote:
>
> In section 4, we're instructed to edit models/__init__.py with the  
> line
>
> from quickwiki.lib.base import h
>
> However, when I ran it that way, I get an error as follows:
>
> Module ?:6 in ?
> <<  from pylons.templating import render, render_response
>     from pylons.helpers import abort, redirect_to, etag_cache
>     import quickwiki.models as model
>     import quickwiki.lib.helpers as h
>     import sqlalchemy.mods.threadlocal
> Module myghty.importer:54 in import_module
>>>  return builtin_importer(name, globals, locals, fromlist)
> Module ?:2 in ?
> <<  import re
>     from quickwiki.lib.base import h
>     #import quickwiki.lib.helpers as h
>     wikiwords = re.compile(r"\b([A-Z]\w+[A-Z]+\w+)")
> exceptions.ImportError: cannot import name h
>
> I substituted the suggested line by the commented line above and it
> worked.  Other than that and a few typos here and there in the  
> tutorial
> text, everything went well.  I may have finally found what I was  
> looking
> for.
>

Thanks for pointing this out, this was just changed yesterday after  
the 0.9.2 release (due to the fact that we changed the 'h' object  
slightly for new projects). I've updated the docs with the fixed code.

--
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 [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
-~----------~----~----~----~------~----~------~--~---

Reply via email to