Am 03.05.2010 um 06:06 schrieb William Chambers:
I've been working on renaming TurboGears 2's Repoze 'groups' field to
'roles' to free the namespace and db tables for other purposes. Also
roles makes much more sense to me then groups because I have a strong
Drupal background.
Now I have found some of the docs to do this such as these:
http://www.turbogears.org/2.1/docs/main/Auth/Customization.html#customizing-the-model-structure-assumed-by-the-quickstart
http://code.gustavonarea.net/repoze.what-quickstart/#customizing-the-model-definition
However these only go part of the way. I have made (I'm pretty sure at
least, I've double checked a few times.) all the changes required as
you can see in this diff.
This seems to work fine however I've ran into a rather major issue
with the TurboGears Admin system.
I've tried http://turbogears.org/2.0/docs/main/Extensions/Admin/index.html
and it didn't seem to make any difference, however I'm not 100% sure I
did it correctly.
The problem occurs when I attempt to go to localhost/admin/
permissions/. It causes a Internal Server Error and outputs the
following error. http://pastebin.com/YWMH3SiU This error does not
happen on the Roles/Users pages and the permissions /edit/1 also
works.
I'm running kubuntu 10.04 with TG 2.1b2. (I'm running the beta mostly
for easier mako support which is really important.)
Any help would be very appreciated.
Have you visited the debug-screen? what happens there?
The problem with the traceback at hand is that it's useless. Not
because of your fault, but apparently weberror tries to gather
information for the traceback & fails doing so. I have no idea *what*
makes it fail, so I can only suggest to try visit the debug-session &
re-install the virtualenv including setuptools.
Diez
--
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.