def __init__(self, context, request, view, manager, data):
     BaseRenderer.__init__(self, context, request, view, manager, data)
     portal_state = getMultiAdapter((context, request), name=u'plone_portal_state')
     portal_tools = getMultiAdapter((context, request), name=u'plone_tools')
     self.navigation_root_url = portal_state.navigation_root_url()
     self.portal_types = portal_tools.types()
     self.friendly_types = portal_state.friendly_types()
    def __init__(self, context, request):

        BrowserView.__init__(self, context, request)
        # del portlet de calendar
        calendar_render.update(self)

        self.utils = getMultiAdapter((self.context, self.request), name=u"upc.genweb.utils")
        self.now = localtime()

        # del portlet de events
        portal_state = getMultiAdapter((self.context, self.request), name=u"plone_portal_state")
        self.portal_url = portal_state.portal_url()
        self.portal = portal_state.portal()

        self.have_events_folder = "esdeveniments" in self.portal.objectIds()
 def __init__(self, context, request, view, manager, data):
     CameraleRenderer.__init__(self, context, request, view, manager, data)