Mercurial > hg > documentViewer
comparison documentViewer.py @ 74:5c9837484085
marks
author | dwinter |
---|---|
date | Tue, 04 Nov 2008 21:36:51 +0100 |
parents | 0f534c12cc9e |
children | 9673218e155b |
comparison
equal
deleted
inserted
replaced
73:0f534c12cc9e | 74:5c9837484085 |
---|---|
137 viewMode="images" | 137 viewMode="images" |
138 | 138 |
139 return pt(docinfo=docinfo,pageinfo=pageinfo,viewMode=viewMode) | 139 return pt(docinfo=docinfo,pageinfo=pageinfo,viewMode=viewMode) |
140 | 140 |
141 security.declareProtected('View','index_html') | 141 security.declareProtected('View','index_html') |
142 def index_html(self,mode,url,viewMode="auto",start=None,pn=1): | 142 def index_html(self,mode,url,viewMode="auto",start=None,pn=1,mk=None): |
143 ''' | 143 ''' |
144 view it | 144 view it |
145 @param mode: defines how to access the document behind url | 145 @param mode: defines how to access the document behind url |
146 @param url: url which contains display information | 146 @param url: url which contains display information |
147 @param viewMode: if images display images, if text display text, default is images (text,images or auto) | 147 @param viewMode: if images display images, if text display text, default is images (text,images or auto) |
165 if docinfo.get("textURL",'') and self.textViewerUrl: #texturl gesetzt und textViewer konfiguriert | 165 if docinfo.get("textURL",'') and self.textViewerUrl: #texturl gesetzt und textViewer konfiguriert |
166 viewMode="text" | 166 viewMode="text" |
167 else: | 167 else: |
168 viewMode="images" | 168 viewMode="images" |
169 | 169 |
170 return pt(docinfo=docinfo,pageinfo=pageinfo,viewMode=viewMode) | 170 return pt(docinfo=docinfo,pageinfo=pageinfo,viewMode=viewMode,marks=self.generateMarks(mk)) |
171 | 171 |
172 | 172 def generateMarks(self,mk): |
173 ret="" | |
174 for m in mk: | |
175 ret+="mk=%s"%mk | |
176 return ret | |
177 | |
173 def getLink(self,param=None,val=None): | 178 def getLink(self,param=None,val=None): |
174 """link to documentviewer with parameter param set to val""" | 179 """link to documentviewer with parameter param set to val""" |
175 params=self.REQUEST.form.copy() | 180 params=self.REQUEST.form.copy() |
176 if param is not None: | 181 if param is not None: |
177 if val is None: | 182 if val is None: |