Remove SimpleFieldAlias
It was only used for the model._id -> model.id conversion and is not needed anymore. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
parent
5c2b84869f
commit
30bb4109bc
@ -44,18 +44,6 @@ from mediagoblin.db.sql.base import Session
|
|||||||
from migrate import changeset
|
from migrate import changeset
|
||||||
|
|
||||||
|
|
||||||
class SimpleFieldAlias(object):
|
|
||||||
"""An alias for any field"""
|
|
||||||
def __init__(self, fieldname):
|
|
||||||
self.fieldname = fieldname
|
|
||||||
|
|
||||||
def __get__(self, instance, cls):
|
|
||||||
return getattr(instance, self.fieldname)
|
|
||||||
|
|
||||||
def __set__(self, instance, val):
|
|
||||||
setattr(instance, self.fieldname, val)
|
|
||||||
|
|
||||||
|
|
||||||
class User(Base, UserMixin):
|
class User(Base, UserMixin):
|
||||||
"""
|
"""
|
||||||
TODO: We should consider moving some rarely used fields
|
TODO: We should consider moving some rarely used fields
|
||||||
|
Loading…
x
Reference in New Issue
Block a user