changeset 234:0813585df9f4

*** empty log message ***
author abukhman
date Mon, 11 Oct 2010 15:40:37 +0200
parents 702ac82d8271
children f4ece44559e5
files documentViewer.py
diffstat 1 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/documentViewer.py	Mon Oct 11 15:30:49 2010 +0200
+++ b/documentViewer.py	Mon Oct 11 15:40:37 2010 +0200
@@ -51,7 +51,17 @@
     buf.close()
     return s
 
-        
+def getBrowserType(self):
+        """get browser type object"""
+        if self.REQUEST.SESSION.has_key('browserType'):
+            return self.REQUEST.SESSION['browserType']
+        else:
+            bt = browserCheck(self)
+            self.REQUEST.SESSION.set('browserType', bt)    
+            logging.debug("documentViewer (BROWSER TYPE) bt %s"%bt)                    
+            return bt
+
+       
 def getParentDir(path):
     """returns pathname shortened by one"""
     return '/'.join(path.split('/')[0:-1])