[Checkins] SVN: zope.testrecorder/trunk/ Move everything that belongs to the zope.testrecorder package into the

Philipp von Weitershausen philikon at philikon.de
Thu Jun 22 17:34:31 EDT 2006


Log message for revision 68793:
  Move everything that belongs to the zope.testrecorder package into the
  right directory (src/zope/testrecorder).
  

Changed:
  D   zope.testrecorder/trunk/SETUP.cfg
  D   zope.testrecorder/trunk/__init__.py
  D   zope.testrecorder/trunk/configure.zcml
  D   zope.testrecorder/trunk/html/
  A   zope.testrecorder/trunk/src/zope/testrecorder/
  A   zope.testrecorder/trunk/src/zope/testrecorder/SETUP.cfg
  A   zope.testrecorder/trunk/src/zope/testrecorder/__init__.py
  A   zope.testrecorder/trunk/src/zope/testrecorder/configure.zcml
  A   zope.testrecorder/trunk/src/zope/testrecorder/html/
  A   zope.testrecorder/trunk/src/zope/testrecorder/testrecorder.py
  A   zope.testrecorder/trunk/src/zope/testrecorder/www/
  A   zope.testrecorder/trunk/src/zope/testrecorder/zope.browsertestrecorder-configure.zcml
  D   zope.testrecorder/trunk/testrecorder.py
  D   zope.testrecorder/trunk/www/
  D   zope.testrecorder/trunk/zope.browsertestrecorder-configure.zcml

-=-
Deleted: zope.testrecorder/trunk/SETUP.cfg
===================================================================
--- zope.testrecorder/trunk/SETUP.cfg	2006-06-22 21:32:02 UTC (rev 68792)
+++ zope.testrecorder/trunk/SETUP.cfg	2006-06-22 21:34:30 UTC (rev 68793)
@@ -1,5 +0,0 @@
-# Tell zpkg how to install the ZCML slugs.
-
-<data-files zopeskel/etc/package-includes>
-  zope.browsertestrecorder-*.zcml
-</data-files>

Deleted: zope.testrecorder/trunk/__init__.py
===================================================================
--- zope.testrecorder/trunk/__init__.py	2006-06-22 21:32:02 UTC (rev 68792)
+++ zope.testrecorder/trunk/__init__.py	2006-06-22 21:34:30 UTC (rev 68793)
@@ -1,26 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2005 Zope Corporation and Contributors. All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.0 (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
-#
-##############################################################################
-
-
-def initialize(context):
-    """Intializer called when used as a Zope 2 product."""
-    import testrecorder
-    context.registerClass(
-        testrecorder.TestRecorder,
-        permission='View',
-        constructors=(testrecorder.addform,
-                      testrecorder.add),
-        icon='www/recorder.gif',
-    )
-
-

Deleted: zope.testrecorder/trunk/configure.zcml
===================================================================
--- zope.testrecorder/trunk/configure.zcml	2006-06-22 21:32:02 UTC (rev 68792)
+++ zope.testrecorder/trunk/configure.zcml	2006-06-22 21:34:30 UTC (rev 68793)
@@ -1,13 +0,0 @@
-<configure
-    xmlns="http://namespaces.zope.org/zope"
-    xmlns:browser="http://namespaces.zope.org/browser"
-    i18n_domain="zope"
-    >
-
-  <browser:resourceDirectory
-      name="recorder"
-      directory="html"
-      layer="default"
-      />
-
-</configure>

Copied: zope.testrecorder/trunk/src/zope/testrecorder/SETUP.cfg (from rev 68791, zope.testrecorder/trunk/SETUP.cfg)

Copied: zope.testrecorder/trunk/src/zope/testrecorder/__init__.py (from rev 68791, zope.testrecorder/trunk/__init__.py)

Copied: zope.testrecorder/trunk/src/zope/testrecorder/configure.zcml (from rev 68791, zope.testrecorder/trunk/configure.zcml)

Copied: zope.testrecorder/trunk/src/zope/testrecorder/html (from rev 68791, zope.testrecorder/trunk/html)

Copied: zope.testrecorder/trunk/src/zope/testrecorder/testrecorder.py (from rev 68791, zope.testrecorder/trunk/testrecorder.py)

Copied: zope.testrecorder/trunk/src/zope/testrecorder/www (from rev 68791, zope.testrecorder/trunk/www)

Copied: zope.testrecorder/trunk/src/zope/testrecorder/zope.browsertestrecorder-configure.zcml (from rev 68791, zope.testrecorder/trunk/zope.browsertestrecorder-configure.zcml)

Deleted: zope.testrecorder/trunk/testrecorder.py
===================================================================
--- zope.testrecorder/trunk/testrecorder.py	2006-06-22 21:32:02 UTC (rev 68792)
+++ zope.testrecorder/trunk/testrecorder.py	2006-06-22 21:34:30 UTC (rev 68793)
@@ -1,66 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2005 Zope Corporation and Contributors. All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.0 (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
-#
-##############################################################################
-
-import sys, os
-from Globals import InitializeClass
-from OFS.SimpleItem import SimpleItem
-from AccessControl import ClassSecurityInfo
-from Products.PageTemplates.PageTemplateFile import PageTemplateFile
-
-_www = os.path.join(os.path.dirname(__file__), 'www')
-html = os.path.join(os.path.dirname(__file__), 'html')
-view = 'View'
-
-
-class TestRecorder(SimpleItem):
-    """
-    Test recorder object for Zope 2. This primarily exists to provide for
-    traversal to the .js and .html files that make up the test recorder.
-    """
-    
-    security = ClassSecurityInfo()
-    meta_type = 'Test Recorder'
-
-    manage_options = (
-        {'label':'Info', 'action': 'manage_main'},
-        ) + SimpleItem.manage_options
-
-    security.declareProtected(view, 'manage_main')
-    manage_main = PageTemplateFile('main.pt', _www)
-
-    def __init__(self, id, title=''):
-        self.id = id
-        self.title = title
-
-    security.declareProtected(view, 'index_html')
-    def index_html(self, REQUEST):
-        REQUEST['RESPONSE'].redirect(self.absolute_url()+'/index.html')
-
-    dict = locals()
-    for name in os.listdir(html):
-        if name.endswith('.html') or name.endswith('.js'):
-            security.declareProtected(view, name)
-            dict[name] = PageTemplateFile(name, html)
-
-
-InitializeClass(TestRecorder)
-
-
-addform = PageTemplateFile('addform.pt', _www)
-
-def add(self, id, title='', RESPONSE=None):
-    """add method"""
-    obj = TestRecorder(id, title)
-    self._setObject(id, obj)
-    if RESPONSE is not None:
-        RESPONSE.redirect(self.absolute_url()+'/manage_main')

Deleted: zope.testrecorder/trunk/zope.browsertestrecorder-configure.zcml
===================================================================
--- zope.testrecorder/trunk/zope.browsertestrecorder-configure.zcml	2006-06-22 21:32:02 UTC (rev 68792)
+++ zope.testrecorder/trunk/zope.browsertestrecorder-configure.zcml	2006-06-22 21:34:30 UTC (rev 68793)
@@ -1 +0,0 @@
-<include package="zope.browsertestrecorder" />



More information about the Checkins mailing list