Logo Search packages:      
Sourcecode: zope-cmfbibliographyat version File versions  Download package

def CMFBibliographyAT::tool::bibliography::BibliographyTool::getReferenceTypes (   self  ) 

returns a list with the names (meta types) of the
currently allowed reference types of a BibliographyFolder

Definition at line 121 of file bibliography.py.

00121                                :
        """
        returns a list with the names (meta types) of the
        currently allowed reference types of a BibliographyFolder
        """
        types_tool = getToolByName(self, 'portal_types')
        bibfolder_fti = getattr(types_tool, 'BibliographyFolder', None)
        if not bibfolder_fti: # intermediate bug fix
            bibfolder_fti = getattr(types_tool, 'Bibliography Folder', None)
        if not bibfolder_fti:
            raise TypeError, \
                  "BibliographyFolder not registered with the types tool."
        # we don't want to return the folders here
        # (they are allowed types for FTP/WebDAV support)
        allowed = bibfolder_fti.allowed_content_types
        blacklist = ['BibliographyFolder','LargeBibliographyFolder']
        return [pt for pt in allowed if pt not in blacklist]

    security.declarePublic('getImportFormatNames')
    def getImportFormatNames(self):


Generated by  Doxygen 1.6.0   Back to index