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
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
def update(self): userProps = AdmUtilUserProperties(self.request.principal) userProps.dashboard_objs.remove(self.context, self.request) userProps.mapping._p_changed = True