summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-02-27 18:59:34 +0100
committerDan McGee <dan@archlinux.org>2011-02-27 19:00:04 +0100
commitb86b71f97d2c53e7f74ab5b048e5603b495601ad (patch)
tree1112e9b2c265664badde94bef44391252fdccb63
parent7cdf2b698173add6707fb943f939a5ff9a2eab25 (diff)
downloadarchweb-b86b71f97d2c53e7f74ab5b048e5603b495601ad.tar.gz
archweb-b86b71f97d2c53e7f74ab5b048e5603b495601ad.tar.xz
Add a default initial groups fixture
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--README1
-rw-r--r--main/fixtures/groups.json198
2 files changed, 199 insertions, 0 deletions
diff --git a/README b/README
index 6b492d8..3e31538 100644
--- a/README
+++ b/README
@@ -58,6 +58,7 @@ packages, you will probably want the following:
(archweb-env) $ ./manage.py loaddata main/fixtures/arches.json
(archweb-env) $ ./manage.py loaddata main/fixtures/repos.json
+ (archweb-env) $ ./manage.py loaddata main/fixtures/groups.json
(archweb-env) $ ./manage.py loaddata mirrors/fixtures/mirrorprotocols.json
7. Use the following commands to start a service instance
diff --git a/main/fixtures/groups.json b/main/fixtures/groups.json
new file mode 100644
index 0000000..32416a7
--- /dev/null
+++ b/main/fixtures/groups.json
@@ -0,0 +1,198 @@
+[
+ {
+ "pk": 1,
+ "model": "auth.group",
+ "fields": {
+ "name": "Developers",
+ "permissions": [
+ [
+ "change_package",
+ "main",
+ "package"
+ ],
+ [
+ "add_signoff",
+ "main",
+ "signoff"
+ ],
+ [
+ "add_todolist",
+ "main",
+ "todolist"
+ ],
+ [
+ "change_todolist",
+ "main",
+ "todolist"
+ ],
+ [
+ "add_todolistpkg",
+ "main",
+ "todolistpkg"
+ ],
+ [
+ "change_todolistpkg",
+ "main",
+ "todolistpkg"
+ ],
+ [
+ "delete_todolistpkg",
+ "main",
+ "todolistpkg"
+ ],
+ [
+ "add_news",
+ "news",
+ "news"
+ ],
+ [
+ "change_news",
+ "news",
+ "news"
+ ]
+ ]
+ }
+ },
+ {
+ "pk": 3,
+ "model": "auth.group",
+ "fields": {
+ "name": "Mirror Maintainers",
+ "permissions": [
+ [
+ "add_mirror",
+ "mirrors",
+ "mirror"
+ ],
+ [
+ "change_mirror",
+ "mirrors",
+ "mirror"
+ ],
+ [
+ "delete_mirror",
+ "mirrors",
+ "mirror"
+ ],
+ [
+ "add_mirrorprotocol",
+ "mirrors",
+ "mirrorprotocol"
+ ],
+ [
+ "change_mirrorprotocol",
+ "mirrors",
+ "mirrorprotocol"
+ ],
+ [
+ "delete_mirrorprotocol",
+ "mirrors",
+ "mirrorprotocol"
+ ],
+ [
+ "add_mirrorrsync",
+ "mirrors",
+ "mirrorrsync"
+ ],
+ [
+ "change_mirrorrsync",
+ "mirrors",
+ "mirrorrsync"
+ ],
+ [
+ "delete_mirrorrsync",
+ "mirrors",
+ "mirrorrsync"
+ ],
+ [
+ "add_mirrorurl",
+ "mirrors",
+ "mirrorurl"
+ ],
+ [
+ "change_mirrorurl",
+ "mirrors",
+ "mirrorurl"
+ ],
+ [
+ "delete_mirrorurl",
+ "mirrors",
+ "mirrorurl"
+ ]
+ ]
+ }
+ },
+ {
+ "pk": 2,
+ "model": "auth.group",
+ "fields": {
+ "name": "Trusted Users",
+ "permissions": [
+ [
+ "change_package",
+ "main",
+ "package"
+ ],
+ [
+ "add_signoff",
+ "main",
+ "signoff"
+ ],
+ [
+ "add_todolist",
+ "main",
+ "todolist"
+ ],
+ [
+ "change_todolist",
+ "main",
+ "todolist"
+ ],
+ [
+ "add_todolistpkg",
+ "main",
+ "todolistpkg"
+ ],
+ [
+ "change_todolistpkg",
+ "main",
+ "todolistpkg"
+ ],
+ [
+ "delete_todolistpkg",
+ "main",
+ "todolistpkg"
+ ]
+ ]
+ }
+ },
+ {
+ "pk": 4,
+ "model": "auth.group",
+ "fields": {
+ "name": "User Admins",
+ "permissions": [
+ [
+ "add_user",
+ "auth",
+ "user"
+ ],
+ [
+ "change_user",
+ "auth",
+ "user"
+ ],
+ [
+ "add_userprofile",
+ "main",
+ "userprofile"
+ ],
+ [
+ "change_userprofile",
+ "main",
+ "userprofile"
+ ]
+ ]
+ }
+ }
+] \ No newline at end of file