def category_structure(category, site):
 return {'description': category.title, 'htmlUrl': ('%s://%s%s' % (PROTOCOL, site.domain, category.get_absolute_url())), 'rssUrl': ('%s://%s%s' % (PROTOCOL, site.domain, reverse('zinnia:category_feed', args=[category.tree_path]))), 'categoryId': category.pk, 'parentId': ((category.parent and category.parent.pk) or 0), 'categoryDescription': category.description, 'categoryName': category.title}

def category_structure ( category , site ) : return { 'description' : category . title , 'htmlUrl' : ( '%s://%s%s' % ( PROTOCOL , site . domain , category . get_absolute_url ( ) ) ) , 'rssUrl' : ( '%s://%s%s' % ( PROTOCOL , site . domain , reverse ( 'zinnia:category_feed' , args = [ category . tree_path ] ) ) ) , 'categoryId' : category . pk , 'parentId' : ( ( category . parent and category . parent . pk ) or 0 ) , 'categoryDescription' : category . description , 'categoryName' : category . title }
a category structure .