]> ToastFreeware Gitweb - philipp/winterrodeln/wradmin.git/blobdiff - wradmin/model/__init__.py
Make MediaWiki table text available for ORM.
[philipp/winterrodeln/wradmin.git] / wradmin / model / __init__.py
index 96fe92ff071af0aec71fa3a5fa3fcf171775c185..112e437ef2c3cc3ee897d1fdb6ae6da132fe04e9 100644 (file)
@@ -1,4 +1,4 @@
-"Model of wradmin"
+"""Model of wradmin"""
 from sqlalchemy import orm
 from wradmin.model import meta
 from wrpylib import mwdb, wrmwdb
@@ -47,8 +47,14 @@ class Page(object):
     pass
 
 
+# MediaWiki text table
+class MwText(object):
+    pass
+
+
 orm.mapper(WrReport, wrreport_table)
 # We could add a relation but we don't need it yet:
 # orm.mapper(WrSledrunCache, wrsledruncache_table, properties = {'reports': orm.relation(WrReport, backref='sledding')})
 orm.mapper(WrSledrunCache, wrsledruncache_table)
 orm.mapper(WrInnCache, wrinncache_table)
+orm.mapper(MwText, text_table)