comparison rhodecode/model/changeset_status.py @ 2216:a2987fa580d9 codereview

dummy ChangesetStatus model
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 30 Apr 2012 16:07:08 +0200
parents
children 76947224bf27
comparison
equal deleted inserted replaced
2215:2c2bdaeca912 2216:a2987fa580d9
1 # -*- coding: utf-8 -*-
2 """
3 rhodecode.model.changeset_status
4 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5
6
7 :created_on: Apr 30, 2012
8 :author: marcink
9 :copyright: (C) 2011-2012 Marcin Kuzminski <marcin@python-works.com>
10 :license: GPLv3, see COPYING for more details.
11 """
12 # This program is free software: you can redistribute it and/or modify
13 # it under the terms of the GNU General Public License as published by
14 # the Free Software Foundation, either version 3 of the License, or
15 # (at your option) any later version.
16 #
17 # This program is distributed in the hope that it will be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 # GNU General Public License for more details.
21 #
22 # You should have received a copy of the GNU General Public License
23 # along with this program. If not, see <http://www.gnu.org/licenses/>.
24
25
26 import logging
27 import traceback
28
29 from pylons.i18n.translation import _
30
31 from rhodecode.lib.utils2 import safe_unicode
32 from rhodecode.lib import helpers as h
33 from rhodecode.model import BaseModel
34 from rhodecode.model.db import ChangesetStatus
35
36 log = logging.getLogger(__name__)
37
38
39 class ChangesetStatusModel(BaseModel):
40
41 def __get_changeset_status(self, changeset_status):
42 return self._get_instance(ChangesetStatus, changeset_status)
43
44 def get_status(self, repo, revision):
45 return 'status'