예제 #1
0
 def __init__(self, *args, **kwargs):
     MWXHTMLWriter.__init__(self, *args, **kwargs)
     #keep reference list for each group serparate
     self.references = defaultdict(list)
     #also keep named reference positions, separate for each group
     #map named reference to 2-tuple of position first seen and count
     self.namedrefs = defaultdict(dict)
예제 #2
0
 def __init__(self, filters, env=None, status_callback=None,imagesrcresolver=None, debug=False):
     self.filters = filters
     MWXHTMLWriter.__init__(self, env, status_callback, imagesrcresolver, debug)
     #keep reference list for each group serparate
     self.references = defaultdict(list)
     #also keep named reference positions, separate for each group
     #map named reference to 2-tuple of position first seen and count
     self.namedrefs = defaultdict(dict)
예제 #3
0
 def __init__(self, filters, skip_refs=False, env=None, status_callback=None,imagesrcresolver=None, debug=False):
     #self.filters = filters
     self.exclude_classes = set(filters.get('EXCLUDE_CLASSES', ()))
     self.exclude_ids = set(filters.get('EXCLUDE_IDS', ()))
     MWXHTMLWriter.__init__(self, env, status_callback, imagesrcresolver, debug)
     #keep reference list for each group serparate
     self.references = defaultdict(list)
     #also keep named reference positions, separate for each group
     #map named reference to 2-tuple of position first seen and count
     self.namedrefs = defaultdict(dict)
     self.skip_refs = skip_refs
예제 #4
0
 def __init__(self,
              filters,
              skip_refs=False,
              env=None,
              status_callback=None,
              imagesrcresolver=None,
              debug=False):
     #self.filters = filters
     self.exclude_classes = set(filters.get('EXCLUDE_CLASSES', ()))
     self.exclude_ids = set(filters.get('EXCLUDE_IDS', ()))
     MWXHTMLWriter.__init__(self, env, status_callback, imagesrcresolver,
                            debug)
     #keep reference list for each group serparate
     self.references = defaultdict(list)
     #also keep named reference positions, separate for each group
     #map named reference to 2-tuple of position first seen and count
     self.namedrefs = defaultdict(dict)
     self.skip_refs = skip_refs
예제 #5
0
 def __init__(self, **kargs):
     #MWXHTMLWriter.__init__(self, **kargs)
     MWXHTMLWriter.__init__(self, None, None, "images/IMAGENAME", False)
     self.root = self.xmlbody = ET.Element("body")
     self.paratag = "p"