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

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

Get HTML template for your blog

Returns: string
    specified HTML template

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

Definition at line 326 of file blogger.py.

00326                                                                                 :
    """Get HTML template for your blog
    
    Returns: string
        specified HTML template
    
    Arguments:
    - blogID: your blog's ID number
    - username: your blogger.com username
    - password: your blogger.com password
    - templateType: 'main' = get main page template (default)
                    'archiveIndex' = get archive index template
    - serverURL: URL of remote server (optional, defaults to constants.xmlrpcServer)
    """
    if templateType not in TemplateType.acceptableTypes:
        raise ValueError, "invalid template type: %s" % templateType
    server = xmlrpclib.Server(serverURL or constants.xmlrpcServer, constants.transport)
    htmlTemplate = server.blogger.getTemplate(constants.applicationKey,
        str(blogID),
        str(username),
        str(password),
        templateType)
    return htmlTemplate

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


Generated by  Doxygen 1.6.0   Back to index