projects
/
cascardo
/
ipsilon.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Also create plugin UserStore data tables
[cascardo/ipsilon.git]
/
ipsilon
/
util
/
data.py
diff --git
a/ipsilon/util/data.py
b/ipsilon/util/data.py
index
7f387b7
..
65bf4b5
100644
(file)
--- a/
ipsilon/util/data.py
+++ b/
ipsilon/util/data.py
@@
-739,6
+739,14
@@
class UserStore(Store):
else:
raise NotImplementedError()
else:
raise NotImplementedError()
+ def create_plugin_data_table(self, plugin_name):
+ if not self.is_readonly:
+ table = plugin_name+'_data'
+ q = self._query(self._db, table, OPTIONS_TABLE,
+ trans=False)
+ q.create()
+ q._con.close() # pylint: disable=protected-access
+
class TranStore(Store):
class TranStore(Store):