Show More
@@ -90,7 +90,7 class RepoToPerm(Base): | |||||
90 |
|
90 | |||
91 | class UserToPerm(Base): |
|
91 | class UserToPerm(Base): | |
92 | __tablename__ = 'user_to_perm' |
|
92 | __tablename__ = 'user_to_perm' | |
93 | __table_args__ = {'useexisting':True} |
|
93 | __table_args__ = (UniqueConstraint('user_id', 'permission_id'), {'useexisting':True}) | |
94 | user_to_perm_id = Column("user_to_perm_id", INTEGER(), nullable=False, unique=True, default=None, primary_key=True) |
|
94 | user_to_perm_id = Column("user_to_perm_id", INTEGER(), nullable=False, unique=True, default=None, primary_key=True) | |
95 | user_id = Column("user_id", INTEGER(), ForeignKey(u'users.user_id'), nullable=False, unique=None, default=None) |
|
95 | user_id = Column("user_id", INTEGER(), ForeignKey(u'users.user_id'), nullable=False, unique=None, default=None) | |
96 | permission_id = Column("permission_id", INTEGER(), ForeignKey(u'permissions.permission_id'), nullable=False, unique=None, default=None) |
|
96 | permission_id = Column("permission_id", INTEGER(), ForeignKey(u'permissions.permission_id'), nullable=False, unique=None, default=None) |
@@ -83,7 +83,7 | |||||
83 | <% |
|
83 | <% | |
84 | def is_current(selected): |
|
84 | def is_current(selected): | |
85 | if selected == current: |
|
85 | if selected == current: | |
86 |
return |
|
86 | return h.literal('class="current"') | |
87 | %> |
|
87 | %> | |
88 | %if current not in ['home','admin']: |
|
88 | %if current not in ['home','admin']: | |
89 | <script type="text/javascript"> |
|
89 | <script type="text/javascript"> |
General Comments 0
You need to be logged in to leave comments.
Login now