|
0
|
1 |
# roles_teacher should be loaded first |
|
|
2 |
|
|
|
3 |
############### users ############### |
|
|
4 |
# user1 |
|
|
5 |
|
|
|
6 |
- model : auth.user |
|
|
7 |
pk: 1 |
|
|
8 |
fields: |
|
|
9 |
username: user1 |
|
|
10 |
email: user1@here.dja |
|
|
11 |
password: sha1$6efc5$cf1468825cd79fd2d6ddaf97738c8666053af349 |
|
|
12 |
|
|
|
13 |
- model : cm.userprofile |
|
|
14 |
pk: 1 |
|
|
15 |
fields: |
|
|
16 |
user: 1 |
|
|
17 |
key: "up_key_1" |
|
|
18 |
adminkey: "up_adminkey_1" |
|
|
19 |
|
|
|
20 |
# user2 |
|
|
21 |
|
|
|
22 |
- model : auth.user |
|
|
23 |
pk: 2 |
|
|
24 |
fields: |
|
|
25 |
username: user2 |
|
|
26 |
email: user2@here.dja |
|
|
27 |
password: sha1$6efc5$cf1468825cd79fd2d6ddaf97738c8666053af349 |
|
|
28 |
|
|
|
29 |
- model : cm.userprofile |
|
|
30 |
pk: 2 |
|
|
31 |
fields: |
|
|
32 |
user: 2 |
|
|
33 |
key: "up_key_2" |
|
|
34 |
adminkey: "up_adminkey_2" |
|
|
35 |
|
|
|
36 |
# user3 |
|
|
37 |
|
|
|
38 |
- model : auth.user |
|
|
39 |
pk: 3 |
|
|
40 |
fields: |
|
|
41 |
username: user3 |
|
|
42 |
email: user3@here.dja |
|
|
43 |
password: sha1$6efc5$cf1468825cd79fd2d6ddaf97738c8666053af349 |
|
|
44 |
|
|
|
45 |
- model : cm.userprofile |
|
|
46 |
pk: 3 |
|
|
47 |
fields: |
|
|
48 |
user: 3 |
|
|
49 |
key: "up_key_3" |
|
|
50 |
adminkey: "up_adminkey_3" |
|
|
51 |
|
|
|
52 |
############### texts ############### |
|
|
53 |
|
|
|
54 |
# text 1 |
|
|
55 |
- model : cm.textversion |
|
|
56 |
pk: 1 |
|
|
57 |
fields: |
|
|
58 |
created: "2009-02-13 04:01:12" |
|
|
59 |
modified: "2009-02-13 04:01:12" |
|
|
60 |
title: 'title 1' |
|
|
61 |
format: 'markdown' |
|
|
62 |
content: 'aaa bbb ccc ddd eee fff ggg' |
|
|
63 |
text: 1 |
|
|
64 |
|
|
|
65 |
- model : cm.text |
|
|
66 |
pk: 1 |
|
|
67 |
fields: |
|
|
68 |
created: "2009-02-13 04:01:12" |
|
|
69 |
modified: "2009-02-13 04:01:12" |
|
|
70 |
last_text_version: 1 |
|
|
71 |
title: 'title 1' |
|
|
72 |
state: "approved" |
|
|
73 |
key: "text_key_1" |
|
|
74 |
adminkey: "text_adminkey_1" |
|
|
75 |
user: 1 |
|
|
76 |
|
|
|
77 |
# text 2 |
|
|
78 |
- model : cm.textversion |
|
|
79 |
pk: 2 |
|
|
80 |
fields: |
|
|
81 |
created: "2009-02-13 04:01:12" |
|
|
82 |
modified: "2009-02-13 04:01:12" |
|
|
83 |
title: 'title 2' |
|
|
84 |
format: 'markdown' |
|
|
85 |
content: 'aaa bbb ccc ddd eee fff ggg' |
|
|
86 |
text: 2 |
|
|
87 |
|
|
|
88 |
- model : cm.text |
|
|
89 |
pk: 2 |
|
|
90 |
fields: |
|
|
91 |
created: "2009-02-13 04:01:12" |
|
|
92 |
modified: "2009-02-13 04:01:12" |
|
|
93 |
last_text_version: 2 |
|
|
94 |
title: 'title 2' |
|
|
95 |
state: "approved" |
|
|
96 |
key: "text_key_2" |
|
|
97 |
adminkey: "text_adminkey_2" |
|
|
98 |
user: 1 |
|
|
99 |
|
|
|
100 |
############### userrole ############### |
|
|
101 |
|
|
|
102 |
# user 1 is Teacher |
|
|
103 |
# userrole 1 |
|
|
104 |
- model : cm.userrole |
|
|
105 |
pk: 1 |
|
|
106 |
fields: |
|
|
107 |
role: 1 |
|
|
108 |
user: 1 |
|
|
109 |
text: null |
|
|
110 |
|
|
|
111 |
# user 2 is Student |
|
|
112 |
# userrole 2 |
|
|
113 |
- model : cm.userrole |
|
|
114 |
pk: 2 |
|
|
115 |
fields: |
|
|
116 |
role: 2 |
|
|
117 |
user: 2 |
|
|
118 |
text: null |
|
|
119 |
|
|
|
120 |
# user 3 is Student |
|
|
121 |
# userrole 3 |
|
|
122 |
- model : cm.userrole |
|
|
123 |
pk: 3 |
|
|
124 |
fields: |
|
|
125 |
role: 2 |
|
|
126 |
user: 3 |
|
|
127 |
text: null |
|
|
128 |
|
|
|
129 |
############### comment ############### |
|
|
130 |
|
|
|
131 |
# comment 1 (by user1 on text 1) |
|
|
132 |
- model : cm.comment |
|
|
133 |
pk: 1 |
|
|
134 |
fields: |
|
|
135 |
created: "2009-02-13 04:01:12" |
|
|
136 |
modified: "2009-02-13 04:01:12" |
|
|
137 |
start_wrapper: 0 |
|
|
138 |
end_wrapper: 0 |
|
|
139 |
start_offset: 1 |
|
|
140 |
end_offset: 11 |
|
|
141 |
title: "comment 1" |
|
|
142 |
content: "comment 1 content" |
|
|
143 |
content_html: "<p>comment 1 content</p>" |
|
|
144 |
key: "comment_key_1" |
|
144
|
145 |
id_key: "comment_id_key_1" |
|
0
|
146 |
adminkey: "comment_adminkey_1" |
|
|
147 |
reply_to: null |
|
|
148 |
user: 1 |
|
|
149 |
visible : true |
|
|
150 |
text_version: 1 |
|
|
151 |
|
|
|
152 |
# comment 2 (by user2 on text 2) |
|
|
153 |
- model : cm.comment |
|
|
154 |
pk: 2 |
|
|
155 |
fields: |
|
|
156 |
created: "2009-02-13 04:01:13" |
|
|
157 |
modified: "2009-02-13 04:01:13" |
|
|
158 |
start_wrapper: 0 |
|
|
159 |
end_wrapper: 0 |
|
|
160 |
start_offset: 1 |
|
|
161 |
end_offset: 11 |
|
|
162 |
title: "comment 2" |
|
|
163 |
content: "comment 2 content" |
|
|
164 |
content_html: "<p>comment 2 content</p>" |
|
|
165 |
key: "comment_key_2" |
|
144
|
166 |
id_key: "comment_id_key_2" |
|
0
|
167 |
adminkey: "comment_adminkey_2" |
|
|
168 |
reply_to: null |
|
|
169 |
user: 2 |
|
|
170 |
visible : true |
|
|
171 |
text_version: 2 |
|
|
172 |
|
|
|
173 |
|