##// END OF EJS Templates
repo-group-model: add flag to return proper object along the exported names.
marcink -
r1151:8ddcff9d default
parent child Browse files
Show More
@@ -126,7 +126,8 b' class RepoGroupModel(BaseModel):'
126 126 repo_group_to_perm.user_id = def_user.user_id
127 127 return repo_group_to_perm
128 128
129 def _get_group_name_and_parent(self, group_name_full, repo_in_path=False):
129 def _get_group_name_and_parent(self, group_name_full, repo_in_path=False,
130 get_object=False):
130 131 """
131 132 Get's the group name and a parent group name from given group name.
132 133 If repo_in_path is set to truth, we asume the full path also includes
@@ -148,9 +149,13 b' class RepoGroupModel(BaseModel):'
148 149 if len(_parts) > 1:
149 150 parent_repo_group_name = _parts[0]
150 151
152 parent_group = None
151 153 if parent_repo_group_name:
152 154 parent_group = RepoGroup.get_by_group_name(parent_repo_group_name)
153 155
156 if get_object:
157 return group_name_cleaned, parent_repo_group_name, parent_group
158
154 159 return group_name_cleaned, parent_repo_group_name
155 160
156 161 def check_exist_filesystem(self, group_name, exc_on_failure=True):
General Comments 0
You need to be logged in to leave comments. Login now