Please enable JavaScript to use RhodeCode Enterprise
##// END OF EJS Templates
Mads Kiilerich
- Fri, 27 Nov 2015 00:39:21
Show More
docs/setup.rst
0
+2
-2
@@
-730,7
+730,7
b' Here is a sample excerpt from an Apache '
730
730
731
731
WSGIDaemonProcess kallithea \
732
732
processes=1 threads=4 \
733
python-path=/srv/kallithea/pyenv/lib/python2.7/site-packages
733
python-path=/srv/kallithea/v env/lib/python2.7/site-packages
734
734
WSGIScriptAlias / /srv/kallithea/dispatch.wsgi
735
735
WSGIPassAuthorization On
736
736
@@
-758,7
+758,7
b' Example WSGI dispatch script:'
758
758
os . chdir ( '/srv/kallithea/' )
759
759
760
760
import site
761
site . addsitedir ( "/srv/kallithea/pyenv/lib/python2.7/site-packages" )
761
site . addsitedir ( "/srv/kallithea/v env/lib/python2.7/site-packages" )
762
762
763
763
from paste.deploy import loadapp
764
764
from paste.script.util.logging_config import fileConfig
kallithea/controllers/admin/gists.py
0
+2
-2
@@
-42,7
+42,7
b' from kallithea.lib import helpers as h'
42
42
from kallithea.lib.base import BaseController , render
43
43
from kallithea.lib.auth import LoginRequired , NotAnonymous
44
44
from kallithea.lib.utils import jsonify
45
from kallithea.lib.utils2 import safe_int , time_to_datetime
45
from kallithea.lib.utils2 import safe_int , safe_unicode , time_to_datetime
46
46
from kallithea.lib.helpers import Page
47
47
from sqlalchemy.sql.expression import or_
48
48
from kallithea.lib.vcs.exceptions import VCSError , NodeNotChangedError
@@
-205,7
+205,7
b' class GistsController(BaseController):'
205
205
log . error ( traceback . format_exc ())
206
206
raise HTTPNotFound ()
207
207
if format == 'raw' :
208
content = ' \n\n ' . join ([ f . content for f in c . files if ( f_path is None or f . path == f_path )])
208
content = ' \n\n ' . join ([ f . content for f in c . files if ( f_path is None or safe_unicode ( f . path ) == f_path )])
209
209
response . content_type = 'text/plain'
210
210
return content
211
211
return render ( 'admin/gists/show.html' )
kallithea/lib/paster_commands/repo_scan.py
0
+2
-2
@@
-56,12
+56,12
b' class Command(BasePasterCommand):'
56
56
#get SqlAlchemy session
57
57
self . _init_session ()
58
58
rm_obsolete = self . options . delete_obsolete
59
log.info('Now scanning root location for new repos...' )
59
print 'Now scanning root location for new repos ...'
60
60
added , removed = repo2db_mapper ( ScmModel () . repo_scan (),
61
61
remove_obsolete = rm_obsolete )
62
62
added = ', ' . join ( added ) or '-'
63
63
removed = ', ' . join ( removed ) or '-'
64
log.info('Scan completed added: %s removed: %s ' , added , removed )
64
print 'Scan completed added: %s removed: %s ' % ( added , removed )
65
65
66
66
def update_parser ( self ):
67
67
self . parser . add_option (
kallithea/templates/admin/gists/edit.html
0
+2
-2
@@
-69,8
+69,8
b''
69
69
% for cnt, file in enumerate(c.files):
70
70
< div id = "body" class = "codeblock" style = "margin-bottom: 4px" >
71
71
< div style = "padding: 10px 10px 10px 26px;color:#666666" >
72
< input type = "hidden" value = "${file.path}" name = "org_files" >
73
< input id = "filename_${h.FID('f',file.path)}" name = "files" size = "30" type = "text" value = "${file.path}" >
72
< input type = "hidden" value = "${h.safe_unicode( file.path) }" name = "org_files" >
73
< input id = "filename_${h.FID('f',file.path)}" name = "files" size = "30" type = "text" value = "${h.safe_unicode( file.path) }" >
74
74
< select id = "mimetype_${h.FID('f',file.path)}" name = "mimetypes" />
75
75
</ div >
76
76
< div class = "editor_container" >
kallithea/templates/admin/gists/show.html
0
+2
-2
@@
-81,9
+81,9
b''
81
81
< div style = "border: 1px solid #EEE;margin-top:20px" >
82
82
< div id = "${h.FID('G', file.path)}" class = "stats" style = "border-bottom: 1px solid #DDD;padding: 8px 14px;" >
83
83
< a href = "${c.gist.gist_url()}" > ¶ </ a >
84
< b style = "margin:0px 0px 0px 4px" > ${file.path} </ b >
84
< b style = "margin:0px 0px 0px 4px" > ${h.safe_unicode( file.path) } </ b >
85
85
< div style = "float:right; margin: -5px" >
86
${h.link_to(_('Show as raw'),h.url('formatted_gist_file', gist_id=c.gist.gist_access_id, format='raw', revision=file.changeset.raw_id, f_path=file.path),class_="btn btn-mini")}
86
${h.link_to(_('Show as raw'),h.url('formatted_gist_file', gist_id=c.gist.gist_access_id, format='raw', revision=file.changeset.raw_id, f_path=h.safe_unicode( file.path) ),class_="btn btn-mini")}
87
87
</ div >
88
88
</ div >
89
89
< div class = "code-body" >
setup.py
0
+1
-1
@@
-55,7
+55,7
b' requirements = ['
55
55
"URLObject==2.3.4" ,
56
56
"Routes==1.13" ,
57
57
"dulwich>=0.9.9,<=0.9.9" ,
58
"mercurial>=2.9,<3.6" ,
58
"mercurial>=2.9,<3.7 " ,
59
59
]
60
60
61
61
if sys . version_info < ( 2 , 7 ):
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
g 0-9
Goto bookmarked items from 0-9
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository access permissions settings
t s
Toggle sidebar on some pages