Changeset 51:c5d3aabbf61b in documentViewer
- Timestamp:
- Jan 11, 2007, 8:27:17 PM (18 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
documentViewer.py
r50 r51 101 101 102 102 security.declareProtected('View','index_html') 103 def index_html(self,mode,url,viewMode=" images",start=None,pn=1):103 def index_html(self,mode,url,viewMode="auto",start=None,pn=1): 104 104 ''' 105 105 view it 106 @param mode: defines which type of document is behind url 106 @param mode: defines which type of document is behind url (text,images or auto) 107 107 @param url: url which contains display information 108 108 @param viewMode: if images display images, if text display text, default is images … … 122 122 pageinfo = self.getPageinfo(start=start,current=pn,docinfo=docinfo) 123 123 pt = getattr(self.template, 'viewer_main') 124 125 if viewMode=="auto": # automodus gewaehlt 126 if docinfo.get("textURL",'') and self.textViewerUrl: #texturl gesetzt und textViewer konfiguriert 127 viewMode="text" 128 else: 129 viewMode="images" 130 124 131 return pt(docinfo=docinfo,pageinfo=pageinfo,viewMode=viewMode) 125 132 … … 419 426 zLOG.LOG("documentViewer (getdocinfo)", zLOG.INFO,"mode: %s, url: %s"%(mode,url)) 420 427 # look for cached docinfo in session 421 # XXXX Sesion abgeschaltet 422 if self.REQUEST.SESSION.has_key('docinfo_XX'): 428 if self.REQUEST.SESSION.has_key('docinfo'): 423 429 docinfo = self.REQUEST.SESSION['docinfo'] 424 430 # check if its still current
Note: See TracChangeset
for help on using the changeset viewer.