Back to index

plone3  3.1.7
Public Member Functions
Archetypes.Field.DynVariant Class Reference
Inheritance diagram for Archetypes.Field.DynVariant:
Inheritance graph
[legend]
Collaboration diagram for Archetypes.Field.DynVariant:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def __getitem__

Detailed Description

Provide access to the variants.

Definition at line 2513 of file Field.py.


Constructor & Destructor Documentation

Definition at line 2516 of file Field.py.

02516 
02517     def __init__(self):
02518         deprecated('DynVariant (for PhotoField) is deprecated after work '
02519                    'done on ImageField and ATImage. It will be removed in '
02520                    'Archetypes 1.5. If someone like to keep the code please '
02521                    'move it over to an own Product in MoreFieldsAndWidgets '
02522                    'repository.'
02523         )   

Here is the call graph for this function:

Here is the caller graph for this function:


Member Function Documentation

def Archetypes.Field.DynVariant.__getitem__ (   self,
  name 
)

Definition at line 2524 of file Field.py.

02524 
02525     def __getitem__(self, name):
02526         if self.checkForVariant(name):
02527             return self.getPhoto(name).__of__(aq_parent(self))
02528         else:
02529             return aq_parent(self)

Here is the call graph for this function:

Here is the caller graph for this function:


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