Changed admin view name to "admin" instead of "admin.html"
authorThierry Florac <thierry.florac@onf.fr>
Tue, 11 Oct 2016 16:15:05 +0200
changeset 22 9f1ca1ad2a12
parent 21 c322ce75243c
child 23 9885b9c88b2e
Changed admin view name to "admin" instead of "admin.html"
src/pyams_thesaurus/zmi/thesaurus.py
--- a/src/pyams_thesaurus/zmi/thesaurus.py	Thu Oct 08 12:17:35 2015 +0200
+++ b/src/pyams_thesaurus/zmi/thesaurus.py	Tue Oct 11 16:15:05 2016 +0200
@@ -138,7 +138,7 @@
 
     def get_ajax_output(self, changes):
         return {'status': 'redirect',
-                'location': absolute_url(self.context, self.request, 'admin.html#thesaurus.html'),
+                'location': absolute_url(self.context, self.request, 'admin#thesaurus.html'),
                 'close_form': True}
 
 
@@ -151,7 +151,7 @@
 
     @property
     def url(self):
-        return resource_url(self.context, self.request, 'admin.html#{0}'.format(self.view_name))
+        return resource_url(self.context, self.request, 'admin#{0}'.format(self.view_name))
 
 
 @adapter_config(context=(IThesaurus, IAdminLayer, Interface), provides=IPageHeader)
@@ -161,7 +161,7 @@
     @property
     def back_url(self):
         site = get_parent(self.context, ISite)
-        return absolute_url(site, self.request, 'admin.html#thesaurus.html')
+        return absolute_url(site, self.request, 'admin#thesaurus.html')
 
     back_target = None
     icon_class = 'fa fa-fw fa-language'
@@ -413,7 +413,7 @@
         pass
 
     def nextURL(self):
-        return absolute_url(self.context, self.request, 'admin.html#terms.html')
+        return absolute_url(self.context, self.request, 'admin#terms.html')
 
 
 @view_config(name='import.json', context=IThesaurus, request_type=IPyAMSLayer,