[PATCH 7 of 8 cubicweb] [doc] Fix bugs in code examples
Elodie ThiƩblin
elodie.thieblin at logilab.fr
Thu Mar 19 08:54:35 CET 2020
Fixed it in CS 6518b, thanks
On 18/03/2020 17:20, Simon Chabot wrote:
> Hi,
>
> In addition to Nicola's remarks, I think you should remove the whitespace
> before the parenthesis when you call the print function (E211) (or any
> function).
>
> Quoting Elodie Thieblin (2020-03-18 14:39:36)
>> diff --git a/doc/tutorials/advanced/part03_bfss.rst b/doc/tutorials/advanced/part03_bfss.rst
>> --- a/doc/tutorials/advanced/part03_bfss.rst
>> +++ b/doc/tutorials/advanced/part03_bfss.rst
>> @@ -31,7 +31,7 @@ in :file:`cubicweb_sytweb/hooks.py` :
>> bfssdir = join(self.repo.config.appdatahome, 'bfss')
>> if not exists(bfssdir):
>> makedirs(bfssdir)
>> - print 'created', bfssdir
>> + print ('created', bfssdir)
>> storage = storages.BytesFileSystemStorage(bfssdir)
>> storages.set_attribute_storage(self.repo, 'File', 'data', storage)
>>
>>
> --
> Simon Chabot
> logilab.fr - services en informatique scientifique et gestion de connaissances
More information about the cubicweb-devel
mailing list