Administration¶
Several console scripts are provided to facilitate the administration of Adhocracy 3.
Importing Resources¶
User, Groups and normal Resources can be imported with the ad_fixtures script. You choose between fixtures registered in adhocracy python packages:
./bin/ad_fixtures etc/development.ini -c adhocracy_core:test_fixtures
Or from an absolute file system path:
./bin/ad_fixtures etc/development.ini -c /home/user/adhocracy_core/test_fixtures
The -h flag can be used to see a full description of the options:
Traceback (most recent call last):
File "/home/docs/checkouts/readthedocs.org/user_builds/adhocracy3/envs/latest/lib/python3.5/site-packages/pkg_resources/__init__.py", line 651, in _build_master
ws.require(__requires__)
File "/home/docs/checkouts/readthedocs.org/user_builds/adhocracy3/envs/latest/lib/python3.5/site-packages/pkg_resources/__init__.py", line 952, in require
needed = self.resolve(parse_requirements(requirements))
File "/home/docs/checkouts/readthedocs.org/user_builds/adhocracy3/envs/latest/lib/python3.5/site-packages/pkg_resources/__init__.py", line 844, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (pyramid 1.5.2 (/home/docs/checkouts/readthedocs.org/user_builds/adhocracy3/envs/latest/lib/python3.5/site-packages), Requirement.parse('pyramid>1.6a2'), {'pyramid-bpython'})
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/docs/checkouts/readthedocs.org/user_builds/adhocracy3/envs/latest/bin/ad_fixtures", line 5, in <module>
from pkg_resources import load_entry_point
File "/home/docs/checkouts/readthedocs.org/user_builds/adhocracy3/envs/latest/lib/python3.5/site-packages/pkg_resources/__init__.py", line 3084, in <module>
@_call_aside
File "/home/docs/checkouts/readthedocs.org/user_builds/adhocracy3/envs/latest/lib/python3.5/site-packages/pkg_resources/__init__.py", line 3070, in _call_aside
f(*args, **kwargs)
File "/home/docs/checkouts/readthedocs.org/user_builds/adhocracy3/envs/latest/lib/python3.5/site-packages/pkg_resources/__init__.py", line 3097, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/home/docs/checkouts/readthedocs.org/user_builds/adhocracy3/envs/latest/lib/python3.5/site-packages/pkg_resources/__init__.py", line 653, in _build_master
return cls._build_from_requirements(__requires__)
File "/home/docs/checkouts/readthedocs.org/user_builds/adhocracy3/envs/latest/lib/python3.5/site-packages/pkg_resources/__init__.py", line 666, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/home/docs/checkouts/readthedocs.org/user_builds/adhocracy3/envs/latest/lib/python3.5/site-packages/pkg_resources/__init__.py", line 844, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (pyramid 1.5.2 (/home/docs/checkouts/readthedocs.org/user_builds/adhocracy3/envs/latest/lib/python3.5/site-packages), Requirement.parse('pyramid>1.6a2'), {'pyramid-bpython'})
Import Badges¶
Badges can be imported with the ad_import_resources script:
./bin/ad_import_resources etc/development.ini src/adhocracy_core/adhocracy_core/resources/user_badges_sample.json
Badges can be assigned to resources with the ad_assign_badges script:
./bin/ad_assign_badges etc/development.ini ./src/adhocracy_core/adhocracy_core/scripts/user_badge_assignments_sample.json
Set Workflow state¶
The state of the workflow can be changed with the set_workflow_state command. The -h flag can be used to see a full description of the options:
Show Auditlog¶
The entries of the auditlog can be shown with the ad_auditlog command. The -h flag can be used to see a full description of the options: