File tree 1 file changed +14
-2
lines changed
sample_xblocks/filethumbs
1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 1
1
"""An XBlock providing thumbs-up/thumbs-down voting.
2
2
3
- This is a completely artifical test case for the filesystem field type.
3
+ This is a completely artifical test case for the filesystem field type. It
4
+ behaves just like the sample_xblocks/thumbs example, except it uses filesystem
5
+ fields.
6
+
7
+ Votes are stored in a JSON object in the file system, and up/down arrow PNGs
8
+ are constructed as files on-the-fly.
9
+
10
+ These uses are not great demonstrations of what you can do with a filesystem
11
+ field. They should be used for storage of file-like data, usually with
12
+ varying file names.
13
+
14
+ This code is duplicative of much of the thumbs example. If you are interested
15
+ in filesystem fields, examining the differences between this block and the
16
+ thumbs block will be instructive.
4
17
5
- Votes are stored in a JSON object in the file system, and up/down arrow PNGs are constructed as files on-the-fly.
6
18
"""
7
19
8
20
import json
You can’t perform that action at this time.
0 commit comments