Projet

Général

Profil

0001-backoffice-don-t-let-new-forms-be-created-when-welco.patch

Frédéric Péters, 11 janvier 2016 12:43

Télécharger (1,01 ko)

Voir les différences:

Subject: [PATCH] backoffice: don't let new forms be created when welco is
 deployed (#9500)

 wcs/backoffice/submission.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
wcs/backoffice/submission.py
196 196
        cats.append(misc_cat)
197 197

  
198 198
        r = TemplateIO(html=True)
199
        for mode in ['empty', 'create', 'existing']:
199
        modes = ['empty', 'create', 'existing']
200
        if get_publisher().get_site_option('welco_url', 'variables'):
201
            modes.remove('create')
202
        for mode in modes:
200 203
            list_content = TemplateIO()
201 204
            for cat in cats:
202 205
                if not cat.formdefs:
203
-