Пример #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()
Пример #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()
Пример #3
0
 def contents_table(self):
     table = FolderContentsTable(
         self.context, self.request,
         {'object_provides': IVariation.__identifier__})
     return table.render()
Пример #4
0
 def contents_table(self):
     table = FolderContentsTable(self.context, self.request, {'object_provides': IVariation.__identifier__})
     return table.render()