[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/ZPTPage - ZPTPageFields.py:1.1.2.1 zptpage.zcml:1.1.2.2

Stephan Richter srichter@cbu.edu
Mon, 4 Mar 2002 00:55:14 -0500


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

Modified Files:
      Tag: srichter-OFS_Formulator-branch
	zptpage.zcml 
Added Files:
      Tag: srichter-OFS_Formulator-branch
	ZPTPageFields.py 
Log Message:
Here are some of the changes:

- XML-RPC View for Folders; methods are far from being complete, however
  it is the proof of concept; it works.

- Experimental XUL code in folder that shows a tree, a menu and the limit 
  view.

- File can now be viewed like an Image. Since it also sets the right 
  content type, it is even more useful for some of the development.

- ZPTPages are the last content object to be "formulatorized". Now they 
  also entered the new generation code.

ToDo:

- Make tests.

- Update interfaces.

- Get a client side XML-RPC client talk from the browser with Zope to save
  values. 

- Get a tutorial going, so that the ZMI sprinters and developers can make
  use of the technology



=== Added File Zope3/lib/python/Zope/App/OFS/ZPTPage/ZPTPageFields.py ===
##############################################################################
#
# Copyright (c) 2001, 2002 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
# 
##############################################################################
"""

$Id: ZPTPageFields.py,v 1.1.2.1 2002/03/04 05:54:43 srichter Exp $
"""

from Zope.App.Formulator.FieldRegistry import getField
from Zope.App.Formulator.ValidatorRegistry import getValidator


SourceField = getField('StringField')(
    id = 'source',
    title = 'ZPT Page Source',
    description = 'Page Template Source Code',
    default = ''
    )


=== Zope3/lib/python/Zope/App/OFS/ZPTPage/zptpage.zcml 1.1.2.1 => 1.1.2.2 ===
     permission_id="Zope.View" />
 
+  <include package="Zope.App.OFS.ZPTPage.Views" 
+           file="views.zcml" />
+
 
 </zopeConfigure>