17
17
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20
from loggerhead.controllers import TemplatedBranchView
23
class AtomUI (TemplatedBranchView):
25
template_path = 'loggerhead.templates.atom'
27
def get_values(self, h, args, kw, headers):
29
pagesize = int(20)#self._branch.config.get('pagesize', '20'))
31
revid_list = h.get_file_view(h.last_revid, None)
32
entries = list(h.get_changes(list(revid_list)[:pagesize]))
34
headers['Content-Type'] = 'application/atom+xml'
37
'updated': entries[0].date.isoformat() + 'Z',
22
from loggerhead import util
25
class AtomUI (object):
27
def __init__(self, branch):
32
@turbogears.expose(template='loggerhead.templates.atom', format="xml", content_type="application/atom+xml")
33
def default(self, *args):
34
h = self._branch.get_history()
38
pagesize = int(self._branch.config.get('pagesize', '20'))
40
revid_list = h.get_file_view(h.last_revid, None)
41
entries = list(h.get_changes(list(revid_list)[:pagesize]))
44
'branch': self._branch,
48
'updated': entries[0].date.isoformat() + 'Z',