使用 JavaScript能使本网站更好的工作。
首页
探索
帮助
登录
JustAnotherArchivist
/
qwarc
关注
1
点赞
0
派生
0
代码
工单
0
合并请求
0
版本发布
13
百科
动态
浏览代码
Support deep/multiple inheritance from Item
tags/v0.2.1
JustAnotherArchivist
4 年前
父节点
9d8de13775
当前提交
08d96b37c5
共有
2 个文件被更改
,包括
7 次插入
和
1 次删除
分列视图
Diff 选项
显示统计
下载 Patch 文件
下载 Diff 文件
+6
-0
qwarc/__init__.py
+1
-1
qwarc/cli.py
+ 6
- 0
qwarc/__init__.py
查看文件
@@ -135,6 +135,12 @@ class Item:
def clear_subitems(self):
self.childItems = []
@classmethod
def get_subclasses(cls):
for subclass in cls.__subclasses__():
yield subclass
yield from subclass.get_subclasses()
class QWARC:
def __init__(self, itemClasses, warcBasePath, dbPath, command, specFile, specDependencies, logFilename, concurrency = 1, memoryLimit = 0, minFreeDisk = 0, warcSizeLimit = 0, warcDedupe = False):
+ 1
- 1
qwarc/cli.py
查看文件
@@ -65,7 +65,7 @@ def main():
specDependencies = specMod.__dict__.get('specDependencies', qwarc.utils.SpecDependencies())
a = qwarc.QWARC(
itemClasses =
qwarc.Item.__subclasses__(
),
itemClasses =
set(qwarc.Item.get_subclasses()
),
warcBasePath = args.warc,
dbPath = args.database,
command = sys.argv,
撰写
预览
正在加载...
取消
保存