I just got around to checking out the subversion trunk, and stumbled on
a name conflict.  I had a sqlobject class named User in a project I'm
working on, and this conflicts with the new identity User.  I don't
have identity turned on (looks like that is the default).  Last line of
the traceback is:

ValueError: class User is already in the registry (other class is
<class 'foo.model.User'>, from the module foo.model in
/Users/plewis/Programming/TurboGears/foo/foo/model.pyc; attempted new
class is <class 'turbogears.identity.model.somodel.User'>, from the
module turbogears.identity.model.somodel in
/Users/plewis/Programming/turbogears_svn/trunk/turbogears/identity/model/somodel.pyc)

I guess the general question I have is should there be a specific
namespace of some type for turbogears objects (e.g. TGUser, TGGroup)?
Are there other turbogears models that are registered?  If the answer
is User and Group are reserved for turbogears, I suppose that's fine,
but it should probably be documented as such.

Reply via email to