comparison rhodecode/controllers/changelog.py @ 861:fd2ea6ceadc8 beta

updated docs on every controller
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 18 Dec 2010 16:55:28 +0100
parents 52da7cba88a6
children 07a6e8c65526 a3b2b4b4e440
comparison
equal deleted inserted replaced
860:5f7731e3ab4d 861:fd2ea6ceadc8
1 #!/usr/bin/env python 1 # -*- coding: utf-8 -*-
2 # encoding: utf-8 2 """
3 # changelog controller for pylons 3 rhodecode.controllers.changelog
4 # Copyright (C) 2009-2010 Marcin Kuzminski <marcin@python-works.com> 4 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5 # 5
6 changelog controller for rhodecode
7
8 :created_on: Apr 21, 2010
9 :author: marcink
10 :copyright: (C) 2009-2010 Marcin Kuzminski <marcin@python-works.com>
11 :license: GPLv3, see COPYING for more details.
12 """
6 # This program is free software; you can redistribute it and/or 13 # This program is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU General Public License 14 # modify it under the terms of the GNU General Public License
8 # as published by the Free Software Foundation; version 2 15 # as published by the Free Software Foundation; version 2
9 # of the License or (at your opinion) any later version of the license. 16 # of the License or (at your opinion) any later version of the license.
10 # 17 #
15 # 22 #
16 # You should have received a copy of the GNU General Public License 23 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software 24 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 25 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19 # MA 02110-1301, USA. 26 # MA 02110-1301, USA.
20 """ 27
21 Created on April 21, 2010 28 import logging
22 changelog controller for pylons
23 @author: marcink
24 """
25 29
26 try: 30 try:
27 import json 31 import json
28 except ImportError: 32 except ImportError:
29 #python 2.5 compatibility 33 #python 2.5 compatibility
30 import simplejson as json 34 import simplejson as json
35
31 from mercurial.graphmod import colored, CHANGESET, revisions as graph_rev 36 from mercurial.graphmod import colored, CHANGESET, revisions as graph_rev
32 from pylons import request, session, tmpl_context as c 37 from pylons import request, session, tmpl_context as c
38
33 from rhodecode.lib.auth import LoginRequired, HasRepoPermissionAnyDecorator 39 from rhodecode.lib.auth import LoginRequired, HasRepoPermissionAnyDecorator
34 from rhodecode.lib.base import BaseController, render 40 from rhodecode.lib.base import BaseController, render
35 from rhodecode.model.scm import ScmModel 41 from rhodecode.model.scm import ScmModel
42
36 from webhelpers.paginate import Page 43 from webhelpers.paginate import Page
37 import logging 44
38 log = logging.getLogger(__name__) 45 log = logging.getLogger(__name__)
39 46
40 class ChangelogController(BaseController): 47 class ChangelogController(BaseController):
41 48
42 @LoginRequired() 49 @LoginRequired()