Changeset - 3142616771cd
[Not reviewed]
default
1 4 0
Marcin Kuzminski - 16 years ago 2010-02-28 14:19:21

Removed default contact name
changed depracated import of helpers,
added manage repo funciton draft.
Template updates
removed colored logger
5 files changed with 13 insertions and 10 deletions:
0 comments (0 inline, 0 general)
hgwebdir.config
Show inline comments
 
@@ -5,13 +5,12 @@ changegroup = hg update >&2
 
[extensions]
 
hgext.highlight=
 
#hgk=
 

	
 
[web]
 
push_ssl = false
 
contact = develop@etelko.pl
 
allow_archive = gz zip bz2
 
allow_push = *
 
templates=/home/marcink/python_workspace/hg_app/pylons_app/templates/
 
style = monoblue_custom
 
pygments_style = trac
 
staticurl = /hg_static/
pylons_app/controllers/hg.py
Show inline comments
 
#!/usr/bin/python
 
# -*- coding: utf-8 -*-
 
import logging
 
from pylons_app.lib.base import BaseController, render
 
from pylons import c, g, session, h, request
 
from pylons import c, g, session, request
 
from pylons_app.lib import helpers as h
 
from mako.template import Template
 
from pprint import pprint
 
import os
 
from mercurial import ui, hg
 
from mercurial.error import RepoError
 
from ConfigParser import ConfigParser
 
@@ -28,12 +29,16 @@ class HgController(BaseController):
 
        template = Template("".join(response),
 
                            lookup = request.environ['pylons.pylons']\
 
                            .config['pylons.g'].mako_lookup)
 

	
 
        return template.render(g = g, c = c, session = session, h = h)
 

	
 

	
 
    def manage_hgrc(self):
 
        pass
 

	
 
    def add_repo(self, new_repo):
 
        c.staticurl = g.statics
 

	
 
        #extra check it can be add since it's the command
 
        if new_repo == 'add':
 
            c.msg = 'you basstard ! this repo is a command'
pylons_app/lib/colored_logger.py
Show inline comments
 
deleted file
pylons_app/templates/monoblue_custom/notfound.tmpl
Show inline comments
 
{header}
 
    <title>{repo|escape}: Mercurial repository not found</title>
 
    <link rel="alternate" type="application/atom+xml" href="{url}atom-log" title="Atom feed for {repo|escape}"/>
 
    <link rel="alternate" type="application/rss+xml" href="{url}rss-log" title="RSS feed for {repo|escape}"/>
 
</head>
 

	
 
<body>
 
<div id="container">
 
    <div class="page-header">
 
        <h1>Not found: {repo|escape}</h1>
 
@@ -12,20 +10,20 @@
 
        <div style="height: 50px">
 
        </div>
 
    </div>
 

	
 
    <h2 class="no-link no-border">Not Found</h2>
 
    <p class="normal">The specified repository "{repo|escape}" is unknown, sorry.</p>
 
    <p class="normal">Please go back to the <a href="{url}">main repository list page</a>.</p>
 

	
 
    <p class="normal"><a href="/add/{repo|escape}">Create "{repo|escape}" repository </a></p>
 
    <p class="normal">Go back to the <a href="{url}">main repository list page</a>.</p>
 
    <div class="page-footer">
 
        <p>Mercurial Repository: atom-log</p>
 
        <p>Mercurial Repository: {repo|escape}</p>
 
    </div>
 

	
 
    <div id="powered-by">
 
        <p><a href="http://mercurial.selenic.com/" title="Mercurial"><img src="/hg_static/hglogo.png" width=75 height=90 border=0 alt="mercurial"></a></p>
 
        <p><a href="http://mercurial.selenic.com/" title="Mercurial"><img src="{staticurl}hglogo.png" width=75 height=90 border=0 alt="mercurial"></a></p>
 

	
 
    </div>
 

	
 
    <div id="corner-top-left"></div>
 
    <div id="corner-top-right"></div>
 
    <div id="corner-bottom-left"></div>
pylons_app/templates/monoblue_custom/summary.tmpl
Show inline comments
 
@@ -24,13 +24,15 @@
 
            <li><a href="{url}graph/{node|short}{sessionvars%urlparameter}">graph</a></li>
 
            <li><a href="{url}tags{sessionvars%urlparameter}">tags</a></li>
 
            <li><a href="{url}branches{sessionvars%urlparameter}">branches</a></li>
 
            <li><a href="{url}file/{node|short}{sessionvars%urlparameter}">files</a></li>
 
        </ul>
 
    </div>
 

	
 
    <ul class="submenu">
 
        <li>edit hgrc</li>
 
    </ul>
 
    <h2 class="no-link no-border">Mercurial Repository Overview</h2>
 
    <dl class="overview">
 
        <dt>name</dt>
 
        <dd>{repo|escape}</dd>
 
        <dt>description</dt>
 
        <dd>{desc}</dd>
0 comments (0 inline, 0 general)