@@ -7,26 +7,24 @@
:created_on: Apr 7, 2010
:author: marcink
:copyright: (C) 2009-2010 Marcin Kuzminski <marcin@python-works.com>
:license: GPLv3, see COPYING for more details.
"""
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; version 2
# of the License or (at your opinion) any later version of the license.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301, USA.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import logging
from pylons import request, tmpl_context as c
from rhodecode.lib.base import BaseController, render
from rhodecode.model.db import UserLog
from webhelpers.paginate import Page
:created_on: Nov 26, 2010
import formencode
import traceback
from formencode import htmlfill
:created_on: Apr 27, 2010
from pylons import request, session, tmpl_context as c, url
from pylons.controllers.util import abort, redirect
from pylons.i18n.translation import _
from rhodecode.lib import helpers as h
:copyright: (C) 2009-2011 Marcin Kuzminski <marcin@python-works.com>
from operator import itemgetter
:created_on: Jul 14, 2010
from pylons import request, session, tmpl_context as c, url, app_globals as g, \
config
:created_on: Apr 4, 2010
:created_on: Apr 21, 2010
from pylons import tmpl_context as c
from rhodecode.lib.auth import LoginRequired, HasRepoPermissionAnyDecorator
try:
import json
except ImportError:
:created_on: Apr 25, 2010
from pylons import tmpl_context as c, url, request, response
from pylons.controllers.util import redirect
:created_on: Dec 8, 2010
import os
import cgi
import paste.fileapp
from pylons import tmpl_context as c, request, config
:created_on: Apr 23, 2010
from pylons import url, response
import tempfile
import rhodecode.lib.helpers as h
from mercurial import archival
:created_on: Feb 18, 2010
from pylons import tmpl_context as c, request
:created_on: Nov 21, 2010
from pylons import request, response, session, tmpl_context as c, url
from paste.httpexceptions import HTTPInternalServerError, HTTPBadRequest
:created_on: Apr 22, 2010
:created_on: Aug 7, 2010
from pylons import request, response, config, session, tmpl_context as c, url
:created_on: Jun 30, 2010
:created_on: Apr 18, 2010
import calendar
from time import mktime
from datetime import datetime, timedelta, date
@@ -6,26 +6,24 @@
authentication and permission libraries
:copyright: (c) 2010 by marcink.
:license: LICENSE_NAME, see LICENSE_FILE for more details.
import random
from decorator import decorator
#!/usr/bin/env python
# encoding: utf-8
# ldap authentication lib
# Copyright (C) 2009-2011 Marcin Kuzminski <marcin@python-works.com>
Created on Nov 17, 2010
@author: marcink
# mercurial repository backup manager
# Copyright (C) 2009-2010 Marcin Kuzminski <marcin@python-works.com>
Created on Feb 28, 2010
Mercurial repositories backup manager
:created_on: Nov 27, 2010
import sys
import socket
@@ -8,26 +8,24 @@
:created_on: Oct 6, 2010
from celery.decorators import task
:created_on: Dec 11, 2010
from sqlalchemy import engine_from_config
from rhodecode.lib.utils import BasePasterCommand, Command, add_cache
@@ -7,20 +7,18 @@
# Custom Exceptions modules
Custom Exceptions modules
:created_on: Aug 6, 2010
import getpass
from mercurial.cmdutil import revrange
from mercurial.node import nullrev
# whoosh indexer daemon for rhodecode
Created on Jan 26, 2010
A deamon will read from task table and run tasks
:created_on: May 23, 2010
from rhodecode.lib import str2bool
class HttpsFixup(object):
def __init__(self, app, config):
self.application = app
# middleware to handle git api calls
Created on 2010-04-28
SimpleGit middleware for handling git protocol request (push/clone etc.)
It's implemented with basic auth function
# middleware to handle mercurial api calls
SimpleHG middleware for handling mercurial protocol request (push/clone etc.)
import datetime
@@ -25,26 +25,24 @@
engine = engine_from_config(config, 'sqlalchemy.')
init_model(engine)
# RUN YOUR CODE HERE
from rhodecode.model import meta
log = logging.getLogger(__name__)
def init_model(engine):
:created_on: Apr 08, 2010
from datetime import date
from sqlalchemy import *
from sqlalchemy.exc import DatabaseError
:created_on: Aug 20, 2010
:created_on: Jun 5, 2010
import shutil
from datetime import datetime
:created on Nov 17, 2010
from rhodecode.model import BaseModel
from rhodecode.model.caching_query import FromCache
from rhodecode.model.db import RhodeCodeSettings
:created_on: Apr 9, 2010
Status change: