patch from Richard Jones to save the query part in raw form. also added

* uri.c include/libxml/uri.h: patch from Richard Jones to save
  the query part in raw form.
* libxml2-python-api.xml: also added accessor for the python bindings
Daniel

svn path=/trunk/; revision=3608
diff --git a/ChangeLog b/ChangeLog
index 91e9abd..c079876 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
 
 	* uri.c include/libxml/uri.h: patch from Richard Jones to save
 	  the query part in raw form.
+	* libxml2-python-api.xml: also added accessor for the python bindings
 
 Wed Apr 25 15:57:32 CEST 2007 Daniel Veillard <daniel@veillard.com>
 
diff --git a/python/libxml2-python-api.xml b/python/libxml2-python-api.xml
index f77a237..42f661d 100644
--- a/python/libxml2-python-api.xml
+++ b/python/libxml2-python-api.xml
@@ -265,6 +265,17 @@
       <arg name='URI' type='xmlURIPtr' info='the URI'/>
       <arg name='query' type='char *' info='The URI query part'/>
     </function>
+    <function name='xmlURIGetQueryRaw' file='python_accessor'>
+      <info>Get the raw query part from an URI (i.e. the unescaped form).</info>
+      <return type='const char *' info="The URI query" field="query_raw"/>
+      <arg name='URI' type='xmlURIPtr' info='the URI'/>
+    </function>
+    <function name='xmlURISetQueryRaw' file='python_accessor'>
+      <info>Set the raw query part of an URI (i.e. the unescaped form).</info>
+      <return type='void'/>
+      <arg name='URI' type='xmlURIPtr' info='the URI'/>
+      <arg name='query_raw' type='char *' info='The raw URI query part'/>
+    </function>
     <function name='xmlURIGetFragment' file='python_accessor'>
       <info>Get the fragment part from an URI</info>
       <return type='const char *' info="The URI fragment" field="fragment"/>
diff --git a/python/libxml2class.txt b/python/libxml2class.txt
index 2625f6c..36e273d 100644
--- a/python/libxml2class.txt
+++ b/python/libxml2class.txt
@@ -945,6 +945,7 @@
     path()
     port()
     query()
+    queryRaw()
     scheme()
     server()
     setAuthority()
@@ -953,6 +954,7 @@
     setPath()
     setPort()
     setQuery()
+    setQueryRaw()
     setScheme()
     setServer()
     setUser()