[PATCH 6 of 9 Registration cube] Fix base_url() got an unexpected keyword argument 'secure'

Nsukami Patrick ptrck at nskm.xyz
Wed Apr 1 12:50:09 CEST 2020


# HG changeset patch
# User Nsukami Patrick <ptrck at nskm dot xyz>
# Date 1585674099 0
#      Tue Mar 31 17:01:39 2020 +0000
# Node ID d80b6cbd9059bff853b474e4ffb320d65a8a7544
# Parent  f107563b2848ce8619e997760e7f082e425930e0
Fix base_url() got an unexpected keyword argument 'secure'

diff --git a/cubicweb_registration/views.py b/cubicweb_registration/views.py
--- a/cubicweb_registration/views.py
+++ b/cubicweb_registration/views.py
@@ -112,7 +112,7 @@
         data.setdefault(qname('surname'), '')
         if not (data.get(qname('firstname')) or data.get(qname('surname'))):
             data[qname('firstname')] = data[qname('login')]
-        data.update({'base_url': self._cw.base_url(secure=True),
+        data.update({'base_url': self._cw.base_url(),
                      'url': activationurl})
         content = self._cw._(self.content) % data
         subject = self._cw._(self.subject) % data




More information about the cubicweb-devel mailing list