Commit 16350f8a authored by Jonathan Loriette's avatar Jonathan Loriette

add getZoom function used by PlanningBox


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3359 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5854669d
......@@ -302,6 +302,17 @@ class Selection(Acquisition.Implicit, Traversable, Persistent):
self.report_path = default
return self.report_path
security.declarePublic('getZoom')
def getZoom(self):
try:
current_zoom=self.params['zoom']
if current_zoom != None:
return self.params['zoom']
else:
return 1
except:
return 1
security.declarePublic('getReportList')
def getReportList(self):
if self.report_list is None:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment