comparison rhodecode/controllers/api/__init__.py @ 3163:28571535dd61 beta

API methods create_repo, fork_repo, delete_repo, get_repo, get_repos can be executed by non-admin users ref #539
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 14 Jan 2013 00:38:24 +0100
parents c5169e445fb8
children e1baadec6217
comparison
equal deleted inserted replaced
3162:a0a8f38e8fb8 3163:28571535dd61
30 import types 30 import types
31 import urllib 31 import urllib
32 import traceback 32 import traceback
33 import time 33 import time
34 34
35 from rhodecode.lib.compat import izip_longest, json
36
37 from paste.response import replace_header 35 from paste.response import replace_header
38
39 from pylons.controllers import WSGIController 36 from pylons.controllers import WSGIController
40
41 37
42 from webob.exc import HTTPNotFound, HTTPForbidden, HTTPInternalServerError, \ 38 from webob.exc import HTTPNotFound, HTTPForbidden, HTTPInternalServerError, \
43 HTTPBadRequest, HTTPError 39 HTTPBadRequest, HTTPError
44 40
45 from rhodecode.model.db import User 41 from rhodecode.model.db import User
42 from rhodecode.model import meta
43 from rhodecode.lib.compat import izip_longest, json
46 from rhodecode.lib.auth import AuthUser 44 from rhodecode.lib.auth import AuthUser
47 from rhodecode.lib.base import _get_ip_addr, _get_access_path 45 from rhodecode.lib.base import _get_ip_addr, _get_access_path
48 from rhodecode.lib.utils2 import safe_unicode 46 from rhodecode.lib.utils2 import safe_unicode
49 47
50 log = logging.getLogger('JSONRPC') 48 log = logging.getLogger('JSONRPC')