2
# Copyright (C) 2006 Robey Pointer <robey@lag.net>
4
# This program is free software; you can redistribute it and/or modify
5
# it under the terms of the GNU General Public License as published by
6
# the Free Software Foundation; either version 2 of the License, or
7
# (at your option) any later version.
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
# GNU General Public License for more details.
14
# You should have received a copy of the GNU General Public License
15
# along with this program; if not, write to the Free Software
16
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21
from loggerhead.history import History
22
from loggerhead import util
25
FOLDER = '/Users/robey/code/paramiko/paramiko'
26
BRANCH_NAME = 'paramiko-dev'
27
EXTERNAL_URL = 'http://localhost:8080'
29
class AtomUI (object):
31
@turbogears.expose(template='loggerhead.templates.atom', format="xml", content_type="application/atom+xml")
32
def default(self, *args):
33
h = History.from_folder(FOLDER)
38
revlist = h.get_short_revision_history_from(revid)
39
entries = list(h.get_changelist(list(revlist)[:20]))
42
'external_url': EXTERNAL_URL,
43
'branch_name': BRANCH_NAME,
47
'scan_url': '/changes',
48
'updated': entries[0].date.isoformat() + 'Z',