doc/tutorials/advanced/part03_bfss.rst
changeset 12209 3a3551fff787
parent 10491 c67bcee93248
child 12394 e847b5d1ffff
equal deleted inserted replaced
12208:159dce89a145 12209:3a3551fff787
    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 `cubes/sytweb/hooks.py` :
    15 in `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