Exemplo n.º 1
0
 def get_namespace(self, resource, context):
     namespace = Folder_BrowseContent.get_namespace(self, resource, context)
     namespace['id'] = 'section-%s' % resource.name
     namespace['css'] = self.view_name
     namespace['title'] = resource.get_property('title')
     namespace['show_title'] = self.show_title
     namespace['show_first_batch'] = self.show_first_batch
     namespace['show_second_batch'] = self.show_second_batch
     if self.show_first_batch and self.show_second_batch:
         # Transform batch generator into a list of events
         namespace['batch'] = list(namespace['batch'])
     namespace['content'] = namespace['table']
     return namespace
Exemplo n.º 2
0
 def get_namespace(self, resource, context):
     namespace = Folder_BrowseContent.get_namespace(self, resource, context)
     namespace["id"] = "section-%s" % resource.name
     namespace["css"] = self.view_name
     namespace["title"] = resource.get_property("title")
     namespace["show_title"] = self.show_title
     namespace["show_first_batch"] = self.show_first_batch
     namespace["show_second_batch"] = self.show_second_batch
     if self.show_first_batch and self.show_second_batch:
         # Transform batch generator into a list of events
         namespace["batch"] = list(namespace["batch"])
     namespace["content"] = namespace["table"]
     return namespace
Exemplo n.º 3
0
 def get_namespace(self, resource, context):
     self.view_resource = resource
     namespace = Folder_BrowseContent.get_namespace(self, resource, context)
     id = None
     if self.specific_id_wrapper:
         id = 'section-%s' % resource.name
     namespace['id'] = id
     namespace['css'] = self.get_css(resource, context)
     namespace['title'] = resource.get_property('title')
     namespace['display_title'] = self.display_title
     namespace['show_first_batch'] = self.show_first_batch
     namespace['show_second_batch'] = self.show_second_batch
     if self.show_first_batch and self.show_second_batch:
         # Transform batch generator into a list of events
         namespace['batch'] = list(namespace['batch'])
     namespace['content'] = namespace['table']
     return namespace