Back to index

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

List of all members.

Public Member Functions

def fields
def fields_xml
def widgets
def widgets_xml
def storages
def storages_xml
def validators
def validators_xml
def types
def types_xml
def registry_xml
def type_xml

Static Public Attributes

string id = 'archetypes_ttw_tool'
string meta_type = 'Archetypes TTW Tool'
tuple security = ClassSecurityInfo()
tuple meta_types = all_meta_types(())
tuple manage_options
tuple fields_template = PageTemplateFile('fields_xml', _www)
tuple widgets_template = PageTemplateFile('widgets_xml', _www)
tuple storages_template = PageTemplateFile('storages_xml', _www)
tuple validators_template = PageTemplateFile('validators_xml', _www)
tuple types_template = PageTemplateFile('types_xml', _www)
tuple type_template = PageTemplateFile('type_xml', _www)
tuple registry_template = PageTemplateFile('registry_xml', _www)

Detailed Description

Archetypes TTW Tool 

Definition at line 11 of file ArchTTWTool.py.


Member Function Documentation

Definition at line 39 of file ArchTTWTool.py.

00039 
00040     def fields(self):
00041         from Registry import availableFields
00042         fields = [v for k, v in availableFields()]
00043         return fields

Here is the caller graph for this function:

Return XML representation of the field registry 

Definition at line 45 of file ArchTTWTool.py.

00045 
00046     def fields_xml(self):
00047         """ Return XML representation of the field registry """
00048         fields = self.fields()
00049         return self.fields_template(fields=fields)

Here is the call graph for this function:

Return XML representation of the wholeregistry 

Definition at line 95 of file ArchTTWTool.py.

00095 
00096     def registry_xml(self):
00097         """ Return XML representation of the wholeregistry """
00098         options = {}
00099         options['fields'] = self.fields()
00100         options['widgets'] = self.widgets()
00101         options['storages'] = self.storages()
00102         options['validators'] = self.validators()
00103         options['types'] = self.types()
00104         return self.registry_template(**options)

Here is the call graph for this function:

Definition at line 61 of file ArchTTWTool.py.

00061 
00062     def storages(self):
00063         from Registry import availableStorages
00064         storages = [v for k, v in availableStorages()]
00065         return storages

Here is the caller graph for this function:

Return XML representation of the storage registry 

Definition at line 67 of file ArchTTWTool.py.

00067 
00068     def storages_xml(self):
00069         """ Return XML representation of the storage registry """
00070         storages = self.storages()
00071         return self.storages_template(storages=storages)

Here is the call graph for this function:

Return XML representation of one type from the registry 

Definition at line 106 of file ArchTTWTool.py.

00106 
00107     def type_xml(self):
00108         """ Return XML representation of one type from the registry """
00109         type = self.REQUEST.get('type', '')
00110         if not type:
00111             raise ValueError, 'Type is not valid'
00112         from Products.Archetypes.Registry import typeDescriptionRegistry
00113         type = typeDescriptionRegistry[type]
00114         return self.type_template(type=type)
00115 
00116 
00117 InitializeClass(ArchTTWTool)

Definition at line 83 of file ArchTTWTool.py.

00083 
00084     def types(self):
00085         from Registry import availableTypes
00086         types = [v for k, v in availableTypes()]
00087         return types

Here is the caller graph for this function:

Return XML representation of the types registry 

Definition at line 89 of file ArchTTWTool.py.

00089 
00090     def types_xml(self):
00091         """ Return XML representation of the types registry """
00092         types = self.types()
00093         return self.types_template(types=types)

Here is the call graph for this function:

Definition at line 72 of file ArchTTWTool.py.

00072 
00073     def validators(self):
00074         from Registry import availableValidators
00075         validators = [v for k, v in availableValidators()]
00076         return validators

Here is the caller graph for this function:

Return XML representation of the validators registry 

Definition at line 78 of file ArchTTWTool.py.

00078 
00079     def validators_xml(self):
00080         """ Return XML representation of the validators registry """
00081         validators = self.validators()
00082         return self.validators_template(validators=validators)

Here is the call graph for this function:

Definition at line 50 of file ArchTTWTool.py.

00050 
00051     def widgets(self):
00052         from Registry import availableWidgets
00053         widgets = [v for k, v in availableWidgets()]
00054         return widgets

Here is the caller graph for this function:

Return XML representation of the widget registry 

Definition at line 56 of file ArchTTWTool.py.

00056 
00057     def widgets_xml(self):
00058         """ Return XML representation of the widget registry """
00059         widgets = self.widgets()
00060         return self.widgets_template(widgets=widgets)

Here is the call graph for this function:


Member Data Documentation

Definition at line 31 of file ArchTTWTool.py.

string Archetypes.ArchTTWTool.ArchTTWTool.id = 'archetypes_ttw_tool' [static]

Definition at line 14 of file ArchTTWTool.py.

Initial value:
(
        (Folder.manage_options[0],) +
        (
        { 'label'  : 'Introspect',
          'action' : 'manage_debugForm',
          },

        )
        + Folder.manage_options[1:]
        )

Definition at line 20 of file ArchTTWTool.py.

string Archetypes.ArchTTWTool.ArchTTWTool.meta_type = 'Archetypes TTW Tool' [static]

Definition at line 15 of file ArchTTWTool.py.

tuple Archetypes.ArchTTWTool.ArchTTWTool.meta_types = all_meta_types(()) [static]

Definition at line 18 of file ArchTTWTool.py.

Definition at line 37 of file ArchTTWTool.py.

tuple Archetypes.ArchTTWTool.ArchTTWTool.security = ClassSecurityInfo() [static]

Definition at line 17 of file ArchTTWTool.py.

Definition at line 33 of file ArchTTWTool.py.

tuple Archetypes.ArchTTWTool.ArchTTWTool.type_template = PageTemplateFile('type_xml', _www) [static]

Definition at line 36 of file ArchTTWTool.py.

tuple Archetypes.ArchTTWTool.ArchTTWTool.types_template = PageTemplateFile('types_xml', _www) [static]

Definition at line 35 of file ArchTTWTool.py.

Definition at line 34 of file ArchTTWTool.py.

Definition at line 32 of file ArchTTWTool.py.


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