Mercurial > kallithea
diff 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 |
line wrap: on
line diff
--- a/rhodecode/controllers/api/__init__.py Sun Jan 13 23:11:55 2013 +0100 +++ b/rhodecode/controllers/api/__init__.py Mon Jan 14 00:38:24 2013 +0100 @@ -32,17 +32,15 @@ import traceback import time -from rhodecode.lib.compat import izip_longest, json - from paste.response import replace_header - from pylons.controllers import WSGIController - from webob.exc import HTTPNotFound, HTTPForbidden, HTTPInternalServerError, \ HTTPBadRequest, HTTPError from rhodecode.model.db import User +from rhodecode.model import meta +from rhodecode.lib.compat import izip_longest, json from rhodecode.lib.auth import AuthUser from rhodecode.lib.base import _get_ip_addr, _get_access_path from rhodecode.lib.utils2 import safe_unicode