On Sat, Apr 2, 2011 at 4:41 PM, m8ram <[email protected]> wrote:
> Furthermore I noticed that on my Fedora system I need python-tg-
> devtools for the paster quickstart to work.
>

Uhm, if you installed TG in a virtual env you will need to have the
virtualenv enabled before being able to use the quickstart command.
By installing your system tgdevtools package you are installing
turbogears also system wide.
I would suggest to always work from a virtualenv avoiding to have TG
installed system wide.

Try to work from a clean virtualenv created by following
http://www.turbogears.org/2.1/docs/main/DownloadInstall.html#installation-for-the-impatient

> Next I receive the following depreciation warning when starting the
> server:
> /usr/lib/python2.6/site-packages/pylons/templating.py:328:
> DeprecationWarning: pylons.h is deprecated: use your project's
> lib.helpers module directly instead. Your lib/helpers.py may require
> the following additional imports:
>
>    from pylons.helpers import log
>    from pylons.i18n import get_lang, set_lang
>
> Use the following in your project's lib/base.py file (and any other
> module that
> uses h):
>
>    import MYPROJ.lib.helpers as h
>
> (where MYPROJ is the name of your project) instead of:
>
>    from pylons import h
>
>  globs.update(pylons_globals())
>

This should have been fixed long time ago and TG2.1 it should not
report such a warning.
Also pay attention that you are using libraries from
/usr/lib/python2.6 instead of the virtualenv.

> The "Wiki Model and Database" section says to import Page and
> pages_table from wiki20.model.page but pages_table is not defined.
> I suspect that the "order_by(pagelist)" issue is also a result from
> this.  Perhaps an earlier or more complicated version of this tutorial
> contained an additional table.
>

This seems to be already been fixed on git of documentation.

> Also "Wiki-20/wiki20/websetup.py" is a package named websetup in
> version 2.1-0.1.b2.fc13.
> After adding the code to initialize the table to wiki20/websetup/
> schema.py the DB was created correctly.
>

Yes, this has to be updated. I'll work on it today.

> 1. Under the heading "Hey, where’s the page?"
>
>            raise tg.redirect("notfound", pagename = pagename)
>
> tg was never imported, so...
>

Just pushed the fix for this on
http://sourceforge.net/p/turbogears2/tg2docs/ci/79a9cff4454588d96751f6b2ba616d8c8a10108a

> 2. Under the heading "Hey, where’s the page?"
>
>    @expose("wiki20.templates.pagelist")
>    defpagelist(self):
>        pages = [page.pagename for page in
> DBSession.query(Page).order_by(pagelist)]
>        return dict(pages=pages)

This is already fixed. order_by clause has been removed from the
tutorial, it wasn't really required.

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en.

Reply via email to