--- zogiLib/zogiLib.py 2006/06/15 16:44:00 1.63 +++ zogiLib/zogiLib.py 2006/07/13 20:42:46 1.65 @@ -18,7 +18,7 @@ import string import urllib import xml.dom.minidom -ZOGIVERSION = "0.10.2b ROC 15.6.2006" +ZOGIVERSION = "0.10.3b ROC 13.7.2006" def cropf(f): """returns a float with reduced precision""" @@ -389,7 +389,7 @@ class zogiLib(Folder): return True - def createScalerImg(self, requestString=None, bottom=0, side=0, width=500, height=500): + def createScalerImg(self, requestString=None, bottom=0, side=0, width=500, height=500, options=None): """generate Scaler IMG Tag""" self.checkQuery() bt = self.getBrowserType() @@ -400,6 +400,10 @@ class zogiLib(Folder): if not requestString: requestString = self.getAllDLParams() url = self.getScalerUrl(requestString=requestString) + # take insets from options if present + if options is not None: + side = options.get('side', side) + bottom = options.get('bottom', bottom) # construct bottom and side insets b_par = "" s_par = ""