Mercurial > kallithea
comparison rhodecode/model/api_key.py @ 4186:7e5f8c12a3fc kallithea-2.2.5-rebrand
First step in two-part process to rename directories to kallithea.
This first step is to change all references in the files where they refer
to the old directory name.
author | Bradley M. Kuhn <bkuhn@sfconservancy.org> |
---|---|
date | Wed, 02 Jul 2014 19:04:28 -0400 |
parents | ffd45b185016 |
children |
comparison
equal
deleted
inserted
replaced
4185:aaa7c3331186 | 4186:7e5f8c12a3fc |
---|---|
10 # GNU General Public License for more details. | 10 # GNU General Public License for more details. |
11 # | 11 # |
12 # You should have received a copy of the GNU General Public License | 12 # You should have received a copy of the GNU General Public License |
13 # along with this program. If not, see <http://www.gnu.org/licenses/>. | 13 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
14 """ | 14 """ |
15 rhodecode.model.api_key | 15 kallithea.model.api_key |
16 ~~~~~~~~~~~~~~~~~~~~~~~ | 16 ~~~~~~~~~~~~~~~~~~~~~~~ |
17 | 17 |
18 api key model for RhodeCode | 18 api key model for RhodeCode |
19 | 19 |
20 :created_on: Sep 8, 2013 | 20 :created_on: Sep 8, 2013 |
27 import time | 27 import time |
28 import logging | 28 import logging |
29 import traceback | 29 import traceback |
30 from sqlalchemy import or_ | 30 from sqlalchemy import or_ |
31 | 31 |
32 from rhodecode.lib.utils2 import generate_api_key | 32 from kallithea.lib.utils2 import generate_api_key |
33 from rhodecode.model import BaseModel | 33 from kallithea.model import BaseModel |
34 from rhodecode.model.db import UserApiKeys | 34 from kallithea.model.db import UserApiKeys |
35 from rhodecode.model.meta import Session | 35 from kallithea.model.meta import Session |
36 | 36 |
37 log = logging.getLogger(__name__) | 37 log = logging.getLogger(__name__) |
38 | 38 |
39 | 39 |
40 class ApiKeyModel(BaseModel): | 40 class ApiKeyModel(BaseModel): |