[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Content/ZPTPage/Views/VFS - ZPTPageAdd.py:1.3

Stephan Richter srichter@cbu.edu
Mon, 23 Dec 2002 03:16:07 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Content/ZPTPage/Views/VFS
In directory cvs.zope.org:/tmp/cvs-serv26132/Zope/App/OFS/Content/ZPTPage/Views/VFS

Modified Files:
	ZPTPageAdd.py 
Log Message:
Implemented VFS views for the Local Service Manager. You can now traverse
into it up to Packages. 

Since Jim did not tell me what he wanted to do in a Package, I did not 
add much there, so that all Services are shown as directories now. The 
only binding I implemented was for the ZPTTemplate, which works fine so
that you can add ZPTs via VFS now. I could imagine doing the same for 
Module, but other than that Package is rather boring from a VFS point of
view.

Of course we could do some "magic" and display a text (file content) 
representation of the various services, but I do not know how useful this 
would be.


=== Zope3/lib/python/Zope/App/OFS/Content/ZPTPage/Views/VFS/ZPTPageAdd.py 1.2 => 1.3 ===
--- Zope3/lib/python/Zope/App/OFS/Content/ZPTPage/Views/VFS/ZPTPageAdd.py:1.2	Sat Dec 21 10:32:53 2002
+++ Zope3/lib/python/Zope/App/OFS/Content/ZPTPage/Views/VFS/ZPTPageAdd.py	Mon Dec 23 03:15:37 2002
@@ -35,7 +35,7 @@
             instream.seek(start)
         except:
             pass
-        content.setSource(instream.read())
+        content.setSource(unicode(instream.read()))
         
         publish(self.context, ObjectCreatedEvent(content))
         return self.context.add(content)