Back to index

plone3  3.1.7
Public Member Functions | Private Attributes | Static Private Attributes
CMFCore.tests.base.dummy.DummyFactoryDispatcher Class Reference

List of all members.

Public Member Functions

def __init__
def getId
def addFoo

Private Attributes

 _folder

Static Private Attributes

tuple __roles__ = ( 'FooAdder', )
dictionary __allow_access_to_unprotected_subobjects__ = { 'addFoo' : 1 }

Detailed Description

Dummy Product Factory Dispatcher

Definition at line 182 of file dummy.py.


Constructor & Destructor Documentation

Definition at line 187 of file dummy.py.

00187 
00188     def __init__( self, folder ):
00189         self._folder = folder


Member Function Documentation

def CMFCore.tests.base.dummy.DummyFactoryDispatcher.addFoo (   self,
  id,
  args,
  kw 
)

Definition at line 193 of file dummy.py.

00193 
00194     def addFoo( self, id, *args, **kw ):
00195         if getattr(self._folder, '_prefix', None):
00196             id = '%s_%s' % ( self._folder._prefix, id )
00197         foo = DummyContent(id, *args, **kw)
00198         self._folder._setObject(id, foo)
00199         if getattr(self._folder, '_prefix', None):
00200             return id

Definition at line 190 of file dummy.py.

00190 
00191     def getId(self):
00192         return 'DummyFactoryDispatcher'


Member Data Documentation

Definition at line 202 of file dummy.py.

tuple CMFCore.tests.base.dummy.DummyFactoryDispatcher.__roles__ = ( 'FooAdder', ) [static, private]

Definition at line 201 of file dummy.py.

Definition at line 188 of file dummy.py.


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