Changed admin view name to "admin" instead of "admin.html"
authorThierry Florac <thierry.florac@onf.fr>
Tue, 11 Oct 2016 16:07:46 +0200
changeset 29 a456add728e3
parent 28 da8e5e36b223
child 30 6be392beb0a5
Changed admin view name to "admin" instead of "admin.html"
src/pyams_scheduler/zmi/scheduler.py
--- a/src/pyams_scheduler/zmi/scheduler.py	Thu Jun 02 16:11:51 2016 +0200
+++ b/src/pyams_scheduler/zmi/scheduler.py	Tue Oct 11 16:07:46 2016 +0200
@@ -69,7 +69,7 @@
     @property
     def url(self):
         site = get_parent(self.context, ISite)
-        return resource_url(site, self.request, 'admin.html#{0}'.format(self.view_name))
+        return resource_url(site, self.request, 'admin#{0}'.format(self.view_name))
 
 
 @viewlet_config(name='scheduler.menu', context=ISite, layer=IAdminLayer, manager=IControlPanelMenu,