Logo Search packages:      
Sourcecode: pythoncard version File versions  Download package

def blogger::deletePost (   postID,
  username,
  password,
  publish = 0,
  serverURL = None 
)

Delete an existing message in your blog

Returns: 1

Arguments:
- postID: ID of post to edit
- username: your weblog username
- password: your weblog password
- publish (optional): 0 = delete but do not publish (default)
                      1 = delete and publish
- serverURL: URL of remote server (optional, defaults to constants.xmlrpcServer)

Example:
>>> postID = blogger.newPost(my_blog_ID, "my_blogger_username", "my_blogger_password, "First post!", 1)
>>> blogger.deletePost(postID, "my_blogger_username", "my_blogger_password, 1)

Blogger notes:
- Posts are limited to 7200 characters by the Blogger server.
- If you want to publish, you must set up your blog to remember your
  FTP username and password.  You must do this through the web interface
  at blogger.com; there is currently no way to do it through this API.

LiveJournal notes:
- Post IDs (item IDs) are not guaranteed to be unique across all of a
  user's journals, so the default journal is always used.  There is
  currently no way of deleting entries on a secondary journal.  See
  http://www.tswoam.co.uk/index.php?n_go=14
  for details.

Definition at line 288 of file blogger.py.

00288                                                                      :
    """Delete an existing message in your blog
    
    Returns: 1
    
    Arguments:
    - postID: ID of post to edit
    - username: your weblog username
    - password: your weblog password
    - publish (optional): 0 = delete but do not publish (default)
                          1 = delete and publish
    - serverURL: URL of remote server (optional, defaults to constants.xmlrpcServer)
    
    Example:
    >>> postID = blogger.newPost(my_blog_ID, "my_blogger_username", "my_blogger_password, "First post!", 1)
    >>> blogger.deletePost(postID, "my_blogger_username", "my_blogger_password, 1)
    
    Blogger notes:
    - Posts are limited to 7200 characters by the Blogger server.
    - If you want to publish, you must set up your blog to remember your
      FTP username and password.  You must do this through the web interface
      at blogger.com; there is currently no way to do it through this API.
    
    LiveJournal notes:
    - Post IDs (item IDs) are not guaranteed to be unique across all of a
      user's journals, so the default journal is always used.  There is
      currently no way of deleting entries on a secondary journal.  See
      http://www.tswoam.co.uk/index.php?n_go=14
      for details.
    """
    server = xmlrpclib.Server(serverURL or constants.xmlrpcServer, constants.transport)
    response = server.blogger.deletePost(constants.applicationKey,
        str(postID),
        str(username),
        str(password),
        publish and xmlrpclib.True or xmlrpclib.False)
    return response == xmlrpclib.True

def getTemplate(blogID, username, password, templateType="main", serverURL=None):


Generated by  Doxygen 1.6.0   Back to index