changeset 1363:923d2f699bd7 beta

fixed issue with adding new group. template typo fix for empty group
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 05 Jun 2011 02:09:27 +0200
parents 4c9bd42f82f9
children b6cac385cef0
files rhodecode/model/forms.py rhodecode/templates/admin/repos_groups/repos_groups_show.html
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/model/forms.py	Sat Jun 04 22:59:05 2011 +0200
+++ b/rhodecode/model/forms.py	Sun Jun 05 02:09:27 2011 +0200
@@ -127,8 +127,9 @@
             # slugify repo group just in case :)
             slug = repo_name_slug(group_name)
 
+            print old_data
             # check for parent of self
-            if old_data['group_id'] == group_parent_id:
+            if edit and old_data['group_id'] == group_parent_id:
                     e_dict = {'group_parent_id':_('Cannot assign this group '
                                                   'as parent')}
                     raise formencode.Invalid('', value, state,
--- a/rhodecode/templates/admin/repos_groups/repos_groups_show.html	Sat Jun 04 22:59:05 2011 +0200
+++ b/rhodecode/templates/admin/repos_groups/repos_groups_show.html	Sun Jun 05 02:09:27 2011 +0200
@@ -59,7 +59,7 @@
                 
             </table>
             % else:
-                {_('There are no repositories groups yet')}
+                ${_('There are no repositories groups yet')}
             % endif
          
     </div>