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

def CPSSkins::PortalThemesTool::PortalThemesTool::getContextObj (   self,
  context = None 
)

Return the context object

Definition at line 261 of file PortalThemesTool.py.

00261                                          :
        """Return the context object
        """
        context_obj = None
        REQUEST = self.REQUEST
        context_rurl = REQUEST.form.get('context_rurl')

        if context_rurl is not None:
            utool = getToolByName(self, 'portal_url')
            portal_url = utool(relative=1)
            if portal_url != '/':
                portal_url = '/' + portal_url
            context_obj = self.unrestrictedTraverse(
                portal_url + context_rurl, default=None)

        if context_obj is None:
            context_obj = REQUEST.get('context_obj', context)

        return context_obj

    security.declarePublic('findStylesFor')
    def findStylesFor(self, category=None, object=None, title=None):


Generated by  Doxygen 1.6.0   Back to index