Пример #1
0
 def list_setup(self, coll_id, type_id, list_id):
     """
     Assemble display information for list view request handler
     """
     listinfo = DisplayInfo(self, "list")
     listinfo.get_site_info(self.get_request_host())
     listinfo.get_coll_info(coll_id)
     listinfo.get_type_info(type_id)
     listinfo.get_list_info(listinfo.get_list_id(listinfo.type_id, list_id))
     listinfo.check_authorization("list")
     return listinfo
Пример #2
0
 def list_setup(self, coll_id, type_id, list_id, request_dict):
     """
     Assemble display information for list view request handlers
     """
     # log.info("list_setup coll_id %s, type_id %s, list_id %s"%(coll_id, type_id, list_id))
     self.collection_view_url = self.view_uri("AnnalistCollectionView", coll_id=coll_id)
     listinfo = DisplayInfo(self, "list", request_dict, self.collection_view_url)
     listinfo.get_site_info(self.get_request_host())
     listinfo.get_coll_info(coll_id)
     listinfo.get_type_info(type_id)
     listinfo.get_list_info(listinfo.get_list_id(listinfo.type_id, list_id))
     listinfo.check_authorization("list")
     return listinfo
Пример #3
0
 def list_setup(self, coll_id, type_id, list_id, request_dict):
     """
     Assemble display information for list view request handlers
     """
     # log.info("list_setup coll_id %s, type_id %s, list_id %s"%(coll_id, type_id, list_id))
     self.collection_view_url = self.get_collection_view_url(coll_id)
     listinfo = DisplayInfo(self, "list", request_dict,
                            self.collection_view_url)
     listinfo.get_site_info(self.get_request_host())
     listinfo.get_coll_info(coll_id)
     listinfo.get_request_type_info(type_id)
     listinfo.get_list_info(listinfo.get_list_id(listinfo.type_id, list_id))
     listinfo.check_authorization("list")
     return listinfo