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

def blogger::setTemplate (   blogID,
  username,
  password,
  text,
  templateType = "main",
  serverURL = None 
)

Set HTML template for your blog

Returns: 1

Arguments:
- blogID: your blog's ID number
- username: your blogger.com username
- password: your blogger.com password
- text: complete HTML text of template
- templateType: 'main' = set main page template (default)
                'archiveIndex' = set archive index template
- serverURL: URL of remote server (optional, defaults to constants.xmlrpcServer)

Notes:
- The given username must be marked as an administrator on the blog in order to
  set the template.  This is the default if you created the blog, but
  not the default if somebody else added you to a team blog.  Administrators
  can add other users to their blog and give them administrative access,
  but they need to do it through the web interface at blogger.com.

Definition at line 350 of file blogger.py.

00350                                                                                       :
    """Set HTML template for your blog
    
    Returns: 1
    
    Arguments:
    - blogID: your blog's ID number
    - username: your blogger.com username
    - password: your blogger.com password
    - text: complete HTML text of template
    - templateType: 'main' = set main page template (default)
                    'archiveIndex' = set archive index template
    - serverURL: URL of remote server (optional, defaults to constants.xmlrpcServer)
    
    Notes:
    - The given username must be marked as an administrator on the blog in order to
      set the template.  This is the default if you created the blog, but
      not the default if somebody else added you to a team blog.  Administrators
      can add other users to their blog and give them administrative access,
      but they need to do it through the web interface at blogger.com.
    """
    if templateType not in TemplateType.acceptableTypes:
        raise ValueError, "invalid template type: %s" % templateType
    server = xmlrpclib.Server(serverURL or constants.xmlrpcServer, constants.transport)
    server.blogger.setTemplate(constants.applicationKey,
        str(blogID),
        str(username),
        str(password),
        text,
        templateType)

if __name__ == "__main__":


Generated by  Doxygen 1.6.0   Back to index