Пример #1
0
 def xwriteTable(self, obj):
     tableclasses = obj.attributes.get('class', '').split()
     if any((tableclass in self.exclude_classes for tableclass in tableclasses)):
         return SkipChildren()
     id_attr = obj.attributes.get('id', '')
     if  id_attr in self.exclude_ids:
         return SkipChildren()
     return MWXHTMLWriter.xwriteTable(self, obj)
Пример #2
0
 def xwriteTable(self, obj):
     tableclasses = obj.attributes.get('class', '').split()
     if any((tableclass in EXCLUDE_CLASSES for tableclass in tableclasses)):
         return SkipChildren()
     id_attr = obj.attributes.get('id', '')
     if id_attr in EXCLUDED_IDS:
         return SkipChildren()
     return MWXHTMLWriter.xwriteTable(self, obj)
Пример #3
0
 def xwriteTable(self, obj):
     tableclasses = obj.attributes.get('class', '').split()
     if any((tableclass in self.exclude_classes
             for tableclass in tableclasses)):
         return SkipChildren()
     id_attr = obj.attributes.get('id', '')
     if id_attr in self.exclude_ids:
         return SkipChildren()
     return MWXHTMLWriter.xwriteTable(self, obj)
Пример #4
0
 def xwriteTable(self, obj):
     tableclasses = obj.attributes.get('class', '').split()
     if ( len(self.filters['EXCLUDE_CLASSES']) > 0 and
          any((tableclass in self.filters['EXCLUDE_CLASSES'] for tableclass in tableclasses))):
         return SkipChildren()
     id_attr = obj.attributes.get('id', '')
     if ( len(self.filters['EXCLUDE_IDS']) > 0 and id_attr in self.filters['EXCLUDE_IDS']):
         return SkipChildren()
     return MWXHTMLWriter.xwriteTable(self, obj)