--- ECHO_content/VLPExtension.py 2004/10/13 14:55:15 1.29
+++ ECHO_content/VLPExtension.py 2004/10/14 09:48:50 1.30
@@ -577,10 +577,11 @@ class VLP_resource(ECHO_resource):
return """
first"""
else:
- return """
+ ws=self.REQUEST.get('ws','1')
+ return """
first
- """%(self.REQUEST['URL']+"?pn=1")
+ """%(self.REQUEST['URL']+"?pn=1&ws=%s"%ws)
def lastPage(self,url=None):
"""showlink to the first image"""
@@ -592,10 +593,11 @@ class VLP_resource(ECHO_resource):
return """
last"""
else:
- return """
-
last
+ ws=self.REQUEST.get('ws','1')
+ return """
+
last
- """%(self.REQUEST['URL']+"?pn="+str(ln))
+ """%(self.REQUEST['URL']+"?pn="+str(ln)+"&ws="+ws)
def prevPage(self,url=None):
"""showlink to the first image"""
@@ -606,10 +608,11 @@ class VLP_resource(ECHO_resource):
return """
prev"""
else:
- return """
+ ws=self.REQUEST.get('ws','1')
+ return """
prev
- """%(self.REQUEST['URL']+"?pn="+str(nn))
+ """%(self.REQUEST['URL']+"?pn="+str(nn)+"&ws="+ws)
def nextPage(self,url=None):
"""showlink to the first image"""
@@ -622,10 +625,11 @@ class VLP_resource(ECHO_resource):
return """
next"""
else:
- return """
+ ws=self.REQUEST.get('ws','1')
+ return """
next
- """%(self.REQUEST['URL']+"?pn="+str(nn))
+ """%(self.REQUEST['URL']+"?pn="+str(nn)+"&ws="+ws)
def readIndexFile(self,url=None):