On 2/21/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I'm doing the QuickWiki tutorial. I can't figure out what's wrong I
> always get this message.
>
> Module myghty.importer:54 in import_module
> << return modules[name].module
> except KeyError:
> return builtin_importer(name, globals, locals, fromlist)
>
> __builtin__.__import__ = import_module>> return
> builtin_importer(name, globals, locals, fromlist)
> exceptions.SyntaxError: invalid syntax (page.py, line 7)
>
> here's the index function of the page.py. Line 7 is "if page:".
>
> page = model.Page.get_by(title=title)
> if page:
> c.content = page.get_wiki_content()
> return render_response('/page.myt')
> elif model.wikiwords.match(title):
> return render_response('/new_page.myt')
> abort(404)
Is this a spaces vs. tabs problem?
If so, use "python -tt" to die on spaces vs. tabs problems. Better
yet, use only spaces, where 4 spaces = 1 indentation level.
Best Regards,
-jj
--
http://jjinux.blogspot.com/
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---