I'm trying out Turbogears for the first time and figured I'd start
with TG2. It looks very promising.
I suspect these are known issues, but I didn't see most of them in
Trac, so I figured it would be useful to report/ask (and please feel
free to follow up if I'm wrong):
------
1) It looks like SAContext is deprecated in SA 0.4 and that TG
shouldn't be using it in lib/database.py
/opt/local/lib/python2.5/site-packages/SQLAlchemy-0.4.0beta4-py2.5.egg/sqlalchemy/ext/activemapper.py:24:
SADeprecationWarning: SessionContext is deprecated. Use
scoped_session().
self.context = SessionContext(*args, **kwargs)
--
2) From the Pylons 0.96 upgrade, helpers has moved:
/Users/dlgould/tg/tutorial/tutorial/lib/base.py:9: DeprecationWarning:
The pylons.helper module has moved to pylons.controllers.util; please
update your imports.
from pylons.helpers import abort, etag_cache, redirect_to
--
3) Likewise:
/opt/local/lib/python2.5/site-packages/TurboGears2-2.0a1dev_r3399-py2.5.egg/tg/controllers.py:41:
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
pylons.h.error_for=error_for
--
4) This is in Trac, but it doesn't seem to automatically install Elixir
--
5) This is in Trac, but it's no obvious how to create a database.
It looks like folks want to use migrate. Will this ship with the
distribution (and be callable from paster)? Is this how we should
create tables? In the meantime, should we d/l it ourselves?
---
6) It's not super-obvious where/how to create your model and reference
it in the controller.
--
7) Saying you want identity doesn't seem to do much. Also, from the
identity docs, it's not clear how you register a new user (and then
have it set them to logged it). Ideally, registration would support
email auth, etc.
Keep up the good work & Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Trunk" 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-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---