Skip to content

Commit

Permalink
Compatibility alias SqlStore.t_store for SqlStore._tables
Browse files Browse the repository at this point in the history
This is a temporary measure until TissueMAPS code is updated;
commit should be reverted when this happens.
  • Loading branch information
riccardomurri committed Apr 6, 2017
1 parent b4a0665 commit 2bf9a89
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions gc3libs/persistence/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
from contextlib import closing
from cStringIO import StringIO
import os
from warnings import warn

import sqlalchemy as sqla
import sqlalchemy.sql as sql
Expand Down Expand Up @@ -217,6 +218,16 @@ def _tables(self):
self._delayed_init()
return self._real_tables

# FIXME: Remove once the TissueMAPS code is updated not to use this any more!
@property
def t_store(self):
"""
Deprecated compatibility alias for `SqlStore._tables`
"""
warn("`SqlStore.t_store` has been renamed to `SqlStore._tables`;"
" please update your code", DeprecationWarning, 2)
return self._tables

@property
def extra_fields(self):
if self._real_extra_fields is None:
Expand Down

0 comments on commit 2bf9a89

Please sign in to comment.