[Zope-CVS] CVS: Packages/Moztop/doc - INSTALL.txt:1.7

Sidnei da Silva sidnei@x3ng.com.br
Tue, 11 Mar 2003 14:30:44 -0500


Update of /cvs-repository/Packages/Moztop/doc
In directory cvs.zope.org:/tmp/cvs-serv3570/doc

Modified Files:
	INSTALL.txt 
Log Message:
Adding note about Experimental PUT Support

=== Packages/Moztop/doc/INSTALL.txt 1.6 => 1.7 ===
--- Packages/Moztop/doc/INSTALL.txt:1.6	Wed Jan 15 10:37:57 2003
+++ Packages/Moztop/doc/INSTALL.txt	Tue Mar 11 14:30:41 2003
@@ -3,7 +3,8 @@
 
 Important: Currently the nightly builds are required to run the IDE!
 
-USER
+USER:
+=====
 
   1. Run 'make'. This creates a moztop.xpi file.
 
@@ -45,9 +46,8 @@
      and chose 'Moztop' in the 'Tools' menu.
 
 
-
-
-DEVELOPER
+DEVELOPER:
+==========
 
   1. Execute step 1 through 5 of the user instructions.
 
@@ -60,4 +60,32 @@
 
 Note: If you Data.fs is empty (i.e. has no Content Objects in it) you will see
       an empty tree. In order to get a nice tree, simply add a couple of
-      Folders via the HTML GUI and you will see them in the Moztop Explorer.
+      Folders via the HTML GUI and you will see them in the Moztop 
+
+EXPERIMENTAL PUT SUPPORT:
+=========================
+
+  To try out content creation based on header sniffing on Zope 3 you must do this:
+
+  1. Make sure both your Zope3 and Moztop checkouts are up to date. 
+
+  2. Edit zope/app/http/configure.zcml and comment out this:
+
+  <view
+       for="zope.app.interfaces.http.INullResource"
+       name="PUT"
+       type="zope.publisher.interfaces.http.IHTTPPresentation"
+       factory=".put.NullPUT"
+       permission="zope.Public"
+       allowed_attributes="PUT"
+   />
+
+   3. Edit idesupport/configure.zcml and uncomment out this:   <include package=".http" />
+
+   4. Make sure your zope/app/services/adapter.py has this on queryService(), around line 132:
+
+      return adapters.queryAdapter(object, interface, default, name)
+
+   Now, if you send a PUT request with a header 'X-Zope-Type-Name' set to 'PageTemplate' you will
+   be able to create a Zope Page Template on Zope 3.
+