Improve the core-office anonymize
command somewhat
API is not good enough for this, need to write direct SQL instead this "mostly" anonymizes `custdata` and `meminfo` but still needs to also anonymize probably `CustomerAccounts` and `Customers`, as well as `employees` and possibly others..?
This commit is contained in:
parent
117442f8db
commit
478126f1e3
2 changed files with 67 additions and 13 deletions
|
@ -54,8 +54,10 @@ class CoreHandler(GenericHandler):
|
|||
from corepos.db.office_trans import model
|
||||
return model
|
||||
|
||||
def make_session_office_op(self, **kwargs):
|
||||
def make_session_office_op(self, dbkey='default', **kwargs):
|
||||
from corepos.db.office_op import Session
|
||||
if 'bind' not in kwargs:
|
||||
kwargs['bind'] = self.config.core_office_op_engines[dbkey]
|
||||
return Session(**kwargs)
|
||||
|
||||
def make_session_office_trans(self, **kwargs):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue