view src/__init__.py @ 879:2e0e9cf9efb4

blog (atom feed): fixed atom handling: - atom generation code moved from backend to Libervia - replaced hardcoded urls by urls based on request path - added xmpp: uri as alternate links - feed id was not unique (it was the node), now it is the quoted xmpp uri - atom:updated was using current time which is wrong, now take the more recent item "updated" value - link elements where missing attributes (e.g.: type) - added correct http(s) links for each items - microblog items (without title) now use an abstract of content as title - use 20 as max_items for atom feeds (may change in the future) - removed bad use of encode
author Goffi <goffi@goffi.org>
date Wed, 09 Mar 2016 17:33:00 +0100
parents 5cefc6ab302f
children
line wrap: on
line source

try:
    from common.constants import Const as C
except ImportError:
    pass # import doesn't work at this stage with pyjamas
else:
    __version__ = C.APP_VERSION