Patch: Enable Unicode in ParsedXML
Hi, this is my first post to this list so I'm not sure this is proper way to submit a patch. If it is not, please direct me to the correct place. This patch enables Unicode characters in qualified names for XML documents stored with the ParsedXML product. Best regards, Patrick. pdecat@localhost /cygdrive/c/Program Files/Zope-2.7.2-0/Zope-Instance/Products/ParsedXML/DOM $ diff -c Core.py.orig Core.py *** Core.py.orig Tue Apr 27 16:06:20 2004 --- Core.py Thu Mar 24 12:14:26 2005 *************** *** 70,76 **** return None return 1 # Indicates "passed". else: ! _ok_qualified_name = sre.compile('[a-zA-Z_:][\w\.\-_:]*\Z').match del sre _TupleType = type(()) --- 70,76 ---- return None return 1 # Indicates "passed". else: ! _ok_qualified_name = sre.compile('[a-zA-Z_:][\w\.\-_:]*\Z',sre.UNICODE).match del sre _TupleType = type(())
Perhaps I should have submitted it to the Zope Issue Collector? On Thu, 24 Mar 2005 12:27:57 +0100, Patrick DECAT <pdecat@gmail.com> wrote:
Hi,
this is my first post to this list so I'm not sure this is proper way to submit a patch. If it is not, please direct me to the correct place.
This patch enables Unicode characters in qualified names for XML documents stored with the ParsedXML product.
Best regards, Patrick.
pdecat@localhost /cygdrive/c/Program Files/Zope-2.7.2-0/Zope-Instance/Products/ParsedXML/DOM $ diff -c Core.py.orig Core.py *** Core.py.orig Tue Apr 27 16:06:20 2004 --- Core.py Thu Mar 24 12:14:26 2005 *************** *** 70,76 **** return None return 1 # Indicates "passed". else: ! _ok_qualified_name = sre.compile('[a-zA-Z_:][\w\.\-_:]*\Z').match del sre
_TupleType = type(()) --- 70,76 ---- return None return 1 # Indicates "passed". else: ! _ok_qualified_name = sre.compile('[a-zA-Z_:][\w\.\-_:]*\Z',sre.UNICODE).match del sre
_TupleType = type(())
Hi Patrick,
this is my first post to this list so I'm not sure this is proper way to submit a patch. If it is not, please direct me to the correct place.
This patch enables Unicode characters in qualified names for XML documents stored with the ParsedXML product.
First, thanks for the patch! Second, ParsedXML is not a core Zope product (normally you should have to install it separately). zope-dev is not exactly the right list to post for add-on products most of the time. Ususally there is a README.txt in such a separate product containing contact information for patches, etc. I just checked the ParsedXML README and the information there is quite out of date and contains a couple of stale links ... I will bug Martijn Faassen as he is the current maintainer ;-) And, no, the zope core collector is no good place for it. Cheers, Clemens
Hi Clemens, On Thu, 24 Mar 2005 12:42:04 +0100, Clemens Robbenhaar <robbenhaar@espresto.com> wrote:
First, thanks for the patch!
You're welcome.
Second, ParsedXML is not a core Zope product (normally you should have to install it separately). zope-dev is not exactly the right list to post for add-on products most of the time.
Indeed, but as I've located this product the Zope CVS (http://cvs.zope.org/Products/ParsedXML/), I thought it could
Ususally there is a README.txt in such a separate product containing contact information for patches, etc.
I admit I forgot to check the README.txt for this information.
I just checked the ParsedXML README and the information there is quite out of date and contains a couple of stale links ... I will bug Martijn Faassen as he is the current maintainer ;-)
Thanks. I also thought about bugging him directly, but I eventually decided to post in this mailing list as I noticed he is subscribed to it.
And, no, the zope core collector is no good place for it.
Ok.
Cheers, Clemens
Best regards, Patrick.
participants (2)
-
Clemens Robbenhaar -
Patrick DECAT