Changeset - 923d2f699bd7
[Not reviewed]
beta
0 2 0
Marcin Kuzminski - 14 years ago 2011-06-05 02:09:27
marcin@python-works.com
fixed issue with adding new group. template typo fix for empty group
2 files changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
rhodecode/model/forms.py
Show inline comments
 
@@ -124,14 +124,15 @@ def ValidReposGroup(edit, old_data):
 
            group_name = value.get('group_name')
 
            group_parent_id = int(value.get('group_parent_id') or - 1)
 

	
 
            # 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,
 
                                             error_dict=e_dict)
 

	
 
            old_gname = None
rhodecode/templates/admin/repos_groups/repos_groups_show.html
Show inline comments
 
@@ -56,13 +56,13 @@
 
		               </td>                      
 
                  </tr>
 
                % endfor
 
                
 
            </table>
 
            % else:
 
                {_('There are no repositories groups yet')}
 
                ${_('There are no repositories groups yet')}
 
            % endif
 
         
 
    </div>
 
</div> 
 
           
 
</%def>    
0 comments (0 inline, 0 general)