このサイトはJavaScriptを使用しています
ホーム
エクスプローラー
ヘルプ
サインイン
JustAnotherArchivist
/
qwarc
ウォッチ
1
スター
0
フォーク
0
コード
課題
0
プルリクエスト
0
リリース
13
Wiki
アクティビティ
ソースを参照
Support deep/multiple inheritance from Item
tags/v0.2.1
JustAnotherArchivist
4年前
親
9d8de13775
コミット
08d96b37c5
2個のファイルの変更
、
7行の追加
、
1行の削除
分割表示
差分オプション
統計情報を表示
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,
書き込み
プレビュー
読み込み中…
キャンセル
保存