Skip to content

Posts with <!-- more --> cannot be pushed to wordpress #2

@lincolnthree

Description

@lincolnthree

When dealing with posts that have "more text" - such as: https://github.com/ocpsoft/ocpsoft.org/blob/master/2012/03/secure-your-applications-url-based-attacks-are-real-and-dangerous

It is possible to pull down new changes, but not possible to push new ones. I believe this has something to do with the parsing of the saved file, and the position of the ".mt_text_more" (and related) attributes:

Error follows:

     $ python wp.py push
     Traceback (most recent call last):
       File "wp.py", line 261, in <module>
         xml.edit_post(p.id(), p.as_dict())
       File "wp.py", line 40, in edit_post
         def edit_post(self, post_id, post): return self.xrpc.metaWeblog.editPost(post_id, self.user, self.password,          post, True)
       File "/usr/lib/python2.6/xmlrpclib.py", line 1199, in __call__
         return self.__send(self.__name, args)
       File "/usr/lib/python2.6/xmlrpclib.py", line 1489, in __request
         verbose=self.__verbose
       File "/usr/lib/python2.6/xmlrpclib.py", line 1253, in request
         return self._parse_response(h.getfile(), sock)
       File "/usr/lib/python2.6/xmlrpclib.py", line 1392, in _parse_response
         return u.close()
       File "/usr/lib/python2.6/xmlrpclib.py", line 838, in close
         raise Fault(**self._stack[0])
     xmlrpclib.Fault: <Fault 404: 'Invalid post ID.'>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions