##// END OF EJS Templates
packaging: switched to nix 20.03 packages and latest pip2nix code...
packaging: switched to nix 20.03 packages and latest pip2nix code - dependencies changed: atomicwrites==1.4.0 ipython==5.10.0 pytest==4.6.9 py==1.8.1 pytest-cov==2.8.1 pytest-sugar==0.9.3 pytest-runner==5.2.0 rhodecode-tools==2.0.0 ipython==5.10.0 mysqlclient==1.4.6 (change from mysql-python, which is deprecated) mako==1.1.2 lxml==4.5.0 click==7.1.2

File last commit:

r3658:b7b32afd default
r4756:2a5b3f8a python3
Show More
user-admin-tasks.rst
24 lines | 621 B | text/x-rst | RstLexer

Common Admin Tasks for Users

Here is how to set a repository group as personal for a user using ishell.

# starts the ishell interactive prompt
$ rccontrol ishell enterprise-1
In [1]: repo_group = RepoGroup.get_by_group_name('some_group_name')
In [2]: user = User.get_by_username('some_user')
In [3]: repo_group.user = user
In [4]: repo_group.personal = True
In [5]: Session().add(repo_group);Session().commit()