Back to index

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

List of all members.

Public Member Functions

def absolute_url
def getPhysicalPath
def getPhysicalRoot
def unrestrictedTraverse
def userdefined_roles
def getProperty
def getId
def reindexObjectSecurity
def contentIds
def all_meta_types
def getTypeInfo
def __str__
def __call__
def restrictedTraverse
def getIcon

Public Attributes

 manage_addProduct

Static Private Attributes

string _domain = 'http://www.foobar.com'
string _path = 'bar'

Detailed Description

A dummy portal folder.

Definition at line 269 of file dummy.py.


Member Function Documentation

Definition at line 53 of file dummy.py.

00053 
00054     def __call__(self):
00055         return self._id

Here is the caller graph for this function:

Definition at line 50 of file dummy.py.

00050 
00051     def __str__(self):
00052         return self._id

def CMFCore.tests.base.dummy.DummySite.absolute_url (   self,
  relative = 0 
)

Definition at line 277 of file dummy.py.

00277 
00278     def absolute_url(self, relative=0):
00279         return '/'.join( (self._domain, self._path, self._id) )

Definition at line 263 of file dummy.py.

00263 
00264     def all_meta_types(self):
00265         return ({'name': 'Dummy', 'permission': 'addFoo'},)

Definition at line 260 of file dummy.py.

00260 
00261     def contentIds(self):
00262         return ('user_bar',)

def CMFCore.tests.base.dummy.DummyObject.getIcon (   self,
  relative = 0 
) [inherited]

Definition at line 59 of file dummy.py.

00059 
00060     def getIcon( self, relative=0 ):
00061         return 'Site: %s' % relative

Here is the caller graph for this function:

def CMFCore.tests.base.dummy.DummyFolder.getId (   self) [inherited]

Reimplemented from CMFCore.tests.base.dummy.DummyObject.

Definition at line 254 of file dummy.py.

00254 
00255     def getId(self):
00256         return self._id

Reimplemented from CMFCore.tests.base.dummy.DummyFolder.

Definition at line 280 of file dummy.py.

00280 
00281     def getPhysicalPath(self):
00282         return ('', self._path, self._id)

Here is the caller graph for this function:

Definition at line 283 of file dummy.py.

00283 
00284     def getPhysicalRoot(self):
00285         return self

Here is the caller graph for this function:

def CMFCore.tests.base.dummy.DummySite.getProperty (   self,
  id,
  default = None 
)

Definition at line 298 of file dummy.py.

00298 
00299     def getProperty(self, id, default=None):
00300         return getattr(self, id, default)
00301 

Here is the caller graph for this function:

Definition at line 266 of file dummy.py.

00266 
00267     def getTypeInfo(self):
00268         return self.portal_types.getTypeInfo(self)  # Can return None.

Here is the caller graph for this function:

Definition at line 257 of file dummy.py.

00257 
00258     def reindexObjectSecurity(self):
00259         pass

def CMFCore.tests.base.dummy.DummyObject.restrictedTraverse (   self,
  path 
) [inherited]

Definition at line 56 of file dummy.py.

00056 
00057     def restrictedTraverse( self, path ):
00058         return path and getattr( self, path ) or self

Here is the caller graph for this function:

def CMFCore.tests.base.dummy.DummySite.unrestrictedTraverse (   self,
  path,
  default = None,
  restricted = 0 
)

Definition at line 286 of file dummy.py.

00286 
00287     def unrestrictedTraverse(self, path, default=None, restricted=0):
00288         if path == ['acl_users']:
00289             return self.acl_users
00290         else:
00291             obj = self
00292             for id in path[3:]:
00293                 obj = getattr(obj, id)
00294             return obj

Here is the caller graph for this function:

Definition at line 295 of file dummy.py.

00295 
00296     def userdefined_roles(self):
00297         return ('Member', 'Reviewer')

Here is the caller graph for this function:


Member Data Documentation

string CMFCore.tests.base.dummy.DummySite._domain = 'http://www.foobar.com' [static, private]

Definition at line 273 of file dummy.py.

string CMFCore.tests.base.dummy.DummySite._path = 'bar' [static, private]

Definition at line 274 of file dummy.py.

Definition at line 216 of file dummy.py.


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