equal
deleted
inserted
replaced
10 entities data. To do so I've to set a custom :class:`BytesFileSystemStorage` |
10 entities data. To do so I've to set a custom :class:`BytesFileSystemStorage` |
11 storage for the File 'data' attribute, which hold the actual file's content. |
11 storage for the File 'data' attribute, which hold the actual file's content. |
12 |
12 |
13 Since the function to register a custom storage needs to have a repository |
13 Since the function to register a custom storage needs to have a repository |
14 instance as first argument, we've to call it in a server startup hook. So I added |
14 instance as first argument, we've to call it in a server startup hook. So I added |
15 in `cubicweb_sytweb/hooks.py` : |
15 in :file:`cubicweb_sytweb/hooks.py` : |
16 |
16 |
17 .. sourcecode:: python |
17 .. sourcecode:: python |
18 |
18 |
19 from os import makedirs |
19 from os import makedirs |
20 from os.path import join, exists |
20 from os.path import join, exists |