summaryrefslogtreecommitdiffabout
path: root/WikiTrans/wikidump.py
Side-by-side diff
Diffstat (limited to 'WikiTrans/wikidump.py') (more/less context) (ignore whitespace changes)
-rw-r--r--WikiTrans/wikidump.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/WikiTrans/wikidump.py b/WikiTrans/wikidump.py
index 5b257f9..7457dfa 100644
--- a/WikiTrans/wikidump.py
+++ b/WikiTrans/wikidump.py
@@ -19,8 +19,16 @@ from WikiTrans.wikitoken import *
import json
from WikiTrans.wikimarkup import WikiMarkup
+class DumpReferences(object):
+ idx = 0
+ def __len__(self):
+ return self.idx + 1
+ def append(self, obj):
+ self.idx += 1
+
class DumpWikiMarkup(WikiMarkup):
indent = None
+ references = DumpReferences()
def __init__(self, **kwarg):
n = kwarg.pop('indent', None)
if n != None:

Return to:

Send suggestions and report system problems to the System administrator.