Mercurial > kallithea
changeset 1518:5585609772d0
merge beta fixes into stable
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 07 Oct 2011 17:54:21 +0200 |
parents | da8f1d1b22de (current diff) 142a05597cba (diff) |
children | 5dce4f531745 |
files | rhodecode/model/repo.py rhodecode/model/user.py |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/model/repo.py Fri Oct 07 02:53:29 2011 +0200 +++ b/rhodecode/model/repo.py Fri Oct 07 17:54:21 2011 +0200 @@ -192,6 +192,9 @@ if k == 'repo_group': k = 'group_id' + if k == 'description': + v = v or repo_name + setattr(new_repo, k, v) if fork: @@ -302,7 +305,7 @@ :param clone_uri: """ from rhodecode.lib.utils import is_valid_repo - + if new_parent_id: paths = Group.get(new_parent_id).full_path.split(Group.url_sep()) new_parent_path = os.sep.join(paths)
--- a/rhodecode/model/user.py Fri Oct 07 02:53:29 2011 +0200 +++ b/rhodecode/model/user.py Fri Oct 07 17:54:21 2011 +0200 @@ -28,6 +28,7 @@ from pylons.i18n.translation import _ +from rhodecode.lib import safe_unicode from rhodecode.model import BaseModel from rhodecode.model.caching_query import FromCache from rhodecode.model.db import User, RepoToPerm, Repository, Permission, \ @@ -111,7 +112,7 @@ new_user.api_key = generate_api_key(username) new_user.email = attrs['email'] new_user.active = True - new_user.ldap_dn = user_dn + new_user.ldap_dn = safe_unicode(user_dn) new_user.name = attrs['name'] new_user.lastname = attrs['lastname']