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

def CMFBibliographyAT::tool::bibliography::BibliographyTool::guessFormat (   self,
  file_name 
)

Checks whether the file_name extension is
among the supported ones.

returns the respective format name if found 
returns None otherwise

Definition at line 274 of file bibliography.py.

00274                                     :
        """
        Checks whether the file_name extension is
        among the supported ones.

        returns the respective format name if found 
        returns None otherwise
        """
        extension = file_name.split('.')[-1].lower()
        if extension in [ext.lower()
                         for ext in self.getImportFormatExtensions()]:
            for parser in self.Parsers.objectValues():
                if extension == parser.getFormatExtension().lower():
                    return parser.getFormatName()
        return None

    # support BibTeX style citations in text
    security.declarePublic('link_citations')
    def link_citations(self, text=""):


Generated by  Doxygen 1.6.0   Back to index