Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes | Static Private Attributes
PlonePAS.plugins.group.PloneGroup Class Reference
Inheritance diagram for PlonePAS.plugins.group.PloneGroup:
Inheritance graph
[legend]
Collaboration diagram for PlonePAS.plugins.group.PloneGroup:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def getId
def getMemberIds
def addMember
def removeMember
def getRolesInContext
def allowed

Static Public Attributes

tuple security = ClassSecurityInfo()

Static Private Attributes

 _isGroup = True

Detailed Description

Plone expects a user to come, with approximately the same
behavior as a user.

Definition at line 279 of file group.py.


Member Function Documentation

Add the existing member with the given id to the group

Definition at line 314 of file group.py.

00314 
00315     def addMember(self, id):
00316         """Add the existing member with the given id to the group
00317         """
00318         self.addPrincipalToGroup(id, self.getId())

def PlonePAS.plugins.group.PloneGroup.allowed (   self,
  object,
  object_roles = None 
)
Since groups can't actually log in, do nothing.

Definition at line 332 of file group.py.

00332 
00333     def allowed(self, object, object_roles=None):
00334         """Since groups can't actually log in, do nothing.
00335         """
00336         return 0
00337 
00338 InitializeClass(PloneGroup)
def PlonePAS.plugins.group.PloneGroup.getId (   self,
  unprefixed = None 
)
-> user ID
Modified to accept silly GRUF param.

Definition at line 287 of file group.py.

00287 
00288     def getId(self, unprefixed=None):
00289         """ -> user ID
00290         Modified to accept silly GRUF param.
00291         """
00292         return self._id

def PlonePAS.plugins.group.PloneGroup.getMemberIds (   self,
  transitive = 1 
)
Return member ids of this group, including or not
transitive groups.

Definition at line 294 of file group.py.

00294 
00295     def getMemberIds(self, transitive = 1):
00296         """Return member ids of this group, including or not
00297         transitive groups.
00298         """
00299         # acquired from the groups_source
00300         plugins = self._getPAS().plugins
00301         introspectors = plugins.listPlugins(IGroupIntrospection)
00302         members=[]
00303         for iid, introspector in introspectors:
00304             try:
00305                 members.extend(list(introspector.getGroupMembers(self.getId())))
00306             except _SWALLOWABLE_PLUGIN_EXCEPTIONS:
00307                 logger.info(
00308                     'PluggableAuthService: getGroupMembers %s error',
00309                     iid, exc_info=1)
00310 
00311         return members
00312 

Since groups can't actually log in, do nothing.

Definition at line 326 of file group.py.

00326 
00327     def getRolesInContext(self, object):
00328         """Since groups can't actually log in, do nothing.
00329         """
00330         return []

Remove the member with the provided id from the group.

Definition at line 320 of file group.py.

00320 
00321     def removeMember(self, id):
00322         """Remove the member with the provided id from the group.
00323         """
00324         self.removePrincipalFromGroup(id, self.getId())


Member Data Documentation

Definition at line 285 of file group.py.

tuple PlonePAS.plugins.group.PloneGroup.security = ClassSecurityInfo() [static]

Definition at line 284 of file group.py.


The documentation for this class was generated from the following file: