doc/tutorials/advanced/part03_bfss.rst
branch3.26
changeset 12459 dc793c6ebc48
parent 12209 3a3551fff787
child 12395 93460d5f148c
equal deleted inserted replaced
12458:e5610bdda5b2 12459:dc793c6ebc48
    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