Ejemplo n.º 1
0
 def get_view(self, name, query=None):
     # Add helper for manage view
     view = ResourcesOrderedTable.get_view(self, name, query)
     if view:
         return view
     if name == 'manage_view':
         parent_view = self.parent.get_view('manage_view')
         if parent_view is None:
             # not found
             return None
         return GoToSpecificDocument(specific_document='..',
                 access = parent_view.access,
                 specific_view='manage_view',
                 title=parent_view.title)
     return None
Ejemplo n.º 2
0
 def get_metadata_schema(cls):
     return merge_dicts(ResourcesOrderedTable.get_metadata_schema(), cross_selling_schema)
Ejemplo n.º 3
0
 def get_metadata_schema(cls):
     return merge_dicts(ResourcesOrderedTable.get_metadata_schema(),
                        cross_selling_schema)