Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
Archetypes.tests.test_aggregated_storage.Dummy Class Reference
Inheritance diagram for Archetypes.tests.test_aggregated_storage.Dummy:
Inheritance graph
[legend]
Collaboration diagram for Archetypes.tests.test_aggregated_storage.Dummy:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def get_name
def set_name

Public Attributes

 firstname
 lastname

Detailed Description

Definition at line 37 of file test_aggregated_storage.py.


Constructor & Destructor Documentation

def Archetypes.tests.test_aggregated_storage.Dummy.__init__ (   self,
  oid,
  kwargs 
)

Definition at line 39 of file test_aggregated_storage.py.

00039 
00040     def __init__(self, oid, **kwargs):
00041         BaseContent.__init__(self, oid, **kwargs)
00042         self.firstname = ''
00043         self.lastname = ''

Here is the caller graph for this function:


Member Function Documentation

def Archetypes.tests.test_aggregated_storage.Dummy.get_name (   self,
  name,
  instance,
  kwargs 
)
aggregator 

Definition at line 44 of file test_aggregated_storage.py.

00044 
00045     def get_name(self, name, instance, **kwargs):
00046         """ aggregator """
00047         return {'whole_name' : instance.firstname + " " + instance.lastname }

def Archetypes.tests.test_aggregated_storage.Dummy.set_name (   self,
  name,
  instance,
  value,
  kwargs 
)
disaggregator 

Definition at line 48 of file test_aggregated_storage.py.

00048 
00049     def set_name(self, name, instance, value, **kwargs):
00050         """ disaggregator """
00051         try:
00052             firstname, lastname = value.split(' ')
00053         except:
00054             firstname = lastname = ''
00055         setattr(instance, 'firstname', firstname)
00056         setattr(instance, 'lastname', lastname)
00057 
00058 registerType(Dummy, 'Archetypes')
00059 

Here is the call graph for this function:


Member Data Documentation

Definition at line 41 of file test_aggregated_storage.py.

Definition at line 42 of file test_aggregated_storage.py.


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