86f13207fd2995253884e4d1c4e5e7f6faa374da
1 from Products
.CMFDefault
.interfaces
.portal_membership \
2 import portal_membership
as BaseInterface
5 class portal_membership(BaseInterface
):
6 """ Declare product-specific APIs for Plinn's tool.
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
16 def getMemberFullNameById(self
, userid
) :
17 """ Return the best formated representation of user fullname.
19 Return NAME Surname or
20 NAME or Surname or userid
23 def getMembers(self
, users
) :
24 """ Return wraped users """
26 def getOtherMembers(self
, users
) :
27 """ Return the complement of global members set """