At 02:14 PM 7/6/2005 -0700, Morgen Sagen wrote:
With the recent changes to the namespace names (from URL to Python
package), I have found the following to work, when defining my
"personal" parcel containing IMAP/WebDAV accounts:

FYI, the old version also works with the following patch, which I can't yet check in due to SVN issues:

Index: application/Parcel.py
===================================================================
--- application/Parcel.py       (revision 5862)
+++ application/Parcel.py       (working copy)
@@ -296,11 +296,11 @@
             """ A SAX2 handler for parsing namespace information """

             def startElementNS(self, (uri, local), qname, attrs):
-                if local == "namespace" and uri == CORE:
+                if local == "namespace" and uri in (CORE,NS_ROOT+'/core'):
                     if attrs.has_key((None, 'value')):
                         value = attrs.getValue((None, 'value'))
                         self.namespace = value
-                if local == "namespaceMap" and uri == CORE:
+                if local == "namespaceMap" and uri in (CORE,NS_ROOT+'/core'):
                     if attrs.has_key((None, 'key')):
                         key = attrs.getValue((None, 'key'))
                         if attrs.has_key((None, 'value')):

But updating all your parcels to use the new namespace format and get rid of <namespace> is a good idea. I'll soon be adding explicit warnings and/or errors for use of <namespace> and non-"parcel:" XML namespaces -- as soon as the 15 remaining test parcels have been updated to not use these features either.

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Open Source Applications Foundation "Dev" mailing list
http://lists.osafoundation.org/mailman/listinfo/dev

Reply via email to