--- ECHO_content/ECHO_collection.py 2012/01/16 18:57:50 1.310.2.3 +++ ECHO_content/ECHO_collection.py 2012/01/17 18:39:07 1.310.2.4 @@ -1532,8 +1532,8 @@ class ECHO_collection(CatalogAware, Fold def area_img(self): """area image""" - bt = BrowserCheck(self) - if bt.isIE or bt.isN4: + bt = browserType(self) + if bt['isIE'] or bt['isN4']: return sendFile(self, 'images/red.gif', 'image/gif') else: return sendFile(self, 'images/reda.png', 'image/png') @@ -1906,9 +1906,11 @@ class ECHO_root(Folder,Persistent,Implic def getECHORoot(self): return self - - + def getBrowserType(self): + """returns browserType object""" + return browserType(self) + def mod_re_sub(self,pattern,replace,string): """re.sub aus mod re zur Verfuegung stellen""" return re.sub(pattern,replace,string)