|
|
| version 1.9, 2004/02/05 10:29:56 | version 1.10, 2004/02/05 20:31:42 |
|---|---|
| Line 20 class ZSQLExtendFolder(Persistent, Impli | Line 20 class ZSQLExtendFolder(Persistent, Impli |
| def actualPath(self,url=None): | def actualPath(self,url=None): |
| """path""" | """path""" |
| if self.REQUEST['HTTP_X_FORWARDED_SERVER']=='': | |
| host=self.REQUEST['HTTP_HOST'] | |
| else: | |
| host=self.REQUEST['HTTP_X_FORWARDED_SERVER'] | |
| if not url: | if not url: |
| return "http://"+self.REQUEST['HTTP_X_FORWARDED_SERVER']+self.REQUEST['PATH_TRANSLATED'] | return "http://"+host+self.REQUEST['PATH_TRANSLATED'] |
| else: | else: |
| temp=self.REQUEST[url].split("/") | temp=self.REQUEST[url].split("/") |
| temp[2]=self.REQUEST['HTTP_X_FORWARDED_SERVER'] | temp[2]=host |
| return string.join(temp,"/") | return string.join(temp,"/") |
| def getRequest(self): | def getRequest(self): |
| Line 169 class ZSQLExtendFolder(Persistent, Impli | Line 174 class ZSQLExtendFolder(Persistent, Impli |
| self.search(var=queryString) | self.search(var=queryString) |
| return self.REQUEST.RESPONSE.redirect(format) | return self.REQUEST.RESPONSE.redirect(format) |
| def ZSQLFind(self,qs="",select="*",storename=None): | def ZSQLFind(self,qs="",select="oid,*",storename=None): |
| """Find""" | """Find""" |
| Line 264 class ZSQLExtendFolder(Persistent, Impli | Line 269 class ZSQLExtendFolder(Persistent, Impli |
| rangeStart=0 | rangeStart=0 |
| if not select: | if not select: |
| select="*" | select="oid,*" |
| #print "Q",nostore,qs | #print "Q",nostore,qs |
| #check for op in the case of inline search | #check for op in the case of inline search |