Sphene Community Tools

Community

Copyright © 2007-2018 by Herbert Poul

You are not logged in.
Login
Register

Change Language:



AddThis Social Bookmark Button

A Django site.

Powered by Sphene Community Tools
Board » General » Feature Discussions » KeyError u'role.name'

==========================================================================

Environment:

Request Method: GET
Request URL: http://www.abc.com/ggum/community/admin/permission/role/member/1/list/
Django Version: 0.97-pre-SVN-7229
Python Version: 2.4.4
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'home',
'sphene.community',
'sphene.sphboard',
'sphene.sphblog',
'sphene.sphwiki']
Installed Middleware:
('sphene.community.middleware.ThreadLocals',
'sphene.community.middleware.GroupMiddleware',
'sphene.community.middleware.LastModified',
'sphene.community.middleware.PermissionDeniedMiddleware',
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.middleware.doc.XViewMiddleware')


Template error:
In template /data/lib/communitytools/sphenecoll/sphene/community/templates/sphene/community/admin/permission/role_member_list.html, error at line 8
Caught an exception while rendering: u'role.name'
1 : {% extends "sphene/community/admin/permission/base.html" %}


2 : {% load i18n %}


3 : {% load sph_extras %}


4 :


5 : {% block content %}


6 : {{ block.super }}


7 :


8 : {% blocktrans %} Members of the role '{{ role.name }}'.{% endblocktrans %}<br/><br/>


9 :


10 : <table>


11 : <tr>


12 : <th>&nbsp;</th>


13 : <th>{% trans "User" %}</th>


14 : <th>{% trans "Limitations" %}</th>


15 : </tr>


16 : {% for member in members %}


17 : <tr>


18 : <td class="sph_options">[ <a href="?cmd=remove&amp;id={{ member.id }}">{% trans "Remove" %}</a> ]</td>


Traceback:
File "/data/lib/django_trunk/django/template/debug.py" in render_node
71. result = node.render(context)
File "/data/lib/django_trunk/django/templatetags/i18n.py" in render
82. data = dict([(v, force_unicode(contextv)) for v in vars])
File "/data/lib/django_trunk/django/template/context.py" in __getitem__
43. raise KeyError(key)

Exception Type: KeyError at /ggum/community/admin/permission/role/member/1/list/
Exception Value: u'role.name'

==========================================================================
committed the fix, update from subversion it should work now
Hey, we have Signatures !!! Great, isn't it ? ;)

Please login to post a reply.



Powered by Sphene Community Tools