[Zope3-checkins] SVN: Zope3/trunk/ split out fssync adapters for
zope.app.dtmlpage
Fred L. Drake, Jr.
fred at zope.com
Mon May 24 15:56:19 EDT 2004
Log message for revision 24943:
split out fssync adapters for zope.app.dtmlpage
-=-
Added: Zope3/trunk/package-includes/zope.app.dtmlpage.fssync-configure.zcml
===================================================================
--- Zope3/trunk/package-includes/zope.app.dtmlpage.fssync-configure.zcml 2004-05-24 19:38:54 UTC (rev 24942)
+++ Zope3/trunk/package-includes/zope.app.dtmlpage.fssync-configure.zcml 2004-05-24 19:56:19 UTC (rev 24943)
@@ -0,0 +1 @@
+<include package="zope.app.dtmlpage.fssync" />
Property changes on: Zope3/trunk/package-includes/zope.app.dtmlpage.fssync-configure.zcml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Modified: Zope3/trunk/src/zope/app/dtmlpage/configure.zcml
===================================================================
--- Zope3/trunk/src/zope/app/dtmlpage/configure.zcml 2004-05-24 19:38:54 UTC (rev 24942)
+++ Zope3/trunk/src/zope/app/dtmlpage/configure.zcml 2004-05-24 19:56:19 UTC (rev 24943)
@@ -46,12 +46,7 @@
permission="zope.ManageContent"
/>
- <fssync:adapter
- class=".dtmlpage.DTMLPage"
- factory=".fssync.DTMLPageAdapter"
- />
-
<!-- browser directives -->
<browser:page
Added: Zope3/trunk/src/zope/app/dtmlpage/fssync/DEPENDENCIES.cfg
===================================================================
--- Zope3/trunk/src/zope/app/dtmlpage/fssync/DEPENDENCIES.cfg 2004-05-24 19:38:54 UTC (rev 24942)
+++ Zope3/trunk/src/zope/app/dtmlpage/fssync/DEPENDENCIES.cfg 2004-05-24 19:56:19 UTC (rev 24943)
@@ -0,0 +1,2 @@
+zope.fssync
+zope.interface
Added: Zope3/trunk/src/zope/app/dtmlpage/fssync/SETUP.cfg
===================================================================
--- Zope3/trunk/src/zope/app/dtmlpage/fssync/SETUP.cfg 2004-05-24 19:38:54 UTC (rev 24942)
+++ Zope3/trunk/src/zope/app/dtmlpage/fssync/SETUP.cfg 2004-05-24 19:56:19 UTC (rev 24943)
@@ -0,0 +1,5 @@
+# Tell zpkg how to install the ZCML slugs.
+
+<data-files skel/etc/package-includes>
+ zope.app.dtmlpage.fssync-configure.zcml
+</data-files>
Added: Zope3/trunk/src/zope/app/dtmlpage/fssync/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/dtmlpage/fssync/__init__.py 2004-05-24 19:38:54 UTC (rev 24942)
+++ Zope3/trunk/src/zope/app/dtmlpage/fssync/__init__.py 2004-05-24 19:56:19 UTC (rev 24943)
@@ -0,0 +1 @@
+# This directory is a Python package.
Property changes on: Zope3/trunk/src/zope/app/dtmlpage/fssync/__init__.py
___________________________________________________________________
Name: svn:mime-type
+ text/x-python
Name: svn:eol-style
+ native
Copied: Zope3/trunk/src/zope/app/dtmlpage/fssync/adapter.py (from rev 24941, Zope3/trunk/src/zope/app/dtmlpage/fssync.py)
Added: Zope3/trunk/src/zope/app/dtmlpage/fssync/configure.zcml
===================================================================
--- Zope3/trunk/src/zope/app/dtmlpage/fssync/configure.zcml 2004-05-24 19:38:54 UTC (rev 24942)
+++ Zope3/trunk/src/zope/app/dtmlpage/fssync/configure.zcml 2004-05-24 19:56:19 UTC (rev 24943)
@@ -0,0 +1,12 @@
+<configure
+ xmlns='http://namespaces.zope.org/zope'
+ xmlns:fssync='http://namespaces.zope.org/fssync'
+ i18n_domain='zope'
+ >
+
+ <fssync:adapter
+ class="zope.app.dtmlpage.dtmlpage.DTMLPage"
+ factory=".adapter.DTMLPageAdapter"
+ />
+
+</configure>
Property changes on: Zope3/trunk/src/zope/app/dtmlpage/fssync/configure.zcml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Added: Zope3/trunk/src/zope/app/dtmlpage/fssync/zope.app.dtmlpage.fssync-configure.zcml
===================================================================
--- Zope3/trunk/src/zope/app/dtmlpage/fssync/zope.app.dtmlpage.fssync-configure.zcml 2004-05-24 19:38:54 UTC (rev 24942)
+++ Zope3/trunk/src/zope/app/dtmlpage/fssync/zope.app.dtmlpage.fssync-configure.zcml 2004-05-24 19:56:19 UTC (rev 24943)
@@ -0,0 +1 @@
+<include package="zope.app.dtmlpage.fssync" />
Property changes on: Zope3/trunk/src/zope/app/dtmlpage/fssync/zope.app.dtmlpage.fssync-configure.zcml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Deleted: Zope3/trunk/src/zope/app/dtmlpage/fssync.py
===================================================================
--- Zope3/trunk/src/zope/app/dtmlpage/fssync.py 2004-05-24 19:38:54 UTC (rev 24942)
+++ Zope3/trunk/src/zope/app/dtmlpage/fssync.py 2004-05-24 19:56:19 UTC (rev 24943)
@@ -1,30 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2004 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.
-#
-##############################################################################
-"""Filesystem synchronization support.
-
-$Id$
-"""
-
-from zope.interface import implements
-from zope.fssync.server.entryadapter import ObjectEntryAdapter
-from zope.fssync.server.interfaces import IObjectFile
-
-class DTMLPageAdapter(ObjectEntryAdapter):
- implements(IObjectFile)
-
- def getBody(self):
- return self.context.getSource()
-
- def setBody(self, data):
- self.context.setSource(data)
More information about the Zope3-Checkins
mailing list