wcs-olap: hash formdata and status table names when they are too long

This commit is contained in:
Benjamin Dauvergne 2016-05-21 13:13:08 +02:00
parent f2f80cc6f2
commit 5836641e90
1 changed files with 2 additions and 2 deletions

View File

@ -525,11 +525,11 @@ class WcsFormdefFeeder(object):
@property
def table_name(self):
return 'formdata_%s' % self.formdef.slug.replace('-', '_')
return self.hash_table_name('formdata_%s' % self.formdef.slug.replace('-', '_'))
@property
def status_table_name(self):
return 'status_%s' % self.formdef.slug.replace('-', '_')
return self.hash_table_name('status_%s' % self.formdef.slug.replace('-', '_'))
def __getattr__(self, name):
return getattr(self.olap_feeder, name)