def __init__(self, *args):
        #Inits with
        # args[0] = Collection obj
        # args[1] = Path to imported file
        # args[2] = Deck name
        Importer.__init__(self, args[0], args[1])
        self.model = args[0].models.current()
        self.mapping = None
        self._deckMap = {}

        self.deck = args[2].strip()
        self.lines = None
        self.fileobj = None
        self.delimiter = '#'
        self.tagsToAdd = []
Beispiel #2
0
 def __init__(self, col: Collection, file: str) -> None:
     Importer.__init__(self, col, file)
     self.model = col.models.current()
     self.mapping = None
     self.tagModified = None
     self._tagsMapped = False
Beispiel #3
0
 def __init__(self, col, file):
     Importer.__init__(self, col, file)
     self.model = col.models.current()
     self.mapping = None
     self._deckMap = {}
Beispiel #4
0
 def __init__(self, col, file):
     Importer.__init__(self, col, file)
     self.model = col.models.current()
     self.mapping = None
     self._deckMap = {}
Beispiel #5
0
 def __init__(self, col, file):
     Importer.__init__(self, col, file)
     self._model = col.currentModel
     self.tagsToAdd = u""
     self._mapping = None
Beispiel #6
0
 def __init__(self, col, file):
     Importer.__init__(self, col, file)
     self._model = col.currentModel
     self.tagsToAdd = u""
     self._mapping = None