##// END OF EJS Templates
fixed escaping for new webhelpers and added perm2user constraint
marcink -
r414:27f801e0 default
parent child Browse files
Show More
@@ -90,7 +90,7 b' class RepoToPerm(Base):'
90 90
91 91 class UserToPerm(Base):
92 92 __tablename__ = 'user_to_perm'
93 __table_args__ = {'useexisting':True}
93 __table_args__ = (UniqueConstraint('user_id', 'permission_id'), {'useexisting':True})
94 94 user_to_perm_id = Column("user_to_perm_id", INTEGER(), nullable=False, unique=True, default=None, primary_key=True)
95 95 user_id = Column("user_id", INTEGER(), ForeignKey(u'users.user_id'), nullable=False, unique=None, default=None)
96 96 permission_id = Column("permission_id", INTEGER(), ForeignKey(u'permissions.permission_id'), nullable=False, unique=None, default=None)
@@ -83,7 +83,7 b''
83 83 <%
84 84 def is_current(selected):
85 85 if selected == current:
86 return "class='current'"
86 return h.literal('class="current"')
87 87 %>
88 88 %if current not in ['home','admin']:
89 89 <script type="text/javascript">
General Comments 0
You need to be logged in to leave comments. Login now