[Zope-CVS] CVS: Products/Zelenium - CHANGES.txt:1.9 version.txt:1.6 zuite.py:1.4

Tres Seaver tseaver at zope.com
Tue Apr 26 18:49:08 EDT 2005


Update of /cvs-repository/Products/Zelenium
In directory cvs.zope.org:/tmp/cvs-serv32723

Modified Files:
	CHANGES.txt version.txt zuite.py 
Log Message:
 - Capture additional request info in 'postResults'.


=== Products/Zelenium/CHANGES.txt 1.8 => 1.9 ===
--- Products/Zelenium/CHANGES.txt:1.8	Mon Apr 25 21:56:53 2005
+++ Products/Zelenium/CHANGES.txt	Tue Apr 26 18:49:08 2005
@@ -1,5 +1,10 @@
 Zelenium Product Changelog
 
+  After Zelenium-0.3
+
+    - Captured additional request parameters in 'postResults' (user agent,
+      HTTP host, remote address).
+
   Zelenium-0.3 (2005/04/25)
 
     - CVS tag:  'Zelenium-0_3'


=== Products/Zelenium/version.txt 1.5 => 1.6 ===
--- Products/Zelenium/version.txt:1.5	Mon Apr 25 21:56:53 2005
+++ Products/Zelenium/version.txt	Tue Apr 26 18:49:08 2005
@@ -1 +1 @@
-Zelenium-0.3
+Zelenium-0.3+


=== Products/Zelenium/zuite.py 1.3 => 1.4 ===
--- Products/Zelenium/zuite.py:1.3	Mon Apr 25 21:56:19 2005
+++ Products/Zelenium/zuite.py	Tue Apr 26 18:49:08 2005
@@ -96,6 +96,25 @@
   <td align="right" style="color: orange"
       tal:content="context/commands_with_errors">20</td>
  </tr>
+
+ <tr>
+  <td>User agent</td>
+  <td align="right" style="color: black"
+      tal:content="context/user_agent">lynx/2.8</td>
+ </tr>
+
+ <tr>
+  <td>Remote address</td>
+  <td align="right" style="color: black"
+      tal:content="context/remote_addr">127.0.0.1</td>
+ </tr>
+
+ <tr>
+  <td>HTTP Host</td>
+  <td align="right" style="color: black"
+      tal:content="context/http_host">localhost</td>
+ </tr>
+
 </table>
  
 <div style="padding-top: 10px;"
@@ -196,6 +215,7 @@
         self._setObject( result_id, Folder( 'result_id' ) )
         result = self._getOb( result_id )
         rfg = REQUEST.form.get
+        reg = REQUEST.environ.get
 
         result._setProperty( 'completed'
                            , completed
@@ -235,6 +255,21 @@
         result._setProperty( 'commands_with_errors'
                            , int( rfg( 'numCommandErrors', 0 ) )
                            , 'int'
+                           )
+
+        result._setProperty( 'user_agent'
+                           , reg( 'HTTP_USER_AGENT', 'unknown' )
+                           , 'string'
+                           )
+
+        result._setProperty( 'remote_addr'
+                           , reg( 'REMOTE_ADDR', 'unknown' )
+                           , 'string'
+                           )
+
+        result._setProperty( 'http_host'
+                           , reg( 'HTTP_HOST', 'unknown' )
+                           , 'string'
                            )
 
         result._setObject( 'index_html'



More information about the Zope-CVS mailing list