예제 #1
0
 def render(self):
     """Return the template with the option 'menus'"""
     userProps = AdmUtilUserProperties(self.request.principal)
     if self.context in userProps.dashboard_objs:
         return self.template()
     else:
         return
예제 #2
0
 def objs(self):
     """List of Content objects"""
     retList = []
     userProps = AdmUtilUserProperties(self.request.principal)
     for dashboardItem in userProps.dashboard_objs:
         myObj = dashboardItem.getObject(some_obj=self,
                                         arg_request=self.request)
         if myObj is not None:
             retList.append(myObj)
     return retList
예제 #3
0
 def update(self):
     userProps = AdmUtilUserProperties(self.request.principal)
     userProps.dashboard_objs.remove(self.context, self.request)
     userProps.mapping._p_changed = True