##// END OF EJS Templates
Added few options to configs,...
Marcin Kuzminski -
r86:e47d1db5 default
parent child Browse files
Show More
@@ -19,7 +19,15 b' debug = true'
19 #error_message = 'mercurial crash !'
19 #error_message = 'mercurial crash !'
20
20
21 [server:main]
21 [server:main]
22 ##nr of threads to spawn
22 threadpool_workers = 5
23 threadpool_workers = 5
24
25 ##max request before
26 threadpool_max_requests = 2
27
28 ##option to use threads of process
29 use_threadpool = true
30
23 use = egg:Paste#http
31 use = egg:Paste#http
24 host = 127.0.0.1
32 host = 127.0.0.1
25 port = 5000
33 port = 5000
@@ -19,7 +19,15 b' debug = true'
19 #error_message = 'mercurial crash !'
19 #error_message = 'mercurial crash !'
20
20
21 [server:main]
21 [server:main]
22 threadpool_workers = 10
22 ##nr of threads to spawn
23 threadpool_workers = 5
24
25 ##max request before
26 threadpool_max_requests = 2
27
28 ##option to use threads of process
29 use_threadpool = true
30
23 use = egg:Paste#http
31 use = egg:Paste#http
24 host = 127.0.0.1
32 host = 127.0.0.1
25 port = 8001
33 port = 8001
@@ -51,10 +51,9 b' def make_app(global_conf, full_stack=Tru'
51 # Display error documents for 401, 403, 404 status codes (and
51 # Display error documents for 401, 403, 404 status codes (and
52 # 500 when debug is disabled)
52 # 500 when debug is disabled)
53 if asbool(config['debug']):
53 if asbool(config['debug']):
54 #don't handle 404, since mercurial does it for us.
54 app = StatusCodeRedirect(app)
55 app = StatusCodeRedirect(app, [400, 401, 403])
56 else:
55 else:
57 app = StatusCodeRedirect(app, [400, 401, 403, 500])
56 app = StatusCodeRedirect(app, [400, 401, 403, 404, 500])
58
57
59 # Establish the Registry for this application
58 # Establish the Registry for this application
60 app = RegistryManager(app)
59 app = RegistryManager(app)
@@ -7,6 +7,7 b' from pylons_app.lib.base import BaseCont'
7 from pylons_app.lib.utils import get_repo_slug
7 from pylons_app.lib.utils import get_repo_slug
8 from pylons_app.model.hg_model import HgModel
8 from pylons_app.model.hg_model import HgModel
9 from webhelpers.paginate import Page
9 from webhelpers.paginate import Page
10
10 log = logging.getLogger(__name__)
11 log = logging.getLogger(__name__)
11
12
12 class ShortlogController(BaseController):
13 class ShortlogController(BaseController):
@@ -24,12 +25,10 b' class ShortlogController(BaseController)'
24 cnt = repo.revisions[-1]
25 cnt = repo.revisions[-1]
25 gen = repo.get_changesets(None)
26 gen = repo.get_changesets(None)
26 repo_changesets = list(gen)
27 repo_changesets = list(gen)
27 repo_changesets2 = list(gen)
28 repo_changesets3 = list(gen)
29 repo_changesets4 = list(gen)
30
28
31 c.repo_changesets = Page(repo_changesets, page=p, item_count=cnt, items_per_page=lim)
29 c.repo_changesets = Page(repo_changesets, page=p, item_count=cnt, items_per_page=lim)
32 c.shortlog_data = render('shortlog_data.html')
30 c.shortlog_data = render('shortlog_data.html')
33 if request.params.get('partial'):
31 if request.params.get('partial'):
34 return c.shortlog_data
32 return c.shortlog_data
35 return render('/shortlog.html')
33 r = render('/shortlog.html')
34 return r
General Comments 0
You need to be logged in to leave comments. Login now