def __init__(self, path, parent, package, view): ContentHandler.__init__(self) self.path = path self.package = package self.cwd = [os.path.dirname(path)] self.parent = [parent] self.view = view self.hooks = [] # the xml parser may return unicode for non-ascii paths or names # which need to be encoded to utf8 self.fsenc = 'utf8' packs = view.getRoot('Packs') if packs is None: packs = Item('Packs', view, None) self.packs = packs
def __init__(self, view): ContentHandler.__init__(self) TypeHandler.__init__(self) self.view = view