Beispiel #1
0
 def __init__(self, workspace):
     self.workspace = workspace
     self.group_id = workspace.group_id
     interface.alsoProvides(self, interfaces.IWorkspaceSchedulingContext)
     self.__parent__ = workspace
     self.__name__ = ""
     log.debug("WorkspaceSchedulingContext %s" % debug.location_stack(self))
 def __init__(self, workspace):
     self.workspace = workspace
     self.group_id = workspace.group_id
     interface.alsoProvides(self, interfaces.IWorkspaceSchedulingContext)
     self.__parent__ = workspace
     self.__name__ = ""
     log.debug("WorkspaceSchedulingContext %s" % debug.location_stack(self))
Beispiel #3
0
 def __init__(self, context, request):
     log.debug("CalendarView.__init__: %s" % (context))
     super(CalendarView, self).__init__(ISchedulingContext(context),
                                        request)
     self.context.__name__ = self.__name__
     self.context.title = self.short_name
     interface.alsoProvides(self.context, ILocation)
     interface.alsoProvides(self.context, IDCDescriptiveProperties)
     self.__parent__ = context
     log.debug(debug.interfaces(self))
     log.debug(debug.location_stack(self))
Beispiel #4
0
 def __call__(self, timestamp=None):
     log.debug("CalendarView.__call__: %s" % (self.context))
     trusted = removeSecurityProxy(self.context)
     trusted.__name__ = self.__name__
     interface.alsoProvides(trusted, ILocation)
     if IBusinessSectionLayer.providedBy(self.request) and isinstance(trusted, SittingContainerSchedulingContext):
         self.url = url.absoluteURL(trusted.__parent__.__parent__, self.request)
     else:
         self.url = url.absoluteURL(trusted.__parent__, self.request)
     self.title = ISchedulingContext(self.context).label
     log.debug(debug.interfaces(self))
     log.debug(debug.location_stack(self))
     return self.render()
Beispiel #5
0
 def __call__(self, timestamp=None):
     log.debug("CalendarView.__call__: %s" % (self.context))
     trusted = removeSecurityProxy(self.context)
     trusted.__name__ = self.__name__
     interface.alsoProvides(trusted, ILocation)
     if (IBusinessSectionLayer.providedBy(self.request) and 
         isinstance(trusted, SittingContainerSchedulingContext)):
         self.url = url.absoluteURL(trusted.__parent__.__parent__, self.request)
     else:
         self.url = url.absoluteURL(trusted.__parent__, self.request)
     self.title = ISchedulingContext(self.context).label
     log.debug(debug.interfaces(self))
     log.debug(debug.location_stack(self))
     return self.render()
Beispiel #6
0
 def __init__(self, context, request):
     log.debug("CalendarView.__init__: %s" % (context))
     super(CalendarView, self).__init__(ISchedulingContext(context),
                                        request)
     trusted = removeSecurityProxy(self.context)
     trusted.__name__ = self.__name__
     trusted.title = self.short_name
     interface.alsoProvides(trusted, ILocation)
     interface.alsoProvides(trusted, IDCDescriptiveProperties)
     if (IBusinessSectionLayer.providedBy(request)
             and isinstance(trusted, SittingContainerSchedulingContext)):
         self.url = url.absoluteURL(trusted.__parent__.__parent__, request)
     else:
         self.url = url.absoluteURL(trusted.__parent__, request)
     self.__parent__ = context
     log.debug(debug.interfaces(self))
     log.debug(debug.location_stack(self))
Beispiel #7
0
 def __init__(self, context, request):
     log.debug("CalendarView.__init__: %s" % (context))
     super(CalendarView, self).__init__(
         ISchedulingContext(context), request)
     trusted = removeSecurityProxy(self.context)
     trusted.__name__ = self.__name__
     trusted.title = self.short_name
     interface.alsoProvides(trusted, ILocation)
     interface.alsoProvides(trusted, IDCDescriptiveProperties)
     if (IBusinessSectionLayer.providedBy(request) and 
         isinstance(trusted, SittingContainerSchedulingContext)):
         self.url = url.absoluteURL(trusted.__parent__.__parent__, request)
     else:
         self.url = url.absoluteURL(trusted.__parent__, request)
     self.__parent__ = context
     log.debug(debug.interfaces(self))
     log.debug(debug.location_stack(self))