Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Private Member Functions
plone.portlets.assignable.LocalPortletAssignmentManager Class Reference

List of all members.

Public Member Functions

def __init__
def setBlacklistStatus
def getBlacklistStatus

Public Attributes

 context
 manager

Private Member Functions

def _getBlacklist

Detailed Description

Default implementation of ILocalPortletAssignmentManager which stores
information in an annotation.

Definition at line 37 of file assignable.py.


Constructor & Destructor Documentation

def plone.portlets.assignable.LocalPortletAssignmentManager.__init__ (   self,
  context,
  manager 
)

Definition at line 44 of file assignable.py.

00044 
00045     def __init__(self, context, manager):
00046         self.context = context
00047         self.manager = manager

Here is the caller graph for this function:


Member Function Documentation

def plone.portlets.assignable.LocalPortletAssignmentManager._getBlacklist (   self,
  create = False 
) [private]

Definition at line 58 of file assignable.py.

00058 
00059     def _getBlacklist(self, create=False):
00060         annotations = IAnnotations(self.context)
00061         local = annotations.get(CONTEXT_BLACKLIST_STATUS_KEY, None)
00062         if local is None:
00063             if create:
00064                 local = annotations[CONTEXT_BLACKLIST_STATUS_KEY] = PersistentDict()
00065             else:
00066                 return None
00067         blacklist = local.get(self.manager.__name__, None)
00068         if blacklist is None:
00069             if create:
00070                 blacklist = local[self.manager.__name__] = PersistentDict()
00071             else:
00072                 return None
        return blacklist

Here is the caller graph for this function:

Definition at line 52 of file assignable.py.

00052 
00053     def getBlacklistStatus(self, category):
00054         blacklist = self._getBlacklist(False)
00055         if blacklist is None:
00056             return None
00057         return blacklist.get(category, None)
        

Here is the call graph for this function:

Definition at line 48 of file assignable.py.

00048 
00049     def setBlacklistStatus(self, category, status):
00050         blacklist = self._getBlacklist(True)
00051         blacklist[category] = status
    

Here is the call graph for this function:


Member Data Documentation

Definition at line 45 of file assignable.py.

Definition at line 46 of file assignable.py.


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