'Format a calendar entry'

@staticmethod
def post_layout(post):

    title = post['cms_post.body']
    record_id = post['cms_post_module.record']
    if record_id:
        title = A(title, _href=URL(c=str(post['cms_post_module.module']), f=str(post['cms_post_module.resource']), args=record_id), _target='_blank')
    location = post['cms_post.location_id']
    return DIV(title, BR(), location)
