(blogid)
return [{
        'categoryId': category.id,
        'categoryName': category.name,
        'categoryDescription': category.seodesc,
        'description': category.seodesc} for category in categories]
获取目录列表
获取目录列表
获取目录列表
def metaWeblog_getCategories(blogid):
    """获取目录列表"""

    categories = Category.query.all()

    return [{
        'categoryId': category.id,
        'categoryName': category.name,
        'categoryDescription': category.seodesc,
        'description': category.seodesc} for category in categories]
def metaWeblog_getCategories ( blogid ) : categories = Category . query . all ( ) return [ { 'categoryId' : category . id , 'categoryName' : category . name , 'categoryDescription' : category . seodesc , 'description' : category . seodesc } for category in categories ]