Skip to content

Commit

Permalink
Clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
timmartin19 committed Apr 16, 2015
1 parent f404c96 commit 3905bd7
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions ripozo_sqlalchemy/alcehmymanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,30 +162,6 @@ def delete(self, lookup_keys, *args, **kwargs):
self.session.commit()
return {}

def _get_model_attributes(self):
attributes = []
joins = []
for field in self.fields:
attr, join = self._get_attr(field)
if join:
joins.append(join)
attributes.append(attr)
return attributes, joins

def _get_attr(self, field_name):
parts = field_name.split('.')
field = getattr(self.model, parts.pop(0))
join = None
for f in parts:
if hasattr(field.comparator, 'mapper'):
join = field.comparator.mapper.class_
field = getattr(field.comparator.mapper.class_, f)
else:
return getattr(field, f), join
pass
return field, join


@property
def queryset(self):
"""
Expand Down

0 comments on commit 3905bd7

Please sign in to comment.