[Zope3-checkins] SVN: Zope3/branches/jim-adapter/src/zwiki/ Fix up zwiki after moving zope.app.filerepresentation to zope.filerepresentation.

Philipp von Weitershausen philikon at philikon.de
Wed Apr 12 17:03:40 EDT 2006


Log message for revision 66912:
  Fix up zwiki after moving zope.app.filerepresentation to zope.filerepresentation.
  

Changed:
  U   Zope3/branches/jim-adapter/src/zwiki/comment.py
  U   Zope3/branches/jim-adapter/src/zwiki/configure.zcml
  U   Zope3/branches/jim-adapter/src/zwiki/wikipage.py

-=-
Modified: Zope3/branches/jim-adapter/src/zwiki/comment.py
===================================================================
--- Zope3/branches/jim-adapter/src/zwiki/comment.py	2006-04-12 21:02:57 UTC (rev 66911)
+++ Zope3/branches/jim-adapter/src/zwiki/comment.py	2006-04-12 21:03:39 UTC (rev 66912)
@@ -23,7 +23,7 @@
 from zope.schema.vocabulary import getVocabularyRegistry
 from zope.dublincore.interfaces import ICMFDublinCore
 from zope.app.container.contained import Contained
-from zope.app.filerepresentation.interfaces import IReadFile, IWriteFile
+from zope.filerepresentation.interfaces import IReadFile, IWriteFile
 
 from zwiki.interfaces import IComment
 from zwiki.interfaces import IWikiPageContained
@@ -148,18 +148,18 @@
         self.context = context
 
     def read(self):
-        """See zope.app.filerepresentation.interfaces.IReadFile"""
+        """See zope.filerepresentation.interfaces.IReadFile"""
         text = 'Title: %s\n' %self.context.title
         text += 'Type: %s\n\n' %self.context.type
         text += self.context.source
         return text
 
     def size(self):
-        """See zope.app.filerepresentation.interfaces.IReadFile"""
+        """See zope.filerepresentation.interfaces.IReadFile"""
         return len(self.read())
 
     def write(self, data):
-        """See zope.app.filerepresentation.interfaces.IWriteFile"""
+        """See zope.filerepresentation.interfaces.IWriteFile"""
         if data.startswith('Title: '):
             title, data = data.split('\n', 1)
             self.context.title = unicode(title[7:])

Modified: Zope3/branches/jim-adapter/src/zwiki/configure.zcml
===================================================================
--- Zope3/branches/jim-adapter/src/zwiki/configure.zcml	2006-04-12 21:02:57 UTC (rev 66911)
+++ Zope3/branches/jim-adapter/src/zwiki/configure.zcml	2006-04-12 21:03:39 UTC (rev 66912)
@@ -206,14 +206,14 @@
 
   <adapter
      for=".interfaces.IComment"
-     provides="zope.app.filerepresentation.interfaces.IReadFile"
+     provides="zope.filerepresentation.interfaces.IReadFile"
      factory=".comment.CommentFile"
      permission="zwiki.ViewWikiPage"
      />
 
   <adapter
      for=".interfaces.IComment"
-     provides="zope.app.filerepresentation.interfaces.IWriteFile"
+     provides="zope.filerepresentation.interfaces.IWriteFile"
      factory=".comment.CommentFile"
      permission="zwiki.CommentWikiPage"
      />
@@ -238,21 +238,21 @@
   <!-- WikiPage FTP configurations -->
   <adapter
      for=".interfaces.IWikiPage"
-     provides="zope.app.filerepresentation.interfaces.IReadDirectory"
+     provides="zope.filerepresentation.interfaces.IReadDirectory"
      factory=".wikipage.Directory"
      permission="zwiki.ViewWikiPage"
      />
 
   <adapter 
      for=".interfaces.IWikiPage"
-     provides="zope.app.filerepresentation.interfaces.IWriteDirectory"
+     provides="zope.filerepresentation.interfaces.IWriteDirectory"
      factory=".wikipage.Directory"
      permission="zwiki.CommentWikiPage"
      />
 
   <adapter
       for=".interfaces.IWikiPage"
-      provides="zope.app.filerepresentation.interfaces.IFileFactory"
+      provides="zope.filerepresentation.interfaces.IFileFactory"
       factory="zwiki.comment.CommentFileFactory"
       permission="zope.ManageContent"
       />

Modified: Zope3/branches/jim-adapter/src/zwiki/wikipage.py
===================================================================
--- Zope3/branches/jim-adapter/src/zwiki/wikipage.py	2006-04-12 21:02:57 UTC (rev 66911)
+++ Zope3/branches/jim-adapter/src/zwiki/wikipage.py	2006-04-12 21:03:39 UTC (rev 66912)
@@ -27,14 +27,14 @@
 from zope.schema.vocabulary import getVocabularyRegistry
 from zope.annotation.interfaces import IAnnotations
 from zope.component.interfaces import ObjectEvent
+from zope.filerepresentation.interfaces import IReadFile
+from zope.filerepresentation.interfaces import IWriteFile
+from zope.filerepresentation.interfaces import IReadDirectory
+from zope.filerepresentation.interfaces import IWriteDirectory
 
 from zope.app import zapi
 from zope.app.container.btree import BTreeContainer
 from zope.app.container.contained import Contained
-from zope.app.filerepresentation.interfaces import IReadFile
-from zope.app.filerepresentation.interfaces import IWriteFile
-from zope.app.filerepresentation.interfaces import IReadDirectory
-from zope.app.filerepresentation.interfaces import IWriteDirectory
 from zope.app.container.interfaces import \
      IObjectAddedEvent, IObjectRemovedEvent
 from zope.app.mail.interfaces import IMailDelivery
@@ -270,17 +270,17 @@
         self.context = context
 
     def read(self):
-        """See zope.app.filerepresentation.interfaces.IReadFile"""
+        """See zope.filerepresentation.interfaces.IReadFile"""
         text = u'Source Type: %s\n\n' %self.context.type
         text += self.context.source 
         return text
 
     def size(self):
-        """See zope.app.filerepresentation.interfaces.IReadFile"""
+        """See zope.filerepresentation.interfaces.IReadFile"""
         return len(self.read())
 
     def write(self, data):
-        """See zope.app.filerepresentation.interfaces.IWriteFile"""
+        """See zope.filerepresentation.interfaces.IWriteFile"""
         if data.startswith('Type: '):
             type, data = data.split('\n\n', 1)
             type = type[6:]



More information about the Zope3-Checkins mailing list