Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes | Private Member Functions
kupu.plone.exportimport.KupuToolExportConfigurator Class Reference
Inheritance diagram for kupu.plone.exportimport.KupuToolExportConfigurator:
Inheritance graph
[legend]
Collaboration diagram for kupu.plone.exportimport.KupuToolExportConfigurator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def getTool
def getPreviews

Static Public Attributes

tuple security = ClassSecurityInfo()

Private Member Functions

def _getExportTemplate

Detailed Description

Synthesize XML description of cc properties.

Definition at line 148 of file exportimport.py.


Member Function Documentation

Definition at line 188 of file exportimport.py.

00188 
00189     def _getExportTemplate(self):
00190         return PageTemplateFile('kupuExport.xml', _xmldir)
00191 
00192 InitializeClass(KupuToolExportConfigurator)
00193 

Definition at line 159 of file exportimport.py.

00159 
00160     def getPreviews(self):
00161         typetool = getToolByName(self._site, 'portal_types')
00162         kupu = self.getTool()
00163         typeinfos = typetool.listTypeInfo()
00164         previewable = [t for t in typeinfos if kupu.getPreviewForType(t.getId())]
00165 
00166         res = []
00167         for t in typeinfos:
00168             previewable = kupu.getPreviewForType(t.getId())
00169             if not previewable:
00170                 continue
00171             portal_type =  t.getId()
00172             previewaction = kupu.getPreviewForType(portal_type)
00173             normalaction = kupu.getNormalViewForType(portal_type)
00174             scalefield = kupu.getScaleFieldForType(portal_type)
00175             defscale = kupu.getDefaultScaleForType(portal_type)
00176             classes = kupu.getClassesForType(portal_type)
00177             mediatype = kupu.getMediaForType(portal_type)
00178             res.append(dict(portal_type=portal_type,
00179                 previewaction=previewaction,
00180                 normalaction=normalaction,
00181                 scalefield=scalefield,
00182                 defscale=defscale,
00183                 classes=classes,
00184                 mediatype=mediatype,
00185             ))
00186         return res

Here is the call graph for this function:

Get Kupu's tool

Definition at line 154 of file exportimport.py.

00154 
00155     def getTool(self):
00156         """Get Kupu's tool"""
00157         kupu = getToolByName(self._site, 'kupu_library_tool', None)
00158         return kupu

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 151 of file exportimport.py.


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