Re: Re:a little proposal, diff attached

Kimbro Staken <[email protected]> Thu, 6 Nov 2003 18:24:43 -0700
Newsgroups gmane.comp.web.syncato.general
Message-ID <[email protected]>
OK, I added the returns.

On Nov 6, 2003, at 12:25 PM, darryl wrote:

> darryl wrote:
>
>> Kimbro,
>>
>> I'm poking around again.
>>
>> Can we change WeblogClient to return results from the deletePost() 
>> and editPost() functions?
>>
>> Also i've been fixing the more broken parts of MetaWeblog.py to 
>> hopefully work more consistently with more clients.
>>
>> -darryl
>
>
> Index: WeblogClient.py
> ===================================================================
> --- WeblogClient.py	(revision 16)
> +++ WeblogClient.py	(working copy)
> @@ -87,6 +87,7 @@
>          postID = self.cleanPostID(postID)
>
>          result = self.runRequest("DELETE", postID)
> +        return result
>
>      def editPost(self, postID, title, body, categories):
>          postID = self.cleanPostID(postID)
> @@ -119,6 +120,7 @@
>              item.getRootElement().newChild(None, "category", 
> category.strip())
>
>          result = self.runRequest("PUT", postID, item.serialize())
> +        return result
>
>      def cleanPostID(self, postID):
>          stripHTTP = re.compile(r"http://.+?/", re.IGNORECASE)
> @@ -149,4 +151,4 @@
>
>          result = self.conn.getresponse()
>
> -        return result
> \ No newline at end of file
> +        return result
>
Kimbro Staken
Software, Consulting and Writing http://www.xmldatabases.org/
Apache Xindice native XML database http://xml.apache.org/xindice
XML:DB Initiative http://www.xmldb.org



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/