Registration removed logs
authorLoic Baron <loic.baron@lip6.fr>
Thu, 7 May 2015 15:32:50 +0000 (17:32 +0200)
committerLoic Baron <loic.baron@lip6.fr>
Thu, 7 May 2015 15:32:50 +0000 (17:32 +0200)
portal/registrationview.py
portal/templates/_authority_notListed.html [new file with mode: 0644]

index 61e56e4..47fcd05 100644 (file)
@@ -45,7 +45,6 @@ class RegistrationView (FreeAccessView, ThemeView):
         # REGISTRY ONLY TO BE REMOVED WITH MANIFOLD-V2
         authorities_query = Query.get('authority').select('name', 'authority_hrn')
         authorities = execute_admin_query(wsgi_request, authorities_query)
-        logger.info("RegistrationView authorities = {}".format(authorities))
         if authorities is not None:
             # Remove the root authority from the list
             matching = [s for s in authorities if "." in s['authority_hrn']]
@@ -73,7 +72,6 @@ class RegistrationView (FreeAccessView, ThemeView):
                 current_site = 'http://'
             current_site += wsgi_request.META['HTTP_HOST']
 
-
             logger.debug("############ BREAKPOINT 3 #################")
             post_email = wsgi_request.POST.get('email','').lower()
             salt = randint(1,100000)
diff --git a/portal/templates/_authority_notListed.html b/portal/templates/_authority_notListed.html
new file mode 100644 (file)
index 0000000..3b194b6
--- /dev/null
@@ -0,0 +1 @@
+<p>If your organization is not listed, <a href="/contact" >Contact us.</a></p>