diff options
author | yvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd> | 2010-06-09 18:13:33 +0000 |
---|---|---|
committer | yvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd> | 2010-06-09 18:13:33 +0000 |
commit | 4b320a8d744b8efeb27c983bb6f08208ec743c29 (patch) | |
tree | ea400f4739f3eafeb6ea34d5e35bd943dab6d458 /ebus/web/model.py | |
parent | feebdc2e14426921a585c31c5279886bca3e2eca (diff) | |
download | ebus-alt-4b320a8d744b8efeb27c983bb6f08208ec743c29.tar.gz ebus-alt-4b320a8d744b8efeb27c983bb6f08208ec743c29.zip |
blablabla
git-svn-id: http://10.2.2.13/svn/common/ebus@1677 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd
Diffstat (limited to 'ebus/web/model.py')
-rw-r--r-- | ebus/web/model.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ebus/web/model.py b/ebus/web/model.py index b8405dc..e7744df 100644 --- a/ebus/web/model.py +++ b/ebus/web/model.py @@ -3,9 +3,9 @@ from sqlalchemy import Column, Integer, Float, DateTime, String, ForeignKey from sqlalchemy.orm import relationship, backref from sqlalchemy.ext.declarative import declarative_base -Base = declarative_base() +ModelBase = declarative_base() -class Sensor(Base): +class Sensor(ModelBase): __tablename__ = 'sensor' id = Column(Integer, primary_key=True) @@ -22,7 +22,7 @@ class Sensor(Base): -class Value(Base): +class Value(ModelBase): __tablename__ = 'value' id = Column(Integer, primary_key=True) |