Changeset - d8d471cfa093
[Not reviewed]
default
0 3 0
Marcin Kuzminski - 15 years ago 2010-06-30 22:47:19
marcin@python-works.com
Updated readme
3 files changed with 18 insertions and 7 deletions:
0 comments (0 inline, 0 general)
README.rst
Show inline comments
 
@@ -5,42 +5,53 @@ Pylons based replacement for hgwebdir
 
Fully customizable, with authentication, permissions. Based on vcs library.
 

	
 
**Overview**
 

	
 
- has it's own middleware to handle mercurial protocol request each request can 
 
  be logged and authenticated + threaded performance unlikely to hgweb
 
- full permissions per project read/write/admin access even on mercurial request
 
- mako templates let's you cusmotize look and feel of appplication.
 
- diffs annotations and source code all colored by pygments.
 
- mercurial branch graph
 
- admin interface for performing user/permission managments as well as repository
 
  managment
 
- backup scripts can do backup of whole app and send it over scp to desired location
 
- setup project descriptions and info inside built in db for easy, non 
 
  file-system operations
 
- added cache with invalidation on push/repo managment for high performance and
 
  always upto date data.
 
- rss /atom feed customizable
 
- future support for git
 
- based on pylons 1.0 / sqlalchemy 0.6
 

	
 
**Incoming**
 

	
 
- full permissions per project
 
- code review based on hg-review (when it's stable)
 
- git support (when vcs can handle it)
 
- other cools stuff that i can figure out
 

	
 
.. note::
 
   This software is still in beta mode. I don't guarantee that it'll work.
 
   
 

	
 
-------------
 
Installation
 
-------------
 
.. note::
 
   I recomend to install tip version of vcs while the app is in beta mode.
 
   
 
   
 
- create new virtualenv and activate it
 
- download hg app and run python setup.py install 
 
- goto build/ directory
 
- download hg app from default (not demo) branch from bitbucket and run 
 
  'python setup.py install' this will install all required dependencies needed
 
- goto pylons_app/lib and run python db_manage.py it should create all 
 
  needed tables and an admin account. 
 
  needed tables and an admin account. You can play with this file if you wish to
 
  use different db than sqlite 
 
- edit file repositories.config and change the [paths] where you keep your
 
  mercurial repositories, remember about permissions for accessing this dir by
 
  hg app.
 
- run paster serve development.ini 
 
  the app should be available at the 127.0.0.1:5000
 
- use admin account you created to login.   
 
\ No newline at end of file
 
- use admin account you created to login.
 
- default permissions on each repository is read, and owner is admin. So remember
 
  to update those.
 
     
 
\ No newline at end of file
pylons_app/model/hg_model.py
Show inline comments
 
#!/usr/bin/env python
 
# encoding: utf-8
 
# Model for hg app
 
# Copyright (C) 2009-2010 Marcin Kuzminski <marcin@python-works.com>
 
from sqlalchemy.orm import joinedload
 
 
 
# 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.
 
# 
 
@@ -28,12 +27,13 @@ Model for hg app
 
from beaker.cache import cache_region
 
from mercurial import ui
 
from mercurial.hgweb.hgwebdir_mod import findrepos
 
from vcs.exceptions import RepositoryError, VCSError
 
from pylons_app.model.meta import Session
 
from pylons_app.model.db import Repository
 
from sqlalchemy.orm import joinedload
 
import logging
 
import os
 
import sys
 
log = logging.getLogger(__name__)
 

	
 
try:
setup.py
Show inline comments
 
@@ -9,13 +9,13 @@ except ImportError:
 
setup(
 
    name='pylons_app',
 
    version=get_version(),
 
    description='',
 
    author='marcin kuzminski',
 
    author_email='marcin@python-works.com',
 
    url='',
 
    url='http://hg.python-works.com',
 
    install_requires=[
 
        "Pylons>=1.0.0",
 
        "SQLAlchemy>=0.6",
 
        "Mako>=0.3.2",
 
        "vcs>=0.1.2",
 
        "pygments>=1.3.0",
0 comments (0 inline, 0 general)