|
0
|
1 |
# generic_roles 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" |
|
28
|
19 |
created: "2009-02-13 04:01:12" |
|
0
|
20 |
|
|
|
21 |
# user2 |
|
|
22 |
|
|
|
23 |
- model : auth.user |
|
|
24 |
pk: 2 |
|
|
25 |
fields: |
|
|
26 |
username: user2 |
|
|
27 |
email: user2@here.dja |
|
|
28 |
password: sha1$6efc5$cf1468825cd79fd2d6ddaf97738c8666053af349 |
|
|
29 |
|
|
|
30 |
- model : cm.userprofile |
|
|
31 |
pk: 2 |
|
|
32 |
fields: |
|
|
33 |
user: 2 |
|
|
34 |
key: "up_key_2" |
|
|
35 |
adminkey: "up_adminkey_2" |
|
28
|
36 |
created: "2009-02-13 04:01:12" |
|
0
|
37 |
|
|
|
38 |
# user3 |
|
|
39 |
|
|
|
40 |
- model : auth.user |
|
|
41 |
pk: 3 |
|
|
42 |
fields: |
|
|
43 |
username: user3 |
|
|
44 |
email: user3@here.dja |
|
|
45 |
password: sha1$6efc5$cf1468825cd79fd2d6ddaf97738c8666053af349 |
|
|
46 |
|
|
|
47 |
- model : cm.userprofile |
|
|
48 |
pk: 3 |
|
|
49 |
fields: |
|
|
50 |
user: 3 |
|
|
51 |
key: "up_key_3" |
|
|
52 |
adminkey: "up_adminkey_3" |
|
28
|
53 |
created: "2009-02-13 04:01:12" |
|
0
|
54 |
|
|
|
55 |
# user4 |
|
|
56 |
|
|
|
57 |
- model : auth.user |
|
|
58 |
pk: 4 |
|
|
59 |
fields: |
|
|
60 |
username: user4 |
|
|
61 |
email: user4@here.dja |
|
|
62 |
password: sha1$6efc5$cf1468825cd79fd2d6ddaf97738c8666053af349 |
|
|
63 |
|
|
|
64 |
- model : cm.userprofile |
|
|
65 |
pk: 4 |
|
|
66 |
fields: |
|
|
67 |
user: 4 |
|
|
68 |
key: "up_key_4" |
|
|
69 |
adminkey: "up_adminkey_4" |
|
28
|
70 |
created: "2009-02-13 04:01:12" |
|
0
|
71 |
|
|
|
72 |
# user5 |
|
|
73 |
|
|
|
74 |
- model : auth.user |
|
|
75 |
pk: 5 |
|
|
76 |
fields: |
|
|
77 |
is_active: False |
|
|
78 |
username: user5 |
|
|
79 |
email: user5@here.dja |
|
|
80 |
password: sha1$6efc5$cf1468825cd79fd2d6ddaf97738c8666053af349 |
|
|
81 |
|
|
|
82 |
- model : cm.userprofile |
|
|
83 |
pk: 5 |
|
|
84 |
fields: |
|
|
85 |
user: 5 |
|
|
86 |
key: "up_key_5" |
|
|
87 |
adminkey: "up_adminkey_5" |
|
28
|
88 |
created: "2009-02-13 04:01:12" |
|
0
|
89 |
|
|
|
90 |
# user6: pending user |
|
|
91 |
|
|
|
92 |
- model : auth.user |
|
|
93 |
pk: 6 |
|
|
94 |
fields: |
|
|
95 |
is_active: False |
|
|
96 |
username: user6 |
|
|
97 |
email: user6@here.dja |
|
|
98 |
password: sha1$6efc5$cf1468825cd79fd2d6ddaf97738c8666053af349 |
|
|
99 |
|
|
|
100 |
- model : cm.userprofile |
|
|
101 |
pk: 6 |
|
|
102 |
fields: |
|
|
103 |
user: 6 |
|
|
104 |
key: "up_key_6" |
|
|
105 |
adminkey: "up_adminkey_6" |
|
|
106 |
is_suspended: True |
|
28
|
107 |
created: "2009-02-13 04:01:12" |
|
0
|
108 |
|
|
|
109 |
############### texts ############### |
|
|
110 |
|
|
|
111 |
# text 1 |
|
|
112 |
- model : cm.textversion |
|
|
113 |
pk: 1 |
|
|
114 |
fields: |
|
|
115 |
created: "2009-02-13 04:01:12" |
|
|
116 |
modified: "2009-02-13 04:01:12" |
|
|
117 |
title: 'title 1, aposteriori moderation' |
|
|
118 |
format: 'markdown' |
|
|
119 |
content: 'aaa bbb ccc ddd eee fff ggg' |
|
|
120 |
text: 1 |
|
|
121 |
mod_posteriori: True |
|
24
|
122 |
key: "textversion_key_1" |
|
|
123 |
adminkey: "tv_adminkey_1" |
|
|
124 |
|
|
0
|
125 |
- model : cm.text |
|
|
126 |
pk: 1 |
|
|
127 |
fields: |
|
|
128 |
created: "2009-02-13 04:01:12" |
|
|
129 |
modified: "2009-02-13 04:01:12" |
|
|
130 |
last_text_version: 1 |
|
|
131 |
title: 'title 1' |
|
|
132 |
state: "approved" |
|
|
133 |
key: "text_key_1" |
|
|
134 |
adminkey: "text_adminkey_1" |
|
|
135 |
user: 1 |
|
|
136 |
|
|
|
137 |
# text 2 |
|
|
138 |
- model : cm.textversion |
|
|
139 |
pk: 2 |
|
|
140 |
fields: |
|
|
141 |
created: "2009-02-13 04:01:12" |
|
|
142 |
modified: "2009-02-13 04:01:12" |
|
|
143 |
title: 'title 2, apriori moderation' |
|
|
144 |
format: 'markdown' |
|
|
145 |
content: 'aaa bbb ccc ddd eee fff ggg' |
|
|
146 |
text: 2 |
|
|
147 |
mod_posteriori: False |
|
24
|
148 |
key: "textversion_key_2" |
|
|
149 |
adminkey: "tv_adminkey_2" |
|
0
|
150 |
|
|
|
151 |
- model : cm.text |
|
|
152 |
pk: 2 |
|
|
153 |
fields: |
|
|
154 |
created: "2009-02-13 04:01:12" |
|
|
155 |
modified: "2009-02-13 04:01:12" |
|
|
156 |
last_text_version: 2 |
|
|
157 |
title: 'title 2' |
|
|
158 |
state: "approved" |
|
|
159 |
key: "text_key_2" |
|
|
160 |
adminkey: "text_adminkey_2" |
|
|
161 |
user: 1 |
|
|
162 |
|
|
|
163 |
# text 3 |
|
|
164 |
- model : cm.textversion |
|
|
165 |
pk: 3 |
|
|
166 |
fields: |
|
|
167 |
created: "2009-02-13 04:01:12" |
|
|
168 |
modified: "2009-02-13 04:01:12" |
|
|
169 |
title: 'title 3' |
|
|
170 |
format: 'markdown' |
|
|
171 |
content: 'aaa bbb ccc ddd eee fff ggg |
|
|
172 |
|
|
|
173 |
|
|
|
174 |
long text |
|
|
175 |
|
|
|
176 |
|
|
|
177 |
long text |
|
|
178 |
|
|
|
179 |
|
|
|
180 |
long text |
|
|
181 |
|
|
|
182 |
|
|
|
183 |
long text |
|
|
184 |
|
|
|
185 |
|
|
|
186 |
long text |
|
|
187 |
|
|
|
188 |
|
|
|
189 |
long text |
|
|
190 |
|
|
|
191 |
|
|
|
192 |
long text |
|
|
193 |
|
|
|
194 |
|
|
|
195 |
long text |
|
|
196 |
|
|
|
197 |
|
|
|
198 |
long text |
|
|
199 |
|
|
|
200 |
|
|
|
201 |
long text |
|
|
202 |
|
|
|
203 |
|
|
|
204 |
long text |
|
|
205 |
|
|
|
206 |
|
|
|
207 |
long text |
|
|
208 |
|
|
|
209 |
|
|
|
210 |
long text |
|
|
211 |
|
|
|
212 |
|
|
|
213 |
long text |
|
|
214 |
|
|
|
215 |
|
|
|
216 |
long text |
|
|
217 |
|
|
|
218 |
|
|
|
219 |
long text |
|
|
220 |
|
|
|
221 |
|
|
|
222 |
long text |
|
|
223 |
|
|
|
224 |
|
|
|
225 |
long text |
|
|
226 |
|
|
|
227 |
|
|
|
228 |
long text |
|
|
229 |
|
|
|
230 |
|
|
|
231 |
long text |
|
|
232 |
|
|
|
233 |
|
|
|
234 |
long text |
|
|
235 |
|
|
|
236 |
|
|
|
237 |
long text |
|
|
238 |
|
|
|
239 |
|
|
|
240 |
long text |
|
|
241 |
|
|
|
242 |
|
|
|
243 |
long text |
|
|
244 |
|
|
|
245 |
|
|
|
246 |
long text |
|
|
247 |
|
|
|
248 |
|
|
|
249 |
long text |
|
|
250 |
|
|
|
251 |
|
|
|
252 |
long text |
|
|
253 |
|
|
|
254 |
|
|
|
255 |
long text |
|
|
256 |
|
|
|
257 |
|
|
|
258 |
long text |
|
|
259 |
|
|
|
260 |
|
|
|
261 |
long text |
|
|
262 |
|
|
|
263 |
|
|
|
264 |
long text |
|
|
265 |
|
|
|
266 |
|
|
|
267 |
long text |
|
|
268 |
|
|
|
269 |
|
|
|
270 |
long text |
|
|
271 |
|
|
|
272 |
|
|
|
273 |
long text |
|
|
274 |
|
|
|
275 |
|
|
|
276 |
long text |
|
|
277 |
|
|
|
278 |
|
|
|
279 |
long text |
|
|
280 |
|
|
|
281 |
|
|
|
282 |
long text |
|
|
283 |
|
|
|
284 |
|
|
|
285 |
long text |
|
|
286 |
|
|
|
287 |
|
|
|
288 |
long text |
|
|
289 |
|
|
|
290 |
|
|
|
291 |
long text |
|
|
292 |
|
|
|
293 |
|
|
|
294 |
long text |
|
|
295 |
|
|
|
296 |
|
|
|
297 |
long text |
|
|
298 |
|
|
|
299 |
|
|
|
300 |
long text |
|
|
301 |
|
|
|
302 |
|
|
|
303 |
long text |
|
|
304 |
|
|
|
305 |
|
|
|
306 |
long text |
|
|
307 |
|
|
|
308 |
|
|
|
309 |
long text |
|
|
310 |
|
|
|
311 |
|
|
|
312 |
long text |
|
|
313 |
|
|
|
314 |
|
|
|
315 |
long text |
|
|
316 |
|
|
|
317 |
|
|
|
318 |
long text |
|
|
319 |
|
|
|
320 |
|
|
|
321 |
long text |
|
|
322 |
|
|
|
323 |
|
|
|
324 |
long text |
|
|
325 |
|
|
|
326 |
|
|
|
327 |
long text |
|
|
328 |
|
|
|
329 |
|
|
|
330 |
long text |
|
|
331 |
|
|
|
332 |
|
|
|
333 |
long text |
|
|
334 |
|
|
|
335 |
|
|
|
336 |
long text |
|
|
337 |
|
|
|
338 |
|
|
|
339 |
long text |
|
|
340 |
|
|
|
341 |
|
|
|
342 |
long text |
|
|
343 |
|
|
|
344 |
|
|
|
345 |
long text' |
|
|
346 |
text: 3 |
|
24
|
347 |
key: "textversion_key_3" |
|
|
348 |
adminkey: "tv_adminkey_3" |
|
|
349 |
|
|
0
|
350 |
|
|
|
351 |
- model : cm.text |
|
|
352 |
pk: 3 |
|
|
353 |
fields: |
|
|
354 |
created: "2009-02-13 04:01:12" |
|
|
355 |
modified: "2009-02-13 04:01:12" |
|
|
356 |
last_text_version: 3 |
|
|
357 |
title: 'title 3' |
|
|
358 |
state: "approved" |
|
|
359 |
key: "text_key_3" |
|
|
360 |
adminkey: "text_adminkey_3" |
|
|
361 |
user: 2 |
|
|
362 |
|
|
|
363 |
############### userrole ############### |
|
|
364 |
|
|
|
365 |
# user 1 is global Manager |
|
|
366 |
# userrole 1 |
|
|
367 |
- model : cm.userrole |
|
|
368 |
pk: 1 |
|
|
369 |
fields: |
|
|
370 |
role: 1 |
|
|
371 |
user: 1 |
|
|
372 |
text: null |
|
|
373 |
|
|
|
374 |
# user 2 is Editor on text 2 |
|
|
375 |
# userrole 2 |
|
|
376 |
- model : cm.userrole |
|
|
377 |
pk: 2 |
|
|
378 |
fields: |
|
|
379 |
role: 1 |
|
|
380 |
user: 2 |
|
|
381 |
text: 2 |
|
|
382 |
|
|
|
383 |
# user 2 is Commentator on text 3 |
|
|
384 |
# userrole 3 |
|
|
385 |
- model : cm.userrole |
|
|
386 |
pk: 3 |
|
|
387 |
fields: |
|
|
388 |
role: 4 |
|
|
389 |
user: 2 |
|
|
390 |
text: 3 |
|
|
391 |
|
|
|
392 |
# user 3 is Commentator on text 2 |
|
|
393 |
# userrole 4 |
|
|
394 |
- model : cm.userrole |
|
|
395 |
pk: 4 |
|
|
396 |
fields: |
|
|
397 |
role: 4 |
|
|
398 |
user: 3 |
|
|
399 |
text: 2 |
|
|
400 |
|
|
|
401 |
# user 3 is Observer on text 3 |
|
|
402 |
# userrole 5 : |
|
|
403 |
- model : cm.userrole |
|
|
404 |
pk: 5 |
|
|
405 |
fields: |
|
|
406 |
role: 5 |
|
|
407 |
user: 3 |
|
|
408 |
text: 3 |
|
|
409 |
|
|
|
410 |
# user 4 is global Manager |
|
|
411 |
# userrole 6 |
|
|
412 |
- model : cm.userrole |
|
|
413 |
pk: 6 |
|
|
414 |
fields: |
|
|
415 |
role: 1 |
|
|
416 |
user: 4 |
|
|
417 |
text: null |
|
|
418 |
|
|
|
419 |
|
|
|
420 |
# user 4 is Commentator on text 2 (downgrade from global Manager) |
|
|
421 |
# userrole 7 |
|
|
422 |
- model : cm.userrole |
|
|
423 |
pk: 7 |
|
|
424 |
fields: |
|
|
425 |
role: 4 |
|
|
426 |
user: 4 |
|
|
427 |
text: 2 |
|
|
428 |
|
|
|
429 |
############### comment ############### |
|
|
430 |
|
|
|
431 |
# comment 1 (visible on text 2) |
|
|
432 |
- model : cm.comment |
|
|
433 |
pk: 1 |
|
|
434 |
fields: |
|
|
435 |
created: "2009-02-13 04:01:12" |
|
|
436 |
modified: "2009-02-13 04:01:12" |
|
|
437 |
start_wrapper: 0 |
|
|
438 |
end_wrapper: 0 |
|
|
439 |
start_offset: 1 |
|
|
440 |
end_offset: 11 |
|
|
441 |
title: "comment 1" |
|
|
442 |
content: "comment 1 content" |
|
144
|
443 |
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>" |
|
0
|
444 |
key: "comment_key_1" |
|
144
|
445 |
id_key: "comment_id_key_1" |
|
0
|
446 |
adminkey: "comment_adminkey_1" |
|
|
447 |
reply_to: null |
|
|
448 |
user: 1 |
|
|
449 |
state: "approved" |
|
|
450 |
text_version: 2 |
|
|
451 |
|
|
|
452 |
# comment 2 (visible on text 2) |
|
|
453 |
- model : cm.comment |
|
|
454 |
pk: 2 |
|
|
455 |
fields: |
|
|
456 |
created: "2009-02-13 04:01:13" |
|
|
457 |
modified: "2009-02-13 04:01:13" |
|
|
458 |
start_wrapper: 0 |
|
|
459 |
end_wrapper: 0 |
|
|
460 |
start_offset: 1 |
|
|
461 |
end_offset: 11 |
|
|
462 |
title: "comment 2" |
|
|
463 |
content: "comment 2 content" |
|
|
464 |
content_html: "<p>comment 2 content</p>" |
|
|
465 |
key: "comment_key_2" |
|
144
|
466 |
id_key: "comment_id_key_2" |
|
0
|
467 |
adminkey: "comment_adminkey_2" |
|
|
468 |
reply_to: null |
|
|
469 |
user: 1 |
|
|
470 |
state: "approved" |
|
|
471 |
text_version: 2 |
|
|
472 |
|
|
|
473 |
# comment 3 (NOT visible on text 2) |
|
|
474 |
- model : cm.comment |
|
|
475 |
pk: 3 |
|
|
476 |
fields: |
|
|
477 |
created: "2009-02-13 04:01:13" |
|
|
478 |
modified: "2009-02-13 04:01:13" |
|
|
479 |
start_wrapper: 0 |
|
|
480 |
end_wrapper: 0 |
|
|
481 |
start_offset: 1 |
|
|
482 |
end_offset: 11 |
|
|
483 |
title: "comment 3" |
|
|
484 |
content: "comment 3 content" |
|
|
485 |
content_html: "<p>comment 3 content</p>" |
|
|
486 |
key: "comment_key_3" |
|
144
|
487 |
id_key: "comment_id_key_3" |
|
0
|
488 |
adminkey: "comment_adminkey_3" |
|
|
489 |
reply_to: null |
|
|
490 |
user: 1 |
|
|
491 |
state: "pending" |
|
|
492 |
text_version: 2 |
|
|
493 |
|
|
|
494 |
# comment 4 (visible BUT child of comment 3 (NOT visible)) |
|
|
495 |
- model : cm.comment |
|
|
496 |
pk: 4 |
|
|
497 |
fields: |
|
|
498 |
created: "2009-02-13 04:01:13" |
|
|
499 |
modified: "2009-02-13 04:01:13" |
|
|
500 |
title: "comment 4" |
|
|
501 |
content: "comment 4 content" |
|
|
502 |
content_html: "<p>comment 4 content</p>" |
|
|
503 |
key: "comment_key_4" |
|
144
|
504 |
id_key: "comment_id_key_4" |
|
0
|
505 |
adminkey: "comment_adminkey_4" |
|
|
506 |
reply_to: 3 |
|
|
507 |
user: 1 |
|
|
508 |
state: "approved" |
|
|
509 |
text_version: 2 |
|
|
510 |
|
|
|
511 |
############### activity ############### |
|
|
512 |
- model : cm.activity |
|
|
513 |
pk: 1 |
|
|
514 |
fields: |
|
|
515 |
created: "2009-01-13 04:01:13" |
|
|
516 |
text: 1 |
|
|
517 |
originator_user: 1 |
|
|
518 |
type: 'text_view' |
|
|
519 |
|
|
|
520 |
- model : cm.activity |
|
|
521 |
pk: 2 |
|
|
522 |
fields: |
|
|
523 |
created: "2009-01-13 04:31:13" |
|
|
524 |
text: 1 |
|
|
525 |
originator_user: 1 |
|
|
526 |
type: 'text_view' |
|
|
527 |
|
|
|
528 |
- model : cm.activity |
|
|
529 |
pk: 3 |
|
|
530 |
fields: |
|
|
531 |
created: "2009-01-02 04:31:13" |
|
|
532 |
text: 1 |
|
|
533 |
originator_user: 1 |
|
|
534 |
type: 'text_view' |
|
|
535 |
|
|
|
536 |
|
|
|
537 |
- model : cm.activity |
|
|
538 |
pk: 4 |
|
|
539 |
fields: |
|
|
540 |
created: "2009-01-31 04:31:13" |
|
|
541 |
text: 1 |
|
|
542 |
originator_user: 1 |
|
|
543 |
type: 'text_view' |
|
|
544 |
|
|
|
545 |
|
|
|
546 |
|