[Cmfcollectorng-cvs] CMFCollectorNG/skins/collectorng1 show_users.py,1.1.2.2,1.1.2.3
Status: Alpha
Brought to you by:
ajung
|
From: <aj...@us...> - 2003-04-02 06:56:33
|
Update of /cvsroot/cmfcollectorng/CMFCollectorNG/skins/collectorng1
In directory sc8-pr-cvs1:/tmp/cvs-serv24405
Modified Files:
Tag: V-0_20-branch
show_users.py
Log Message:
added output of email address
Index: show_users.py
===================================================================
RCS file: /cvsroot/cmfcollectorng/CMFCollectorNG/skins/collectorng1/show_users.py,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -C2 -d -r1.1.2.2 -r1.1.2.3
*** show_users.py 21 Mar 2003 13:02:26 -0000 1.1.2.2
--- show_users.py 2 Apr 2003 06:56:25 -0000 1.1.2.3
***************
*** 1,12 ****
# Show a list of all users and their roles in all trackers
users = context.acl_users.getUserNames()
collectors = [ c.getObject() for c in context.portal_catalog(meta_type="CMF CollectorNG") ]
- users.sort()
for user in users:
u = context.acl_users.getUser(user)
! print user
for c in collectors:
--- 1,17 ----
# Show a list of all users and their roles in all trackers
+ mbrtool = context.portal_membership
users = context.acl_users.getUserNames()
+ users.sort()
+
collectors = [ c.getObject() for c in context.portal_catalog(meta_type="CMF CollectorNG") ]
for user in users:
u = context.acl_users.getUser(user)
!
! member = mbrtool.getMemberById(u.getUserName())
!
! print '%s (%s)' % (user, member.getProperty('email'))
for c in collectors:
|