Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes | Static Private Attributes
Archetypes.Storage.ObjectManagedStorage Class Reference
Inheritance diagram for Archetypes.Storage.ObjectManagedStorage:
Inheritance graph
[legend]
Collaboration diagram for Archetypes.Storage.ObjectManagedStorage:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def get
def set
def unset
def getName
def __repr__
def __cmp__

Static Public Attributes

tuple security = ClassSecurityInfo()

Static Private Attributes

 __implements__ = IStorage

Detailed Description

Stores data using the Objectmanager interface. It's usually
used for BaseFolder-based content

Definition at line 115 of file __init__.py.


Member Function Documentation

def Archetypes.Storage.Storage.__cmp__ (   self,
  other 
) [inherited]

Definition at line 36 of file __init__.py.

00036 
00037     def __cmp__(self, other):
00038         return cmp(self.getName(), other.getName())

Here is the call graph for this function:

def Archetypes.Storage.Storage.__repr__ (   self) [inherited]

Definition at line 33 of file __init__.py.

00033 
00034     def __repr__(self):
00035         return "<Storage %s>" % (self.getName())

Here is the call graph for this function:

def Archetypes.Storage.ObjectManagedStorage.get (   self,
  name,
  instance,
  kwargs 
)

Reimplemented from Archetypes.Storage.Storage.

Definition at line 124 of file __init__.py.

00124 
00125     def get(self, name, instance, **kwargs):
00126         try:
00127             return instance._getOb(name)
00128         except Exception, msg:
00129             raise AttributeError(msg)

Here is the caller graph for this function:

def Archetypes.Storage.Storage.getName (   self) [inherited]

Definition at line 30 of file __init__.py.

00030 
00031     def getName(self):
00032         return self.__class__.__name__

Here is the caller graph for this function:

def Archetypes.Storage.ObjectManagedStorage.set (   self,
  name,
  instance,
  value,
  kwargs 
)

Reimplemented from Archetypes.Storage.Storage.

Definition at line 131 of file __init__.py.

00131 
00132     def set(self, name, instance, value, **kwargs):
00133         # Remove acquisition wrappers
00134         value = aq_base(value)
00135         try:
00136             instance._delObject(name)
00137         except (AttributeError, KeyError):
00138             pass
00139         instance._setObject(name, value)
00140         instance._p_changed = 1

Here is the caller graph for this function:

def Archetypes.Storage.ObjectManagedStorage.unset (   self,
  name,
  instance,
  kwargs 
)

Reimplemented from Archetypes.Storage.Storage.

Definition at line 142 of file __init__.py.

00142 
00143     def unset(self, name, instance, **kwargs):
00144         instance._delObject(name)
00145         instance._p_changed = 1


Member Data Documentation

Reimplemented from Archetypes.Storage.Storage.

Definition at line 119 of file __init__.py.

tuple Archetypes.Storage.ObjectManagedStorage.security = ClassSecurityInfo() [static]

Reimplemented from Archetypes.Storage.Storage.

Definition at line 121 of file __init__.py.


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