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