Re: [Zope-dev] XPath and Aquisition Incompatible?

2000-06-02 Thread Chimezie Thomas-Ogbuji

Josh Zeidner wrote:
 
 hi,
 
   I was just looking over the Wiki on Zope XML, and came across the current
 notes on XPath.  I tend to think that XPath( which is a relative
 discripition of a tree traversal ), and Aquisition( which implies quite a
 bit based on where it gets executed )- may not be exactly compatible.  Has
 there been any discussion on this?
 

No, but there should be and I'll put it as a section under Martin's
DevelopmentStrategy page



 -Josh Z
 
 
 Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
 
 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )

-- 
Chimezie Thomas-Ogbuji
Consultant
Fourthought Inc.
(303) 583 9900 ext 104
[EMAIL PROTECTED]

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] ZDOM alpha release 2

2000-05-30 Thread Chimezie Thomas-Ogbuji

See release notes for changes (installation process simplified w/
release of 4DOM/4XSLT/4XPATH):

-- 
Chimezie Thomas-Ogbuji
Consultant
Fourthought Inc.
(303) 583 9900 ext 104
[EMAIL PROTECTED]

ZDOM is the result of a collaborative venture by Digital Creations and
Fourthought Inc. to integrate the W3C Document Object Model interface with
Zope, allowing effortless and familiar traversal of a Zope heirarchy.  
The current alpha release is based on Fourthought's 4DOM , which is one
component of Fourthought's 4Suite.
 
Fourthought provides custom technological solutions based on open
technologies.  4Suite is a powerful set of Python tools developed by
Fourthought for Web-based applications in areas such as Intranets,
E-Commerce and knowledge-management.  Elements of 4Suite have been adopted
as core XML technologies in Zope and in the Python XML distribution
 
The necessary files (which are all available on our ftp server:
ftp.fourthought.com) are
 
ftp://ftp.fourthought.com/pub/mirrors/python4linux/redhat/i386/python-xml-nodom-0.5.4-1.i386.rpm
(Py-XML w/out DOM)

ftp://ftp.fourthought.com/pub/mirrors/python4linux/redhat/i386/4DOM-0.10.0-1.noarch.rpm
 
(4DOM core)

ftp://ftp.fourthought.com/pub/4Zope/ZDOM-dist.tgz
(ZDOM)
 
ftp://ftp.fourthought.com/pub/4Zope/Zope-ZDOM-Patch
(patch file for Zope 2.1.6) OR

http://www.zope.org/Members/anthony/patches/4ZDOM-vs-CVS-0512.patch
(patch file for CVS/alpha 2.2 Zope) 

Documentation:
 
ftp://ftp.fourthought.com/pub/4Zope/INSTALL.txt
(the installation instructions)
 
ftp://ftp.fourthought.com/pub/4Zope/Readme.txt
(short description of ZDOM)
 
ftp://ftp.fourthought.com/pub/4Zope/Release.txt
(release notes)   

links:

Fourthought: http://fourthought.com
4Suite: http://fourthought.com/4Suite/
DOM 2 Spec: http://www.w3.org/TR/2000/CR-DOM-Level-2-2307/
Zope http://www.zope.org
 
contact:
[EMAIL PROTECTED]
 



Installing ZDOM
---

  This document describes installing ZDOM on Unix.

Important Notes

  ZDOM REQUIRES ZOPE AND PYTHON 1.5.2!
  Depending on which Zope version you wish to add ZDOM to, there
  are two patches to download

1) ftp://fourthought.com/pub/4Zope/Zope-ZDOM-Patch
 (patches Zope 2.1.6)
2) http://www.zope.org/Members/anthony/patches/4ZDOM-vs-CVS-0512.patch
 (Anthony Baxter's patch which works on the CVS source tree as of 5/16)


ftp://ftp.fourthought.com/pub/mirrors/python4linux/redhat/i386/4DOM-0.10.0-1.noarch.rpm
 
(4DOM core)

ftp://ftp.fourthought.com/pub/4Zope/ZDOM-dist.tgz
(ZDOM)
 
ftp://ftp.fourthought.com/pub/4Zope/Zope-ZDOM-Patch
(patch file for Zope 2.1.6) OR

http://www.zope.org/Members/anthony/patches/4ZDOM-vs-CVS-0512.patch
(patch file for CVS/alpha 2.2 Zope) 


Installing

  First download these files from our FTP server:

/pub/mirrors/python4linux/redhat/i386/python-xml-nodom-0.5.4-1.i386.rpm
/pub/mirrors/python4linux/redhat/i386/4DOM-0.10.0-1.noarch.rpm 
/pub/4Zope/ZDOM-dist.tgz

/pub/4Zope/Zope-ZDOM-Patch OR
http://www.zope.org/Members/anthony/patches/4ZDOM-vs-CVS-0512.patch

  Install the rpms and decompress ZDOM-dist.tgz somewherer in your PYTHONPATH

  Install and build Zope 2.1.6 if not already done.
  This is required for the components to work.

  The following will install the patches to Zope objects
  to allow manipulation of Zope object via the DOM
  interface:

(the Zope2.1.6 patch assumes that the Zope src files reside in a 'Zope'
directory so a symbolic link is necessary)

ln -s [Zope install dir] Zope
cd (parent directory of Zope install dir)   -- if necessary
patch -p0  (location of dowloaded files)/Zope-ZDOM-Patch OR 
4ZDOM-vs-CVS-0512.patch

  Then add '(zope install dir)/lib/python' to your PYTHONPATH.




RELEASE NOTES
-
5/30/00

changed setAttributeNodeNS to check for aq_base and set to None if it doesn't
exist (since _setProperty expects aquisition to be set up -- but might not
be necessarily so since an element can be created and attributes can be
added WITHOUT it having a parent yet)

redirected computed attributes to instance methods so DOM interfaces can
be overode

added check for aq_base in setAttributeNodeNS (sets to None if it doesnt exist)

5/10/00

ZDOM alpha supports to complete DOM Level 2 Specification
(http://www.w3.org/TR/DOM-Level-2/)

ZDOM maps the DOM interface to Zope, like so:

childNodes -   objectValues()
mappable subset of DOM 2 Interface -   attributes -   propdict()
parentNode -   self.aq_parent

Default implmentation of both objectValues() and propdict()
are provided on SImpleItem.Item for Zope Objects that do not
implement these interfaces. 

All Zope objects support the DOM Level 2 spec through the inheritence
of SimpleItem.Item from Element.

All objects (except as noted below) created by the use of the DOM
interface (i.e., NodeLists, NamedNodeMaps, childNodes for Attr) are
transient.

All Zope

[Zope-dev] XMLDocument beta release 3

2000-05-30 Thread Chimezie Thomas-Ogbuji

See release notes for changes (installation process simplified w/
release of 4DOM/4XSLT/4XPATH):

-- 
Chimezie Thomas-Ogbuji
Consultant
Fourthought Inc.
(303) 583 9900 ext 104
[EMAIL PROTECTED]

XMLDocument beta is a collection of Zope products and python tools that
integrate XML into Zope, above and beyond the current XMLDocument product.
Like ZDOM, it is the result of a collaborative venture by Digital Creations and
Fourthought Inc.

XmlDocument

This is a Zope product that wraps XML content for use in Zope.  In many
ways it behaves similarly to the original XMLDocument, except it only
creates a single Zope object upon import or creation.

XMLImporter

This python module allows users to externally import XML content into
the Zope database in a 'controlled' manner.  The user has full range
of control over import parameters.

XSLT Method

This is a Zope product that wraps an XSLT stylesheet for use in Zope.
Like a DTML method, it can be invoked on a ClobXmlDocument instance
and return the resulting XSLT transformation.

Fourthought provides custom technological solutions based on open
technologies.  4Suite is a powerful set of Python tools developed by
Fourthought for Web-based applications in areas such as Intranets,
E-Commerce and knowledge-management.  Elements of 4Suite have been adopted
as core XML technologies in Zope and in the Python XML distribution


links:

Fourthought: http://fourthought.com
4Suite: http://fourthought.com/4Suite/
DOM 2 Spec: http://www.w3.org/TR/2000/CR-DOM-Level-2-2307/
Zope http://www.zope.org
 
contact:
[EMAIL PROTECTED]
 



Installing XMLDocument beta
---

  This document describes installing XMLDocument beta on Unix.

Important Notes

  XMLDocument requires 4DOM which is covered by the ZDOM
  installation. Simply installing ZDOM should resolve this dependency

  XMLDocument also requires 4XPath and 4XSLT

  You can download the rpms from here:

  
ftp://ftp.fourthought.com/pub/mirrors/python4linux/redhat/i386/4XPath-0.9.0-1.i386.rpm
  ftp://ftp.fourthought.com/pub/mirrors/python4linux/redhat/i386/4XSLT-0.9.0-1.i386.rpm
  

Installing

  Download these files from our FTP server (ftp.fourthought.com):

/pub/4Zope/XMLDocument/XMLDocument-beta.tgz
/pub/4Zope/XMLDocument/XMLImporter-beta.tgz

  Installing XMLDocument and XSLTMethod:

decompress XMLDocument-beta.tgz to your Zope directory

  Installing Demonstration:

Import the  testfolder.zexp file in $Zopeinstalldir$/Extensions.
Point your browser to where you imported testfolder in the zope heirarchy
and follow the directions.

NOTE:  The demonstration cyclicaly creates and destroys a ZDOM
heirarchy in testfolder/, so if you stop it at mid point it may break
if you try to restart it (if it's broken run the reset DTML Method:
which simply removes folder1, folder2, and ZDOMtester)

  Installing XMLImporter:

decompress XMLImporter-beta.tgz to an arbitrary directory.

make sure (Zope install directory)/lib/python is in your PYTHONPATH

* read the python files in test_suite for examples on how to use XMLImporter

  Assuming you've satisfied the dependencies, you should be done!

  questions? email: [EMAIL PROTECTED]



RELEASE NOTES
5/30/2000

1) Solved __call__ problem, XSLTMethods can be invoked programatically
2) Added a default view for XMLDocuments that can return the XML as:
  syntax highlighted HTML
  raw XML
  plain text
  this can be specified by the output property
3) fixed the copy paste bug
4) added demonstration/example to package

5/16/2000
Moved ClobXMLDocument and XSLTMethod to seperate products
changed ClobXMLDocument to XMLDocument


___
XMLDocument beta supports the import and manipulation of XML files in
Zope through the use of XSLT.
See (XPath:
http://www.w3.org/TR/1999/REC-xpath-19991116, and XSLT:
http://www.w3.org/TR/1999/REC-xslt-19991116)

XMLImporter is currently used as a python based tool to input XML files
as Zope Objects.  The mapping functionality and XSLT transform are used to
manipulate the incomming XML stream into a set of Zope Objects.  The
transform is applied to the incoming XML to allow manipulation and
compression of the incomming XML.
See
http://216.164.72.7:7780/Wiki/Members/jim/ZDOM/InitialNotes
under the heading optimization.  The final set of objects created by XMLImporter
is defined by the mapping dictionary where keys are the tagNames to be
created, and the values are references to python classes.  A current limitation
of the system is that Zope must not be running during an import.

Clob XML Document is a Zope Object that represents a complete XML
document.  Interfaces are provided to edit the content of the document, and modify
how the document is displayed when viewed.  XSLTMethod is a Zope Object that applies 
an XSLT transform to an
object.  An XSLTMethod can be accessed as any other method of an object.  With the
ZDOM pakage installed, the XSLTMethod can

[Zope-dev] updated Wikki with __call__ issue

2000-05-18 Thread Chimezie Thomas-Ogbuji

I added another note on the Wikki regarding the XSLTMethod __call__
issue, more information on the ZPublisher is neccessesary for any
progress.  Is there any good documentation on the subject?
Here is the link to the issue:
http://216.164.72.7:7780/Wiki/Members/jim/ZDOM/Issue%20with%20__call__%20and%20Aquisition

-- 
Chimezie Thomas-Ogbuji
Junior Consultant
Fourthought Inc.
(303) 583 9900 ext 104
[EMAIL PROTECTED]

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )