Re:a little proposal, diff attached

darryl <[email protected]> Thu, 06 Nov 2003 13:25:57 -0600
Newsgroups gmane.comp.web.syncato.general
Message-ID <[email protected]>
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
WeblogClient.diff (text/plain, 892 B)
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