Back to index

plone3  3.1.7
Functions
wicked.at.Extensions.upgrade Namespace Reference

Functions

def upgrade09

Function Documentation

Definition at line 7 of file upgrade.py.

00007 
00008 def upgrade09(site):
00009     refcat = getToolByName(site, 'reference_catalog')
00010     refs = (brain.getObject() for brain in \
00011                refcat(relationship=config.BACKLINK_RELATIONSHIP))
00012     
00013     for ref in refs:
00014         if ref:
00015             obj=ref.getSourceObject()
00016             mark(obj, IWickedTarget)
00017             if not IWickedBacklink.providedBy(ref):
00018                 print ref
00019                 mark(ref, IWickedBacklink)

Here is the call graph for this function: