[Tracker-discuss] [issue63] List of roles in user search popup is incorrect
Paul Dubois
metatracker at psf.upfronthosting.co.za
Sun Jan 14 19:35:27 CET 2007
Paul Dubois <pfdubois at gmail.com> added the comment:
Done. For the moment, decided to change the hardwired list.
The comment in page.html says there is no API for getting the list of roles. I
think it should be pretty easy, something like (caution, not tested):
import sets
roleSet=sets.Set()
userids=db.user.getnodeids(retired=False)
for n in userids:
roles = db.user.get(n, 'roles')
for role in roles.split(','):
roleSet.add(role)
roleList = [s for s in roleSet]
I don't know enough TAL to know how to do this inline. I don't think this
belongs in roundupdb.py does it, because 'Role' is not a required concept?
______________________________________________________
Meta Tracker <metatracker at psf.upfronthosting.co.za>
<http://psf.upfronthosting.co.za/roundup/meta/issue63>
______________________________________________________
More information about the Tracker-discuss
mailing list