--- zogiLib/zogiLib.py 2006/07/13 18:24:19 1.64 +++ zogiLib/zogiLib.py 2006/07/13 20:42:46 1.65 @@ -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 = ""