[Checkins] SVN: zf.zscp/trunk/src/zf/zscp/doc/views.py added missing file

Daniel Meier daniel.meier at perse.ch
Mon Apr 10 13:01:51 EDT 2006


Log message for revision 66799:
  added missing file
  

Changed:
  A   zf.zscp/trunk/src/zf/zscp/doc/views.py

-=-
Added: zf.zscp/trunk/src/zf/zscp/doc/views.py
===================================================================
--- zf.zscp/trunk/src/zf/zscp/doc/views.py	2006-04-10 16:59:59 UTC (rev 66798)
+++ zf.zscp/trunk/src/zf/zscp/doc/views.py	2006-04-10 17:01:51 UTC (rev 66799)
@@ -0,0 +1,46 @@
+##############################################################################
+#
+# Copyright (c) 2005 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""Certification
+
+$Id$
+"""
+__docformat__ = "reStructuredText"
+
+from zope.app.session.interfaces import ISession
+from zope.interface import implements
+from zope.publisher.interfaces.browser import IBrowserPublisher
+
+
+
+class MyPageView(object):
+    """view implementation for SeleniumRegistry ."""
+    
+    implements(IBrowserPublisher)
+    
+    def __init__(self, context, request):
+        
+        self.context = context
+        self.request = request
+        self.session = ISession(request)['page']
+        
+
+    def getPageCount(self):
+        
+        if 'count' not in self.session:
+            self.session['count'] = 0
+        
+        self.session['count'] += 1
+
+        return self.session['count']
+        
\ No newline at end of file


Property changes on: zf.zscp/trunk/src/zf/zscp/doc/views.py
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native



More information about the Checkins mailing list