##// END OF EJS Templates
merge beta fixes into stable
marcink -
r1518:55856097 merge default
parent child Browse files
Show More
@@ -192,6 +192,9 b' class RepoModel(BaseModel):'
192 if k == 'repo_group':
192 if k == 'repo_group':
193 k = 'group_id'
193 k = 'group_id'
194
194
195 if k == 'description':
196 v = v or repo_name
197
195 setattr(new_repo, k, v)
198 setattr(new_repo, k, v)
196
199
197 if fork:
200 if fork:
@@ -302,7 +305,7 b' class RepoModel(BaseModel):'
302 :param clone_uri:
305 :param clone_uri:
303 """
306 """
304 from rhodecode.lib.utils import is_valid_repo
307 from rhodecode.lib.utils import is_valid_repo
305
308
306 if new_parent_id:
309 if new_parent_id:
307 paths = Group.get(new_parent_id).full_path.split(Group.url_sep())
310 paths = Group.get(new_parent_id).full_path.split(Group.url_sep())
308 new_parent_path = os.sep.join(paths)
311 new_parent_path = os.sep.join(paths)
@@ -28,6 +28,7 b' import traceback'
28
28
29 from pylons.i18n.translation import _
29 from pylons.i18n.translation import _
30
30
31 from rhodecode.lib import safe_unicode
31 from rhodecode.model import BaseModel
32 from rhodecode.model import BaseModel
32 from rhodecode.model.caching_query import FromCache
33 from rhodecode.model.caching_query import FromCache
33 from rhodecode.model.db import User, RepoToPerm, Repository, Permission, \
34 from rhodecode.model.db import User, RepoToPerm, Repository, Permission, \
@@ -111,7 +112,7 b' class UserModel(BaseModel):'
111 new_user.api_key = generate_api_key(username)
112 new_user.api_key = generate_api_key(username)
112 new_user.email = attrs['email']
113 new_user.email = attrs['email']
113 new_user.active = True
114 new_user.active = True
114 new_user.ldap_dn = user_dn
115 new_user.ldap_dn = safe_unicode(user_dn)
115 new_user.name = attrs['name']
116 new_user.name = attrs['name']
116 new_user.lastname = attrs['lastname']
117 new_user.lastname = attrs['lastname']
117
118
General Comments 0
You need to be logged in to leave comments. Login now