cubicweb-pyramid #4539164 no such option pyramid-auth-secret in section 'all-in-one' [rejected]

After a cubicweb-ctl create forge forge, I try a cubicweb pyramid forge and get this

Traceback (most recent call last):
File "/home/arthur/.virtualenvs/cubicweb-pyramid/local/lib/python2.7/site-packages/cubicweb/cwctl.py", line 162, in run_arg
  status = cmdmeth(appid)
File "/home/arthur/.virtualenvs/cubicweb-pyramid/share/cubicweb/cubes/pyramid/ccplugin.py", line 270, in pyramid_instance
  pyramid_config = make_cubicweb_application(cwconfig)
File "/home/arthur/.virtualenvs/cubicweb-pyramid/local/lib/python2.7/site-packages/pyramid_cubicweb/__init__.py", line 29, in make_cubicweb_applicati
ReST / HTML errors:System Message: WARNING/2 (&lt;string&gt; , line 9)</p>
Literal block ends without a blank line; unexpected unindent.
on
config.include('pyramid_cubicweb.defaults')
ReST / HTML errors:System Message: WARNING/2 (&lt;string&gt; , line 11)</p>
Block quote ends without a blank line; unexpected unindent.
File "/home/arthur/.virtualenvs/cubicweb-pyramid/local/lib/python2.7/site-packages/pyramid/config/__init__.py", line 755, in include
c(configurator)
File "/home/arthur/.virtualenvs/cubicweb-pyramid/local/lib/python2.7/site-packages/pyramid_cubicweb/defaults.py", line 12, in includeme
secret = config.registry['cubicweb.config']['pyramid-auth-secret']
File "/home/arthur/.virtualenvs/cubicweb-pyramid/local/lib/python2.7/site-packages/logilab/common/configuration.py", line 957, in __getitem__
return getattr(self.config, self.option_attrname(key))
File "/home/arthur/.virtualenvs/cubicweb-pyramid/local/lib/python2.7/site-packages/logilab/common/configuration.py", line 805, in option_attrname
optdict = self.get_option_def(opt)
File "/home/arthur/.virtualenvs/cubicweb-pyramid/local/lib/python2.7/site-packages/logilab/common/configuration.py", line 881, in get_option_def
% (opt, self.name), opt)
ReST / HTML errors:System Message: WARNING/2 (&lt;string&gt; , line 21)</p>
Definition list ends without a blank line; unexpected unindent.

OptionError: option pyramid-auth-secret: no such option pyramid-auth-secret in section 'all-in-one' instance forge not None: option pyramid-auth-secret: no such option pyramid-auth-secret in section 'all-in-one'

My quick hack to make it work : patch pyramid_cubicweb/defaults.py with

secret = 'notsosecret' #config.registry['cubicweb.config']['pyramid-auth-secret']

On that note, there is a copy/paste refactoring to be done with "pyramid_cubicweb/session.py" which has about the same code.

prioritynormal
typebug
done in<not specified>
load0.000
load left0.000
closed by<not specified>