PEP8 fixes

This commit is contained in:
Dolph Mathews
2011-07-18 16:37:13 -05:00
parent 95a7a4bff4
commit a93bc04dde

View File

@@ -99,8 +99,8 @@ class Endpoints(Base, KeystoneBase):
id = Column(Integer, primary_key=True)
tenant_id = Column(String(255), ForeignKey('tenants.id'))
endpoint_template_id = Column(Integer, ForeignKey('endpoint_templates.id'))
__table_args__ = (UniqueConstraint("endpoint_template_id",\
"tenant_id"), {})
__table_args__ = (
UniqueConstraint("endpoint_template_id", "tenant_id"), {})
# Define objects
@@ -118,8 +118,7 @@ class Tenant(Base, KeystoneBase):
desc = Column(String(255))
enabled = Column(Integer)
groups = relationship('Group', backref='tenants')
endpoints = relationship('Endpoints', backref='tenant',
cascade="all")
endpoints = relationship('Endpoints', backref='tenant', cascade="all")
class User(Base, KeystoneBase):