Permalink
Browse files

permission migrations

  • Loading branch information...
1 parent 07ec80e commit e0d2d6fdf190d4b52ad464541d843bca78f5b3a5 @digi604 digi604 committed Jun 30, 2009
Showing with 647 additions and 0 deletions.
  1. +2 −0 cms/fixtures/test.json
  2. +411 −0 cms/migrations/0012_publisher_permissions.py
  3. +234 −0 cms/migrations/0018_site_permissions.py
View
@@ -0,0 +1,2 @@
+[{"pk": 1, "model": "cms.page", "fields": {"status": 1, "rght": 2, "level": 0, "navigation_extenders": null, "parent": null, "author": 1, "reverse_id": null, "login_required": 0, "sites": [1], "soft_root": 0, "creation_date": "2009-04-06 05:58:23", "lft": 1, "publication_end_date": null, "template": "index.html", "tree_id": 1, "publication_date": "2009-04-06 09:56:24", "in_navigation": 1}}, {"pk": 2, "model": "cms.page", "fields": {"status": 1, "rght": 12, "level": 0, "navigation_extenders": null, "parent": null, "author": 1, "reverse_id": null, "login_required": 0, "sites": [1], "soft_root": 0, "creation_date": "2009-04-06 09:54:49", "lft": 1, "publication_end_date": null, "template": "index.html", "tree_id": 2, "publication_date": "2009-04-06 09:56:24", "in_navigation": 1}}, {"pk": 5, "model": "cms.page", "fields": {"status": 1, "rght": 9, "level": 1, "navigation_extenders": null, "parent": 2, "author": 1, "reverse_id": null, "login_required": 0, "sites": [1], "soft_root": 0, "creation_date": "2009-04-06 09:55:34", "lft": 2, "publication_end_date": null, "template": "nice.html", "tree_id": 2, "publication_date": "2009-04-06 09:56:29", "in_navigation": 1}}, {"pk": 8, "model": "cms.page", "fields": {"status": 1, "rght": 8, "level": 2, "navigation_extenders": null, "parent": 5, "author": 1, "reverse_id": null, "login_required": 0, "sites": [1], "soft_root": 0, "creation_date": "2009-04-06 10:20:37", "lft": 3, "publication_end_date": null, "template": "index.html", "tree_id": 2, "publication_date": "2009-04-06 10:20:37", "in_navigation": 1}}, {"pk": 9, "model": "cms.page", "fields": {"status": 1, "rght": 5, "level": 3, "navigation_extenders": null, "parent": 8, "author": 1, "reverse_id": null, "login_required": 0, "sites": [1], "soft_root": 0, "creation_date": "2009-04-08 05:58:40", "lft": 4, "publication_end_date": null, "template": "index.html", "tree_id": 2, "publication_date": "2009-04-08 05:58:40", "in_navigation": 1}}, {"pk": 11, "model": "cms.page", "fields": {"status": 1, "rght": 7, "level": 3, "navigation_extenders": null, "parent": 8, "author": 2, "reverse_id": null, "login_required": 0, "sites": [1], "soft_root": 0, "creation_date": "2009-04-08 06:03:34", "lft": 6, "publication_end_date": null, "template": "index.html", "tree_id": 2, "publication_date": "2009-04-08 06:04:01", "in_navigation": 1}}, {"pk": 4, "model": "cms.page", "fields": {"status": 1, "rght": 11, "level": 1, "navigation_extenders": null, "parent": 2, "author": 1, "reverse_id": null, "login_required": 0, "sites": [1], "soft_root": 0, "creation_date": "2009-04-06 09:55:22", "lft": 10, "publication_end_date": null, "template": "index.html", "tree_id": 2, "publication_date": "2009-04-06 09:56:29", "in_navigation": 1}}, {"pk": 3, "model": "cms.page", "fields": {"status": 1, "rght": 6, "level": 0, "navigation_extenders": null, "parent": null, "author": 1, "reverse_id": null, "login_required": 0, "sites": [1], "soft_root": 0, "creation_date": "2009-04-06 09:55:04", "lft": 1, "publication_end_date": null, "template": "index.html", "tree_id": 3, "publication_date": "2009-04-06 09:56:25", "in_navigation": 1}}, {"pk": 7, "model": "cms.page", "fields": {"status": 1, "rght": 3, "level": 1, "navigation_extenders": null, "parent": 3, "author": 1, "reverse_id": null, "login_required": 0, "sites": [1], "soft_root": 0, "creation_date": "2009-04-06 09:56:07", "lft": 2, "publication_end_date": null, "template": "index.html", "tree_id": 3, "publication_date": "2009-04-06 09:56:33", "in_navigation": 1}}, {"pk": 6, "model": "cms.page", "fields": {"status": 1, "rght": 5, "level": 1, "navigation_extenders": null, "parent": 3, "author": 1, "reverse_id": null, "login_required": 0, "sites": [1], "soft_root": 0, "creation_date": "2009-04-06 09:55:53", "lft": 4, "publication_end_date": null, "template": "index.html", "tree_id": 3, "publication_date": "2009-04-06 09:56:34", "in_navigation": 1}}, {"pk": 1, "model": "cms.pagepermission", "fields": {"everybody": 0, "can_edit": 1, "group": null, "can_publish": 1, "user": 2, "type": 2, "page": 5, "can_change_softroot": 0}}, {"pk": 1, "model": "cms.title", "fields": {"language": "de", "application_urls": null, "has_url_overwrite": 0, "title": "Home", "page": 1, "path": "home", "creation_date": "2009-04-06 05:58:23", "slug": "home"}}, {"pk": 2, "model": "cms.title", "fields": {"language": "de", "application_urls": null, "has_url_overwrite": 0, "title": "Team", "page": 2, "path": "team", "creation_date": "2009-04-06 09:54:50", "slug": "team"}}, {"pk": 3, "model": "cms.title", "fields": {"language": "de", "application_urls": null, "has_url_overwrite": 0, "title": "Propukte", "page": 3, "path": "propukte", "creation_date": "2009-04-06 09:55:04", "slug": "propukte"}}, {"pk": 4, "model": "cms.title", "fields": {"language": "de", "application_urls": null, "has_url_overwrite": 0, "title": "Peter", "page": 4, "path": "team/peter", "creation_date": "2009-04-06 09:55:22", "slug": "peter"}}, {"pk": 5, "model": "cms.title", "fields": {"language": "de", "application_urls": null, "has_url_overwrite": 0, "title": "Patrick", "page": 5, "path": "team/patrick", "creation_date": "2009-04-06 09:55:34", "slug": "patrick"}}, {"pk": 6, "model": "cms.title", "fields": {"language": "de", "application_urls": null, "has_url_overwrite": 0, "title": "CMS", "page": 6, "path": "propukte/cms", "creation_date": "2009-04-06 09:55:53", "slug": "cms"}}, {"pk": 7, "model": "cms.title", "fields": {"language": "de", "application_urls": null, "has_url_overwrite": 0, "title": "Custom Development", "page": 7, "path": "propukte/custom-development", "creation_date": "2009-04-06 09:56:07", "slug": "custom-development"}}, {"pk": 8, "model": "cms.title", "fields": {"language": "de", "application_urls": null, "has_url_overwrite": 0, "title": "Hello World", "page": 8, "path": "team/patrick/hello-world", "creation_date": "2009-04-06 10:20:37", "slug": "hello-world"}}, {"pk": 9, "model": "cms.title", "fields": {"language": "de", "application_urls": null, "has_url_overwrite": 0, "title": "2nd level hello world", "page": 9, "path": "team/patrick/hello-world/2nd-level-hello-world", "creation_date": "2009-04-08 05:58:40", "slug": "2nd-level-hello-world"}}, {"pk": 11, "model": "cms.title", "fields": {"language": "en", "application_urls": null, "has_url_overwrite": 0, "title": "hello world3", "page": 11, "path": "team/patrick/hello-world/hello-world3", "creation_date": "2009-04-08 06:03:34", "slug": "hello-world3"}}, {"pk": 30, "model": "cms.cmsplugin", "fields": {"rght": 1, "parent": 29, "language": "de", "level": 1, "creation_date": "2009-04-13 10:46:18", "lft": 0, "tree_id": 0, "position": null, "placeholder": "body", "page": 1, "plugin_type": "LinkPlugin"}}, {"pk": 31, "model": "cms.cmsplugin", "fields": {"rght": 3, "parent": 29, "language": "de", "level": 1, "creation_date": "2009-04-13 10:50:47", "lft": 2, "tree_id": 0, "position": null, "placeholder": "body", "page": 1, "plugin_type": "LinkPlugin"}}, {"pk": 29, "model": "cms.cmsplugin", "fields": {"rght": 4, "parent": null, "language": "de", "level": 0, "creation_date": "2009-04-13 10:45:59", "lft": 4, "tree_id": 0, "position": 0, "placeholder": "body", "page": 1, "plugin_type": "TextPlugin"}}]
+[{"pk": 2, "model": "cms.page", "fields": {"status": 1, "rght": 2, "level": 0, "navigation_extenders": null, "parent": null, "author": 1, "reverse_id": null, "login_required": 0, "sites": [1], "soft_root": 0, "creation_date": "2009-05-12 06:11:54", "lft": 1, "publication_end_date": null, "template": "index.html", "tree_id": 2, "publication_date": "2009-05-12 08:45:53", "in_navigation": 1}}, {"pk": 3, "model": "cms.page", "fields": {"status": 1, "rght": 4, "level": 0, "navigation_extenders": null, "parent": null, "author": 1, "reverse_id": null, "login_required": 0, "sites": [1], "soft_root": 0, "creation_date": "2009-05-12 08:02:37", "lft": 1, "publication_end_date": null, "template": "nice.html", "tree_id": 3, "publication_date": "2009-05-12 09:01:29", "in_navigation": 1}}, {"pk": 4, "model": "cms.page", "fields": {"status": 1, "rght": 3, "level": 1, "navigation_extenders": null, "parent": 3, "author": 1, "reverse_id": null, "login_required": 0, "sites": [1], "soft_root": 0, "creation_date": "2009-05-12 09:01:09", "lft": 2, "publication_end_date": null, "template": "index.html", "tree_id": 3, "publication_date": "2009-05-12 09:01:33", "in_navigation": 1}}, {"pk": 1, "model": "cms.pagepermission", "fields": {"everybody": 0, "can_edit": 1, "group": null, "can_publish": 1, "user": 2, "type": 0, "page": null, "can_change_softroot": 0}}, {"pk": 1, "model": "cms.title", "fields": {"language": "de", "application_urls": "", "has_url_overwrite": 0, "title": "Home", "page": 2, "path": "home", "creation_date": "2009-05-12 06:11:55", "slug": "home"}}, {"pk": 2, "model": "cms.title", "fields": {"language": "de", "application_urls": "", "has_url_overwrite": 0, "title": "Team", "page": 3, "path": "team", "creation_date": "2009-05-12 08:02:38", "slug": "team"}}, {"pk": 3, "model": "cms.title", "fields": {"language": "de", "application_urls": "sampleapp.urls", "has_url_overwrite": 0, "title": "Patrick", "page": 4, "path": "team/patrick", "creation_date": "2009-05-12 09:01:09", "slug": "patrick"}}, {"pk": 1, "model": "cms.cmsplugin", "fields": {"rght": 2, "parent": null, "language": "de", "level": 0, "creation_date": "2009-05-12 06:16:08", "lft": 1, "tree_id": 1, "position": 0, "placeholder": "body", "page": 2, "plugin_type": "TextPlugin"}}, {"pk": 2, "model": "cms.cmsplugin", "fields": {"rght": 6, "parent": null, "language": "de", "level": 0, "creation_date": "2009-05-12 06:16:09", "lft": 1, "tree_id": 2, "position": 2, "placeholder": "right-column", "page": 2, "plugin_type": "TextPlugin"}}, {"pk": 13, "model": "cms.cmsplugin", "fields": {"rght": 2, "parent": null, "language": "de", "level": 0, "creation_date": "2009-05-12 16:24:38", "lft": 1, "tree_id": 9, "position": 1, "placeholder": "body", "page": 2, "plugin_type": "FilePlugin"}}, {"pk": 4, "model": "cms.cmsplugin", "fields": {"rght": 3, "parent": 2, "language": "de", "level": 1, "creation_date": "2009-05-12 06:59:37", "lft": 2, "tree_id": 2, "position": 0, "placeholder": "right-column", "page": 2, "plugin_type": "LinkPlugin"}}, {"pk": 5, "model": "cms.cmsplugin", "fields": {"rght": 5, "parent": 2, "language": "de", "level": 1, "creation_date": "2009-05-12 06:59:56", "lft": 4, "tree_id": 2, "position": 1, "placeholder": "right-column", "page": 2, "plugin_type": "LinkPlugin"}}, {"pk": 6, "model": "cms.cmsplugin", "fields": {"rght": 2, "parent": null, "language": "de", "level": 0, "creation_date": "2009-05-12 09:07:38", "lft": 1, "tree_id": 4, "position": 0, "placeholder": "body", "page": 4, "plugin_type": "TextPlugin"}}, {"pk": 7, "model": "cms.cmsplugin", "fields": {"rght": 4, "parent": null, "language": "de", "level": 0, "creation_date": "2009-05-12 09:50:02", "lft": 1, "tree_id": 5, "position": 1, "placeholder": "body", "page": 4, "plugin_type": "TextPlugin"}}, {"pk": 9, "model": "cms.cmsplugin", "fields": {"rght": 2, "parent": null, "language": "de", "level": 0, "creation_date": "2009-05-12 09:51:42", "lft": 1, "tree_id": 6, "position": 0, "placeholder": "right-column", "page": 4, "plugin_type": "LinkPlugin"}}, {"pk": 10, "model": "cms.cmsplugin", "fields": {"rght": 3, "parent": 7, "language": "de", "level": 1, "creation_date": "2009-05-12 09:52:07", "lft": 2, "tree_id": 5, "position": null, "placeholder": "body", "page": 4, "plugin_type": "LinkPlugin"}}, {"pk": 14, "model": "cms.cmsplugin", "fields": {"rght": 2, "parent": null, "language": "de", "level": 0, "creation_date": "2009-05-13 04:12:37", "lft": 1, "tree_id": 10, "position": 0, "placeholder": "fancy-content", "page": 3, "plugin_type": "TextPlugin"}}, {"pk": 12, "model": "cms.cmsplugin", "fields": {"rght": 2, "parent": null, "language": "de", "level": 0, "creation_date": "2009-05-12 16:13:13", "lft": 1, "tree_id": 8, "position": 3, "placeholder": "right-column", "page": 2, "plugin_type": "PicturePlugin"}}, {"pk": 15, "model": "cms.cmsplugin", "fields": {"rght": 2, "parent": null, "language": "de", "level": 0, "creation_date": "2009-05-13 04:12:51", "lft": 1, "tree_id": 11, "position": 0, "placeholder": "right-column", "page": 3, "plugin_type": "TextPlugin"}}, {"pk": 16, "model": "cms.cmsplugin", "fields": {"rght": 2, "parent": null, "language": "de", "level": 0, "creation_date": "2009-05-13 04:13:03", "lft": 1, "tree_id": 12, "position": 0, "placeholder": "body", "page": 3, "plugin_type": "TextPlugin"}}, {"pk": 17, "model": "cms.cmsplugin", "fields": {"rght": 2, "parent": null, "language": "de", "level": 0, "creation_date": "2009-05-13 07:29:35", "lft": 1, "tree_id": 13, "position": 1, "placeholder": "right-column", "page": 4, "plugin_type": "FlashPlugin"}}, {"pk": 13, "model": "file.file", "fields": {"file": "cms_page_media/2/2163086771_dd341c7f03_o.png", "title": "some File"}}, {"pk": 5, "model": "link.link", "fields": {"url": "http://www.google.ch/", "name": "hi", "page_link": null}}, {"pk": 9, "model": "link.link", "fields": {"url": "http://www.google.ch/", "name": "google", "page_link": null}}, {"pk": 10, "model": "link.link", "fields": {"url": "http://www.google.ch/", "name": "google", "page_link": null}}, {"pk": 12, "model": "picture.picture", "fields": {"url": "", "image": "cms_page_media/2/Patrick Lauber.jpg", "alt": ""}}, {"pk": 2, "model": "text.text", "fields": {"body": "<p>asdsadasdasdasd</p><p><img src=\"/media/cms/images/plugins/link.png\" alt=\"Link - hi\" id=\"plugin_obj_5\" />&lt;- Link</p>"}}, {"pk": 1, "model": "text.text", "fields": {"body": "<p>asdadasdadasdasd</p>"}}, {"pk": 6, "model": "text.text", "fields": {"body": "<p>Hello my name is Patrick</p>"}}, {"pk": 7, "model": "text.text", "fields": {"body": "<p>asdsadas<img src=\"/media/cms/images/plugins/link.png\" alt=\"Link - google\" id=\"plugin_obj_10\" /></p>"}}, {"pk": 14, "model": "text.text", "fields": {"body": "<p>Fancy Content</p>"}}, {"pk": 15, "model": "text.text", "fields": {"body": "<p>Right Column</p>"}}, {"pk": 16, "model": "text.text", "fields": {"body": "<p>Body</p>"}}, {"pk": 17, "model": "flash.flash", "fields": {"width": "300", "file": "cms_page_media/4/00660_splash_1440x900.jpg", "height": "400"}}]
Oops, something went wrong.

0 comments on commit e0d2d6f

Please sign in to comment.