def post_structure(entry, site):
 author = entry.authors.all()[0]
 return {'title': entry.title, 'description': six.text_type(entry.html_content), 'link': ('%s://%s%s' % (PROTOCOL, site.domain, entry.get_absolute_url())), 'permaLink': ('%s://%s%s' % (PROTOCOL, site.domain, entry.get_absolute_url())), 'categories': [cat.title for cat in entry.categories.all()], 'dateCreated': DateTime(entry.creation_date.isoformat()), 'postid': entry.pk, 'userid': author.get_username(), 'mt_excerpt': entry.excerpt, 'mt_allow_comments': int(entry.comment_enabled), 'mt_allow_pings': (int(entry.pingback_enabled) or int(entry.trackback_enabled)), 'mt_keywords': entry.tags, 'wp_author': author.get_username(), 'wp_author_id': author.pk, 'wp_author_display_name': author.__str__(), 'wp_password': entry.password, 'wp_slug': entry.slug, 'sticky': entry.featured}

def post_structure ( entry , site ) : author = entry . authors . all ( ) [ 0 ] return { 'title' : entry . title , 'description' : six . text_type ( entry . html_content ) , 'link' : ( '%s://%s%s' % ( PROTOCOL , site . domain , entry . get_absolute_url ( ) ) ) , 'permaLink' : ( '%s://%s%s' % ( PROTOCOL , site . domain , entry . get_absolute_url ( ) ) ) , 'categories' : [ cat . title for cat in entry . categories . all ( ) ] , 'dateCreated' : DateTime ( entry . creation_date . isoformat ( ) ) , 'postid' : entry . pk , 'userid' : author . get_username ( ) , 'mt_excerpt' : entry . excerpt , 'mt_allow_comments' : int ( entry . comment_enabled ) , 'mt_allow_pings' : ( int ( entry . pingback_enabled ) or int ( entry . trackback_enabled ) ) , 'mt_keywords' : entry . tags , 'wp_author' : author . get_username ( ) , 'wp_author_id' : author . pk , 'wp_author_display_name' : author . __str__ ( ) , 'wp_password' : entry . password , 'wp_slug' : entry . slug , 'sticky' : entry . featured }
a post structure with extensions .