Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes
CMFCore.DirectoryView.DirectoryViewSurrogate Class Reference
Inheritance diagram for CMFCore.DirectoryView.DirectoryViewSurrogate:
Inheritance graph
[legend]
Collaboration diagram for CMFCore.DirectoryView.DirectoryViewSurrogate:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def __setattr__
def __delattr__
def manage_properties
def getCustomizableObject
def listCustFolderPaths
def getDirPath
def getId

Static Public Attributes

string meta_type = 'Filesystem Directory View'
tuple all_meta_types = ()
tuple security = ClassSecurityInfo()
tuple manage_propertiesForm = DTMLFile( 'dirview_properties', _dtmldir )

Detailed Description

Folderish DirectoryView.

Definition at line 513 of file DirectoryView.py.


Constructor & Destructor Documentation

def CMFCore.DirectoryView.DirectoryViewSurrogate.__init__ (   self,
  real,
  data,
  objects 
)

Definition at line 525 of file DirectoryView.py.

00525 
00526     def __init__(self, real, data, objects):
00527         d = self.__dict__
00528         d.update(data)
00529         d.update(real.__dict__)
00530         d['_real'] = real
00531         d['_objects'] = objects


Member Function Documentation

Definition at line 537 of file DirectoryView.py.

00537 
00538     def __delattr__(self, name):
00539         d = self.__dict__
00540         del d[name]
00541         delattr(d['_real'], name)

def CMFCore.DirectoryView.DirectoryViewSurrogate.__setattr__ (   self,
  name,
  value 
)

Definition at line 532 of file DirectoryView.py.

00532 
00533     def __setattr__(self, name, value):
00534         d = self.__dict__
00535         d[name] = value
00536         setattr(d['_real'], name, value)

Definition at line 555 of file DirectoryView.py.

00555 
00556     def getCustomizableObject(self):
00557         ob = aq_parent(aq_inner(self))
00558         while ob:
00559             if IDirectoryView.providedBy(ob):
00560                 ob = aq_parent(ob)
00561             elif getattr(ob, '_isDirectoryView', 0):
00562                 # BBB
00563                 warn("The '_isDirectoryView' marker attribute is deprecated, "
00564                      "and will be removed in CMF 2.3.  Please mark the "
00565                      "instance with the 'IDirectoryView' interface instead.",
00566                      DeprecationWarning, stacklevel=2)
00567                 ob = aq_parent(ob)
00568             else:
00569                 break
00570         return ob

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 582 of file DirectoryView.py.

00582 
00583     def getDirPath(self):
00584         return self.__dict__['_real']._dirpath

Definition at line 586 of file DirectoryView.py.

00586 
00587     def getId(self):
00588         return self.id
00589 
00590 InitializeClass(DirectoryViewSurrogate)
00591 

Here is the call graph for this function:

def CMFCore.DirectoryView.DirectoryViewSurrogate.listCustFolderPaths (   self,
  adding_meta_type = None 
)
List possible customization folders as key, value pairs.

Definition at line 572 of file DirectoryView.py.

00572 
00573     def listCustFolderPaths(self, adding_meta_type=None):
00574         """ List possible customization folders as key, value pairs.
00575         """
00576         rval = []
00577         ob = self.getCustomizableObject()
00578         listFolderHierarchy(ob, '', rval, adding_meta_type)
00579         rval.sort()
00580         return rval

Here is the call graph for this function:

def CMFCore.DirectoryView.DirectoryViewSurrogate.manage_properties (   self,
  reg_key,
  REQUEST = None 
)
Update the directory path of the DirectoryView.

Definition at line 546 of file DirectoryView.py.

00546 
00547     def manage_properties(self, reg_key, REQUEST=None):
00548         """ Update the directory path of the DirectoryView.
00549         """
00550         self.__dict__['_real']._dirpath = reg_key
00551         if REQUEST is not None:
00552             REQUEST['RESPONSE'].redirect( '%s/manage_propertiesForm'
00553                                         % self.absolute_url() )

Here is the call graph for this function:


Member Data Documentation

Definition at line 521 of file DirectoryView.py.

tuple CMFCore.DirectoryView.DirectoryViewSurrogate.manage_propertiesForm = DTMLFile( 'dirview_properties', _dtmldir ) [static]

Definition at line 543 of file DirectoryView.py.

string CMFCore.DirectoryView.DirectoryViewSurrogate.meta_type = 'Filesystem Directory View' [static]

Definition at line 520 of file DirectoryView.py.

tuple CMFCore.DirectoryView.DirectoryViewSurrogate.security = ClassSecurityInfo() [static]

Definition at line 523 of file DirectoryView.py.


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