Example #1
0
def upgrade210(context):
    checkViews(context)
    catalog = getToolByName(context, 'portal_catalog')
    for topic in [a.getObject() for a in catalog.searchResults(portal_type="Topic")]:
        calendar = interfaces.ISolgemaFullcalendarProperties(topic, None)
        newColors = {}
        if calendar and getattr(calendar, 'queryColors', None):
            for k,v in calendar.queryColors.items():
                colDict = {}
                for l,w in v.items():
                    l = safe_unicode(l)
                    colDict[str(component.queryUtility(IURLNormalizer).normalize(l))] = w
                newColors[k] = colDict.copy()
            calendar.queryColors = newColors.copy()
Example #2
0
def handleProfileImportedEvent(event):
    #Don't bother me and leave my view where it is!
    context = event.tool
    checkViews(context)
Example #3
0
def upgrade212(context):
    checkViews(context)
def handleProfileImportedEvent(event):
    #Don't bother me and leave my view where it is!
    context = event.tool
    checkViews(context)