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

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

restore the old author data to be available to the
new author schema

Definition at line 354 of file bibliography.py.

00354                                 :
        """restore the old author data to be available to the
        new author schema"""
        ct = getToolByName(self, 'portal_catalog')
        brains = ct(portal_type=self.getReferenceTypes())
        for brain in brains:
            obj = brain.getObject()
            authors = getattr(obj, 'publication_authors', None)
            if authors is not None:
                migrateAuthors(obj)
                # obj.setAuthors(authors)
                # del obj.publication_authors

    def needsUpgrade(self):


Generated by  Doxygen 1.6.0   Back to index