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()