[Subversion] / PEAK / src / peak / util / SOX.py  

Log of /PEAK/src/peak/util/SOX.py

Parent Directory

No default branch
Bookmark a link to HEAD: (view) (download) (as text)


Revision 1847 - (view) (download) (as text) - [select for diffs]
Modified Mon Oct 11 19:36:04 2004 UTC (19 years, 6 months ago) by pje
File length: 19551 byte(s)
Diff to previous 1815
In order to support obtaining the line and column locations of problems in
XML files, we are now using Python 2.4's version of the 'pyexpat' module,
built as 'peak.util.pyexpat'.  Also, added "empty" option to negotiating
XML parser, so that tags which don't want any children can force an error
if a child element appears within them.

Revision 1815 - (view) (download) (as text) - [select for diffs]
Modified Mon Oct 4 04:02:54 2004 UTC (19 years, 6 months ago) by pje
File length: 18800 byte(s)
Diff to previous 1799
Initial, undocumented draft of a new "negotiating parser" for SOX, that
allows dynamic communication between XML elements and attributes, so that
we can parse sophisticated attribute-based languages like "PWT Reloaded",
or even ZPT.  The implementation is exhaustively tested, but the true test
will be when we hook it up to peak.config to do its lookups, in order to
implement ideas like these:

   http://www.eby-sarna.com/pipermail/peak/2004-June/001478.html
   http://www.eby-sarna.com/pipermail/peak/2004-August/001713.html

Revision 1799 - (view) (download) (as text) - [select for diffs]
Modified Thu Aug 19 21:25:11 2004 UTC (19 years, 8 months ago) by pje
File length: 12309 byte(s)
Diff to previous 1754
Change SOX to do a literal pass-through of any unrecognized text such as
&nbsp;, &raquo;, <!DOCTYPE> declarations, etc.  Fix typos in SOX and
peak.web.templates, and adjust tests since literal pass-thru now includes
top-level whitespace following the document-level tag.

Revision 1754 - (view) (download) (as text) - [select for diffs]
Modified Thu Jun 10 17:26:13 2004 UTC (19 years, 10 months ago) by pje
File length: 12689 byte(s)
Diff to previous 1753
Slight adjustments to 'SOX.IXMLBuilder' interface: give all methods an
'_xml_' prefix to avoid naming conflicts, and pass the parser as a
parameter to possibly support getting file/line/column info in the future.
(XXX There really should be an 'IXMLParser' added to define the parser
interface.)

Revision 1753 - (view) (download) (as text) - [select for diffs]
Modified Thu Jun 10 01:47:47 2004 UTC (19 years, 10 months ago) by pje
File length: 12657 byte(s)
Diff to previous 1117
Make SOX and p.w.t use the same expat-based XML processor, as a prelude to
adding XML configuration/serialization.  See 'CHANGES.txt' for impact
details.

Revision 1117 - (view) (download) (as text) - [select for diffs]
Modified Wed May 14 22:14:45 2003 UTC (20 years, 11 months ago) by pje
File length: 9503 byte(s)
Diff to previous 1104
Finished switchover to using protocols.advise() API to declare interfaces.

Revision 1104 - (view) (download) (as text) - [select for diffs]
Modified Sat May 10 18:23:04 2003 UTC (20 years, 11 months ago) by pje
File length: 9486 byte(s)
Diff to previous 1076
DEPRECATED use of '__implements__' and '__class_implements__' to declare
support for interfaces.  Use 'implements()', 'classProvides()',
'directlyProvides()', 'moduleProvides()', etc. to do this now; they are
now available automatically from 'peak.api'.

Please note that alpha 2 will *not* support the use of __implements__
attributes at all!  Start using the APIs for this *now*, even if you're
using alpha 1 (which at least supports the 'implements()' and
'classProvides()' functions).

Revision 1076 - (view) (download) (as text) - [select for diffs]
Modified Sat May 3 13:21:20 2003 UTC (20 years, 11 months ago) by pje
File length: 9479 byte(s)
Diff to previous 976
Normalized whitespace.

Revision 976 - (view) (download) (as text) - [select for diffs]
Modified Thu Apr 10 19:30:58 2003 UTC (21 years ago) by pje
File length: 9487 byte(s)
Diff to previous 973
PEAK-Zope namegeddon, phase 1.  Routed all imports of Interface and
Persistence through 'peak.interface' and 'peak.persistence'.  Future phases
will replace the bundled Interface and Persistence packages with the latest
and greatest from Zope X3, updating the plugpoint modules appropriately.
Also, this arrangement will let us experiment with a PEP 246 implementation
as part of 'peak.interface', and prepare for the coming "interface
declarations" of Zope X3.

Revision 973 - (view) (download) (as text) - [select for diffs]
Modified Thu Apr 10 01:17:06 2003 UTC (21 years ago) by pje
File length: 9482 byte(s)
Diff to previous 969
Added 'IndentedXML' class that writes nicely formatted XML.

Revision 969 - (view) (download) (as text) - [select for diffs]
Modified Sun Apr 6 01:55:12 2003 UTC (21 years ago) by pje
File length: 8319 byte(s)
Diff to previous 967
Streamlined SOX namespace support for better performance in the common
case; revised XMI reading to load namespace data.

Revision 967 - (view) (download) (as text) - [select for diffs]
Modified Sun Apr 6 01:08:50 2003 UTC (21 years ago) by pje
File length: 8309 byte(s)
Diff to previous 570
Added XML namespace support to SOX; this is needed for writing XMI 1.1 and
higher versions, at least to verify the correct namespace prefix for output
tags.

Revision 570 - (view) (download) (as text) - [select for diffs]
Modified Thu Oct 17 20:42:51 2002 UTC (21 years, 6 months ago) by pje
File length: 5052 byte(s)
Diff to previous 333
Fixes to use latest Zope 3 Interface API.

Revision 333 - (view) (download) (as text) - [select for diffs]
Modified Sat Feb 16 03:14:46 2002 UTC (22 years, 2 months ago) by pje
File length: 5042 byte(s)
Diff to previous 308
Pre-release documentation and cleanup sweep, part 4!  Cleaned up the Utils
directory, added docstrings, and also removed the forced load of the TW.SEF
package when you import from TW.API.  (It's been replaced with a lazy
import.)  This sonofagun just might ship this weekend.

Revision 308 - (view) (download) (as text) - [select for diffs]
Added Sat Jan 19 23:38:47 2002 UTC (22 years, 3 months ago) by pje
File length: 4137 byte(s)
'Utils' Package Created

 Created new 'Utils' package by splitting 'TW.Utilities' into seperate
 modules and moving 'TW.SOX' to 'TW.Utils.SOX'.  From here on out, the
 'Utils' package will be for modules which:

  * Do not rely on any non-Utils TransWarp modules (but may rely on
    outside packages such as kjBuckets)

  * Are not needed by "consumers" of TransWarp APIs in order to use
    non-Utils TW modules

 In other words, 'TW.Utils' is for utility modules needed by TransWarp,
 but which may also be useful outside of TransWarp.  'TW.SOX' was moved
 to 'TW.Utils.SOX' since it fits this description.  'TW.Callbacks',
 however, is staying put because in the future some TransWarp APIs may
 require parameters which implement 'ICallback'.

 Both 'TW.Callbacks' and 'TW.Utils.SOX' are useful outside of the
 TransWarp package itself.  The difference is that 'TW.Utils.SOX' is
 never needed by a caller in order to use TransWarp's APIs, but
 'TW.Callbacks' might be.

 Some additional packaging changes will be coming; see the TransWarp
 mailing list for details.


Other Changes

 While doing the package re-org, I also cleaned up a few minor nits
 caused by the previous requirement for compatibility with Python
 1.5.2, and did some prep for type/class unification in Python 2.2.
 Last, but not least, I stomped all the remaining uses of the 'string'
 module and replaced them with string method calls.  I'm not positive,
 but this appears to have sped things up just a teensy bit.

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

  Diffs between and
  Type of Diff should be a

Sort log by:

cvs-admin@eby-sarna.com

Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help