Back to index

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

List of all members.

Public Member Functions

def __init__
def __of__
def getId

Public Attributes

 id

Static Public Attributes

string meta_type = 'Filesystem Directory View'

Static Private Attributes

 _dirpath = None
 _properties = None
tuple _objects = ()

Detailed Description

Directory views mount filesystem directories.

Definition at line 463 of file DirectoryView.py.


Constructor & Destructor Documentation

def CMFCore.DirectoryView.DirectoryView.__init__ (   self,
  id,
  reg_key = '',
  fullname = None,
  properties = None 
)

Definition at line 475 of file DirectoryView.py.

00475 
00476     def __init__(self, id, reg_key='', fullname=None, properties=None):
00477         if properties:
00478             # Since props come from the filesystem, this should be
00479             # safe.
00480             self.__dict__.update(properties)
00481 
00482         self.id = id
00483         self._dirpath = reg_key
00484         self._properties = properties


Member Function Documentation

def CMFCore.DirectoryView.DirectoryView.__of__ (   self,
  parent 
)

Definition at line 485 of file DirectoryView.py.

00485 
00486     def __of__(self, parent):
00487         reg_key = self._dirpath
00488         info = _dirreg.getDirectoryInfo(reg_key)
00489         if info is None:
00490             try:
00491                 reg_key = self._dirpath = _dirreg.getCurrentKeyFormat(reg_key)
00492                 info = _dirreg.getDirectoryInfo(reg_key)
00493             except ValueError:
00494                 # During GenericSetup a view will be created with an empty
00495                 # reg_key. This is expected behaviour, so do not warn about it.
00496                 if reg_key:
00497                     warn('DirectoryView %s refers to a non-existing path %r' %
00498                           (self.id, reg_key), UserWarning)
00499         if info is None:
00500             data = {}
00501             objects = ()
00502         else:
00503             data, objects = info.getContents(_dirreg)
00504         s = DirectoryViewSurrogate(self, data, objects)
00505         res = s.__of__(parent)
00506         return res

Here is the call graph for this function:

Definition at line 507 of file DirectoryView.py.

00507 
00508     def getId(self):
00509         return self.id
00510 
00511 InitializeClass(DirectoryView)
00512 


Member Data Documentation

Definition at line 471 of file DirectoryView.py.

tuple CMFCore.DirectoryView.DirectoryView._objects = () [static, private]

Definition at line 473 of file DirectoryView.py.

Definition at line 472 of file DirectoryView.py.

Definition at line 481 of file DirectoryView.py.

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

Definition at line 470 of file DirectoryView.py.


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