Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Private Member Functions
ATContentTypes.configuration.datatype.Archetype Class Reference
Inheritance diagram for ATContentTypes.configuration.datatype.Archetype:
Inheritance graph
[legend]
Collaboration diagram for ATContentTypes.configuration.datatype.Archetype:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def set

Public Attributes

 name

Private Member Functions

def _parse

Detailed Description

data handler for an archetype option

Definition at line 159 of file datatype.py.


Member Function Documentation

Reimplemented from ATContentTypes.configuration.datatype.BaseFactory.

Definition at line 163 of file datatype.py.

00163 
00164     def _parse(self):
00165         sec = self._section
00166         self.set('max_file_size', sec.max_file_size)
00167         self.set('max_image_dimension', sec.max_image_dimension)
00168         self.set('allow_document_upload', sec.allow_document_upload)
00169         
00170         ct = sec.contenttypes
00171         if ct is not None:
00172             allowed = tuple(ct.allowed_content_types)
00173             default = ct.default_content_type
00174         
00175             if default not in allowed:
00176                 raise ValueError, "Default %s is not in %s" % (default, ct)
00177         
00178             self.set('default_content_type', default)
00179             self.set('allowed_content_types', allowed)
        

Here is the call graph for this function:

def ATContentTypes.configuration.datatype.BaseFactory.set (   self,
  name,
  value 
) [inherited]

Definition at line 136 of file datatype.py.

00136 
00137     def set(self, name, value):
00138         self._names[name] = 1
00139         setattr(self, name, value)
        

Here is the caller graph for this function:


Member Data Documentation

Definition at line 125 of file datatype.py.


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