Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes
PlonePAS.storage.PASStorage Class Reference

List of all members.

Public Member Functions

def get
def set

Static Public Attributes

tuple security = ClassSecurityInfo()

Detailed Description

Definition at line 27 of file storage.py.


Member Function Documentation

def PlonePAS.storage.PASStorage.get (   self,
  name,
  instance,
  kwargs 
)

Definition at line 31 of file storage.py.

00031 
00032     def get(self, name, instance, **kwargs):
00033         user = instance.getUser()
00034         sheets = user.getOrderedSheets()
00035         for sheet in sheets:
00036             if sheet.hasProperty( name ):
00037                 return sheet.getProperty( name )
00038         raise AttributeError( name )

Here is the caller graph for this function:

def PlonePAS.storage.PASStorage.set (   self,
  name,
  instance,
  value,
  kwargs 
)

Definition at line 39 of file storage.py.

00039 
00040     def set(self, name, instance, value, **kwargs):
00041         user = instance.getUser()
00042         sheets = user.getOrderedSheets()
00043         for sheet in sheets:
00044             if sheet.hasProperty( name ):
00045                 if IMutablePropertySheet.providedBy( sheet ):
00046                     sheet.setProperty( name, value )
00047                 else:
00048                     raise RuntimeError("mutable property provider shadowed by read only provider")
00049 
00050 classImplements(PASStorage,
00051                 IStorage)

Here is the call graph for this function:


Member Data Documentation

tuple PlonePAS.storage.PASStorage.security = ClassSecurityInfo() [static]

Definition at line 29 of file storage.py.


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