--- a/src/cm/fixtures/test_content.yaml Thu Apr 10 17:32:23 2014 +0200
+++ b/src/cm/fixtures/test_content.yaml Sat Apr 19 13:10:09 2014 +0200
@@ -9,14 +9,14 @@
username: user1
email: user1@here.dja
password: sha1$6efc5$cf1468825cd79fd2d6ddaf97738c8666053af349
-
+
- model : cm.userprofile
pk: 1
fields:
user: 1
- key: "up_key_1"
- adminkey: "up_adminkey_1"
- created: "2009-02-13 04:01:12"
+ key: "up_key_1"
+ adminkey: "up_adminkey_1"
+ created: "2009-02-13 04:01:12"
# user2
@@ -31,9 +31,9 @@
pk: 2
fields:
user: 2
- key: "up_key_2"
- adminkey: "up_adminkey_2"
- created: "2009-02-13 04:01:12"
+ key: "up_key_2"
+ adminkey: "up_adminkey_2"
+ created: "2009-02-13 04:01:12"
# user3
@@ -48,9 +48,9 @@
pk: 3
fields:
user: 3
- key: "up_key_3"
- adminkey: "up_adminkey_3"
- created: "2009-02-13 04:01:12"
+ key: "up_key_3"
+ adminkey: "up_adminkey_3"
+ created: "2009-02-13 04:01:12"
# user4
@@ -65,9 +65,9 @@
pk: 4
fields:
user: 4
- key: "up_key_4"
- adminkey: "up_adminkey_4"
- created: "2009-02-13 04:01:12"
+ key: "up_key_4"
+ adminkey: "up_adminkey_4"
+ created: "2009-02-13 04:01:12"
# user5
@@ -83,9 +83,9 @@
pk: 5
fields:
user: 5
- key: "up_key_5"
- adminkey: "up_adminkey_5"
- created: "2009-02-13 04:01:12"
+ key: "up_key_5"
+ adminkey: "up_adminkey_5"
+ created: "2009-02-13 04:01:12"
# user6: pending user
@@ -101,12 +101,25 @@
pk: 6
fields:
user: 6
- key: "up_key_6"
+ key: "up_key_6"
adminkey: "up_adminkey_6"
- is_suspended: True
- created: "2009-02-13 04:01:12"
+ is_suspended: True
+ created: "2009-02-13 04:01:12"
-############### texts ###############
+- model: auth.user
+ pk: 7
+ fields:
+ email: admin@mail.com
+ groups: []
+ is_active: true
+ is_staff: true
+ is_superuser: true
+ password: sha1$46d5d$f808afd06c731b7b4cf97919165183b497a620df
+ username: admin
+
+
+
+############### texts ###############
# text 1
- model : cm.text
@@ -117,10 +130,10 @@
last_text_version: null
title: 'title 1'
state: "approved"
- key: "text_key_1"
- adminkey: "text_adminkey_1"
+ key: "text_key_1"
+ adminkey: "text_adminkey_1"
user: 1
-
+
- model : cm.textversion
pk: 1
fields:
@@ -131,8 +144,8 @@
content: 'aaa bbb ccc ddd eee fff ggg'
text: 1
mod_posteriori: True
- key: "textversion_key_1"
- adminkey: "tv_adminkey_1"
+ key: "textversion_key_1"
+ adminkey: "tv_adminkey_1"
- model : cm.textversion
pk: 0
@@ -144,8 +157,8 @@
content: 'zzz hhhh aaa bbb ccc ddd eee fff ggg'
text: 1
mod_posteriori: True
- key: "textversion_key_0"
- adminkey: "tv_adminkey_0"
+ key: "textversion_key_0"
+ adminkey: "tv_adminkey_0"
# text 2
@@ -157,9 +170,9 @@
last_text_version: null
title: 'title 2'
state: "approved"
- key: "text_key_2"
+ key: "text_key_2"
adminkey: "text_adminkey_2"
- user: 1
+ user: 1
- model : cm.textversion
pk: 2
@@ -171,10 +184,10 @@
content: 'aaa bbb ccc ddd eee fff ggg'
text: 2
mod_posteriori: False
- key: "textversion_key_2"
- adminkey: "tv_adminkey_2"
-
-
+ key: "textversion_key_2"
+ adminkey: "tv_adminkey_2"
+
+
# text 3
- model : cm.text
@@ -185,9 +198,9 @@
last_text_version: null
title: 'title 3'
state: "approved"
- key: "text_key_3"
+ key: "text_key_3"
adminkey: "text_adminkey_3"
- user: 2
+ user: 2
- model : cm.textversion
pk: 3
@@ -196,187 +209,187 @@
modified: "2009-02-13 04:01:12"
title: 'title 3'
format: 'markdown'
- content: 'aaa bbb ccc ddd eee fff ggg
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
- long text
-
-
+ content: 'aaa bbb ccc ddd eee fff ggg
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
+ long text
+
+
long text'
text: 3
- key: "textversion_key_3"
- adminkey: "tv_adminkey_3"
+ key: "textversion_key_3"
+ adminkey: "tv_adminkey_3"
# text 4
-
+
- model : cm.text
pk: 4
fields:
@@ -385,8 +398,8 @@
last_text_version: null
title: 'title 4, public text'
state: "approved"
- key: "text_key_4"
- adminkey: "text_adminkey_4"
+ key: "text_key_4"
+ adminkey: "text_adminkey_4"
user: 1
- model : cm.textversion
@@ -399,11 +412,11 @@
content: 'aaa bbb ccc ddd eee fff ggg'
text: 4
mod_posteriori: True
- key: "textversion_key_4"
- adminkey: "tv_adminkey_4"
+ key: "textversion_key_4"
+ adminkey: "tv_adminkey_4"
# text 5
-
+
- model : cm.text
pk: 5
fields:
@@ -412,9 +425,9 @@
last_text_version: null
title: 'title 5, public text'
state: "approved"
- key: "text_key_5"
- adminkey: "text_adminkey_5"
- user: 1
+ key: "text_key_5"
+ adminkey: "text_adminkey_5"
+ user: 1
- model : cm.textversion
pk: 5
@@ -426,10 +439,10 @@
content: 'aaa bbb ccc ddd eee fff ggg'
text: 5
mod_posteriori: True
- key: "textversion_key_5"
- adminkey: "tv_adminkey_5"
+ key: "textversion_key_5"
+ adminkey: "tv_adminkey_5"
-############### userrole ###############
+############### userrole ###############
# user 1 is global Manager
# userrole 1
@@ -439,7 +452,7 @@
role: 1
user: 1
text: null
-
+
# user 2 is Editor on text 2
# userrole 2
- model : cm.userrole
@@ -484,7 +497,7 @@
role: 1
user: 4
text: null
-
+
# user 4 is Commentator on text 2 (downgrade from global Manager)
# userrole 7
@@ -503,7 +516,7 @@
role: 4
user: null
text: 4
-
+
# user null (anon is Commentator on text 5)
# userrole 9
- model : cm.userrole
@@ -512,23 +525,23 @@
role: 4
user: null
text: 5
-
+
############### comment ###############
# comment 1 (visible on text 2)
- model : cm.comment
pk: 1
fields:
- created: "2009-02-13 04:01:12"
+ created: "2009-02-13 04:01:12"
modified: "2009-02-13 04:01:12"
- start_wrapper: 0
+ start_wrapper: 0
end_wrapper: 0
- start_offset: 1
+ start_offset: 1
end_offset: 11
- title: "comment 1"
- content: "comment 1 content"
- content_html: "<p>comment 1 content, this <a href='http://localhost:8000/text/text_key_2/view/?comment_id_key=comment_id_key_4'>link</a> is a link to another comment, and <a href='http://www.lemonde.fr'>this one</a> is a link to lemonde</sp></p>"
- key: "comment_key_1"
+ title: "comment 1"
+ content: "comment 1 content"
+ content_html: "<p>comment 1 content, this <a href='http://localhost:8000/text/text_key_2/view/?comment_id_key=comment_id_key_4'>link</a> is a link to another comment, and <a href='http://www.lemonde.fr'>this one</a> is a link to lemonde</sp></p>"
+ key: "comment_key_1"
id_key: "comment_id_key_1"
adminkey: "comment_adminkey_1"
reply_to: null
@@ -540,16 +553,16 @@
- model : cm.comment
pk: 2
fields:
- created: "2009-02-13 04:01:13"
+ created: "2009-02-13 04:01:13"
modified: "2009-02-13 04:01:13"
- start_wrapper: 0
+ start_wrapper: 0
end_wrapper: 0
- start_offset: 1
+ start_offset: 1
end_offset: 11
- title: "comment 2"
- content: "comment 2 content"
- content_html: "<p>comment 2 content</p>"
- key: "comment_key_2"
+ title: "comment 2"
+ content: "comment 2 content"
+ content_html: "<p>comment 2 content</p>"
+ key: "comment_key_2"
id_key: "comment_id_key_2"
adminkey: "comment_adminkey_2"
reply_to: null
@@ -561,16 +574,16 @@
- model : cm.comment
pk: 3
fields:
- created: "2009-02-13 04:01:13"
+ created: "2009-02-13 04:01:13"
modified: "2009-02-13 04:01:13"
- start_wrapper: 0
+ start_wrapper: 0
end_wrapper: 0
- start_offset: 1
+ start_offset: 1
end_offset: 11
- title: "comment 3"
- content: "comment 3 content"
- content_html: "<p>comment 3 content</p>"
- key: "comment_key_3"
+ title: "comment 3"
+ content: "comment 3 content"
+ content_html: "<p>comment 3 content</p>"
+ key: "comment_key_3"
id_key: "comment_id_key_3"
adminkey: "comment_adminkey_3"
reply_to: null
@@ -582,12 +595,12 @@
- model : cm.comment
pk: 4
fields:
- created: "2009-02-13 04:01:13"
+ created: "2009-02-13 04:01:13"
modified: "2009-02-13 04:01:13"
- title: "comment 4"
- content: "comment 4 content"
- content_html: "<p>comment 4 content</p>"
- key: "comment_key_4"
+ title: "comment 4"
+ content: "comment 4 content"
+ content_html: "<p>comment 4 content</p>"
+ key: "comment_key_4"
id_key: "comment_id_key_4"
adminkey: "comment_adminkey_4"
reply_to: 3
@@ -599,35 +612,32 @@
- model : cm.activity
pk: 1
fields:
- created: "2009-01-13 04:01:13"
- text: 1
+ created: "2009-01-13 04:01:13"
+ text: 1
originator_user: 1
type: 'text_view'
- model : cm.activity
pk: 2
fields:
- created: "2009-01-13 04:31:13"
- text: 1
+ created: "2009-01-13 04:31:13"
+ text: 1
originator_user: 1
type: 'text_view'
-
+
- model : cm.activity
pk: 3
fields:
- created: "2009-01-02 04:31:13"
- text: 1
- originator_user: 1
- type: 'text_view'
-
-
-- model : cm.activity
- pk: 4
- fields:
- created: "2009-01-31 04:31:13"
- text: 1
+ created: "2009-01-02 04:31:13"
+ text: 1
originator_user: 1
type: 'text_view'
-
\ No newline at end of file
+- model : cm.activity
+ pk: 4
+ fields:
+ created: "2009-01-31 04:31:13"
+ text: 1
+ originator_user: 1
+ type: 'text_view'