Show More
@@ -220,7 +220,7 b' class RhodeCodeSetting(Base, BaseModel):' | |||
|
220 | 220 | class RhodeCodeUi(Base, BaseModel): |
|
221 | 221 | __tablename__ = 'rhodecode_ui' |
|
222 | 222 | __table_args__ = ( |
|
223 |
UniqueConstraint('ui_key'), |
|
|
223 | UniqueConstraint('ui_key'), | |
|
224 | 224 | {'extend_existing': True} |
|
225 | 225 | ) |
|
226 | 226 | |
@@ -270,7 +270,7 b' class RhodeCodeUi(Base, BaseModel):' | |||
|
270 | 270 | class User(Base, BaseModel): |
|
271 | 271 | __tablename__ = 'users' |
|
272 | 272 | __table_args__ = ( |
|
273 |
UniqueConstraint('username'), UniqueConstraint('email'), |
|
|
273 | UniqueConstraint('username'), UniqueConstraint('email'), | |
|
274 | 274 | {'extend_existing': True} |
|
275 | 275 | ) |
|
276 | 276 | user_id = Column("user_id", Integer(), nullable=False, unique=True, default=None, primary_key=True) |
@@ -459,7 +459,7 b' class UsersGroupMember(Base, BaseModel):' | |||
|
459 | 459 | class Repository(Base, BaseModel): |
|
460 | 460 | __tablename__ = 'repositories' |
|
461 | 461 | __table_args__ = ( |
|
462 |
UniqueConstraint('repo_name'), |
|
|
462 | UniqueConstraint('repo_name'), | |
|
463 | 463 | {'extend_existing': True}, |
|
464 | 464 | ) |
|
465 | 465 | |
@@ -707,7 +707,7 b' class RepoGroup(Base, BaseModel):' | |||
|
707 | 707 | __tablename__ = 'groups' |
|
708 | 708 | __table_args__ = ( |
|
709 | 709 | UniqueConstraint('group_name', 'group_parent_id'), |
|
710 |
CheckConstraint('group_id != group_parent_id'), |
|
|
710 | CheckConstraint('group_id != group_parent_id'), | |
|
711 | 711 | {'extend_existing': True}, |
|
712 | 712 | ) |
|
713 | 713 | __mapper_args__ = {'order_by': 'group_name'} |
@@ -891,7 +891,7 b' class UserToPerm(Base, BaseModel):' | |||
|
891 | 891 | class UsersGroupRepoToPerm(Base, BaseModel): |
|
892 | 892 | __tablename__ = 'users_group_repo_to_perm' |
|
893 | 893 | __table_args__ = ( |
|
894 |
UniqueConstraint('repository_id', 'users_group_id', 'permission_id'), |
|
|
894 | UniqueConstraint('repository_id', 'users_group_id', 'permission_id'), | |
|
895 | 895 | {'extend_existing': True} |
|
896 | 896 | ) |
|
897 | 897 | users_group_to_perm_id = Column("users_group_to_perm_id", Integer(), nullable=False, unique=True, default=None, primary_key=True) |
@@ -929,7 +929,7 b' class UsersGroupToPerm(Base, BaseModel):' | |||
|
929 | 929 | class UserRepoGroupToPerm(Base, BaseModel): |
|
930 | 930 | __tablename__ = 'user_repo_group_to_perm' |
|
931 | 931 | __table_args__ = ( |
|
932 |
UniqueConstraint('group_id', 'permission_id'), |
|
|
932 | UniqueConstraint('group_id', 'permission_id'), | |
|
933 | 933 | {'extend_existing': True} |
|
934 | 934 | ) |
|
935 | 935 | |
@@ -946,7 +946,7 b' class UserRepoGroupToPerm(Base, BaseMode' | |||
|
946 | 946 | class UsersGroupRepoGroupToPerm(Base, BaseModel): |
|
947 | 947 | __tablename__ = 'users_group_repo_group_to_perm' |
|
948 | 948 | __table_args__ = ( |
|
949 |
UniqueConstraint('group_id', 'permission_id'), |
|
|
949 | UniqueConstraint('group_id', 'permission_id'), | |
|
950 | 950 | {'extend_existing': True} |
|
951 | 951 | ) |
|
952 | 952 |
@@ -84,8 +84,8 b' def ValidUsername(edit, old_data):' | |||
|
84 | 84 | raise formencode.Invalid( |
|
85 | 85 | _('Username may only contain alphanumeric characters ' |
|
86 | 86 | 'underscores, periods or dashes and must begin with ' |
|
87 |
'alphanumeric character'), |
|
|
88 |
value, |
|
|
87 | 'alphanumeric character'), | |
|
88 | value, | |
|
89 | 89 | state |
|
90 | 90 | ) |
|
91 | 91 | |
@@ -116,8 +116,8 b' def ValidUsersGroup(edit, old_data):' | |||
|
116 | 116 | raise formencode.Invalid( |
|
117 | 117 | _('RepoGroup name may only contain alphanumeric characters ' |
|
118 | 118 | 'underscores, periods or dashes and must begin with ' |
|
119 |
'alphanumeric character'), |
|
|
120 |
value, |
|
|
119 | 'alphanumeric character'), | |
|
120 | value, | |
|
121 | 121 | state |
|
122 | 122 | ) |
|
123 | 123 |
General Comments 0
You need to be logged in to leave comments.
Login now