Il faut maintenant utiliser getProperty pour accéder aux propriété d'un utilisateur.
[Plinn.git] / interfaces / portal_membership.py
1 from Products.CMFDefault.interfaces.portal_membership \
2 import portal_membership as BaseInterface
3
4
5 class portal_membership(BaseInterface):
6 """ Declare product-specific APIs for Plinn's tool.
7 """
8
9 def getCandidateLocalRoles(self, obj) :
10 """ What local roles can I assign?
11 If I am a manager I can assign every portal roles
12 If I am a simple member, I can assign my roles or 'possible_local_roles'
13 from Plinn type information patch
14 """
15
16 def getMemberFullNameById(self, userid) :
17 """ Return the best formated representation of user fullname.
18
19 Return NAME Surname or
20 NAME or Surname or userid
21 """
22
23 def getMembers(self, users) :
24 """ Return wraped users """
25
26 def getOtherMembers(self, users) :
27 """ Return the complement of global members set """