Exemplo n.º 1
0
 def contents_table(self):
     try:
         settings = getUtility(IRegistry).forInterface(
             IMultiLanguageExtraOptionsSchema)
     except KeyError:
         table = FolderContentsTable(aq_inner(self.context), self.request)
         return table.render()
     if settings.filter_content:
         table = FolderContentsTable(aq_inner(self.context), self.request)
     else:
         table = FolderContentsTable(aq_inner(self.context), self.request,
                                     contentFilter={'Language': 'all'})
     return table.render()
Exemplo n.º 2
0
 def contents_table(self):
     try:
         settings = getUtility(IRegistry).forInterface(
             IMultiLanguageExtraOptionsSchema)
     except KeyError:
         table = FolderContentsTable(aq_inner(self.context), self.request)
         return table.render()
     if settings.filter_content:
         table = FolderContentsTable(aq_inner(self.context), self.request)
     else:
         table = FolderContentsTable(aq_inner(self.context), self.request,
                                     contentFilter={'Language': 'all'})
     return table.render()
Exemplo n.º 3
0
 def contents_table(self):
     table = FolderContentsTable(
         self.context, self.request,
         {'object_provides': IVariation.__identifier__})
     return table.render()
Exemplo n.º 4
0
 def contents_table(self):
     table = FolderContentsTable(self.context, self.request, {'object_provides': IVariation.__identifier__})
     return table.render()