@xmlrpc_func(returns='struct[]', args=['string', 'string', 'string'])
def get_categories(blog_id, username, password):
 authenticate(username, password)
 site = Site.objects.get_current()
 return [category_structure(category, site) for category in Category.objects.all()]

@ xmlrpc_func ( returns = 'struct[]' , args = [ 'string' , 'string' , 'string' ] ) def get_categories ( blog_id , username , password ) : authenticate ( username , password ) site = Site . objects . get_current ( ) return [ category_structure ( category , site ) for category in Category . objects . all ( ) ]
return the published categories .