|
@@
-1,1160
+1,1160
b''
|
|
1
|
## -*- coding: utf-8 -*-
|
|
1
|
## -*- coding: utf-8 -*-
|
|
2
|
<%namespace name="base" file="/base/base.mako"/>
|
|
2
|
<%namespace name="base" file="/base/base.mako"/>
|
|
3
|
<%inherit file="/debug_style/index.html"/>
|
|
3
|
<%inherit file="/debug_style/index.html"/>
|
|
4
|
|
|
4
|
|
|
5
|
<%def name="breadcrumbs_links()">
|
|
5
|
<%def name="breadcrumbs_links()">
|
|
6
|
${h.link_to(_('Style'), h.route_path('debug_style_home'))}
|
|
6
|
${h.link_to(_('Style'), h.route_path('debug_style_home'))}
|
|
7
|
»
|
|
7
|
»
|
|
8
|
${c.active}
|
|
8
|
${c.active}
|
|
9
|
</%def>
|
|
9
|
</%def>
|
|
10
|
|
|
10
|
|
|
11
|
<%def name="js_extra()">
|
|
11
|
<%def name="js_extra()">
|
|
12
|
</%def>
|
|
12
|
</%def>
|
|
13
|
|
|
13
|
|
|
14
|
<%def name="css_extra()">
|
|
14
|
<%def name="css_extra()">
|
|
15
|
</%def>
|
|
15
|
</%def>
|
|
16
|
|
|
16
|
|
|
17
|
|
|
17
|
|
|
18
|
<%def name="real_main()">
|
|
18
|
<%def name="real_main()">
|
|
19
|
<div class="box">
|
|
19
|
<div class="box">
|
|
20
|
<div class="title">
|
|
20
|
<div class="title">
|
|
21
|
${self.breadcrumbs()}
|
|
21
|
${self.breadcrumbs()}
|
|
22
|
</div>
|
|
22
|
</div>
|
|
23
|
|
|
23
|
|
|
24
|
##main
|
|
24
|
##main
|
|
25
|
<div class='sidebar-col-wrapper'>
|
|
25
|
<div class='sidebar-col-wrapper'>
|
|
26
|
${self.sidebar()}
|
|
26
|
${self.sidebar()}
|
|
27
|
|
|
27
|
|
|
28
|
<div class="main-content">
|
|
28
|
<div class="main-content">
|
|
29
|
|
|
29
|
|
|
30
|
|
|
30
|
|
|
31
|
|
|
31
|
|
|
32
|
<h2>Code Blocks</h2>
|
|
32
|
<h2>Code Blocks</h2>
|
|
33
|
|
|
33
|
|
|
34
|
<dl class="dl-horizontal">
|
|
34
|
<dl class="dl-horizontal">
|
|
35
|
<dt><code>.codeblock</code></dt>
|
|
35
|
<dt><code>.codeblock</code></dt>
|
|
36
|
<dd>Used as a wrapping element around <code>.code-header</code> and
|
|
36
|
<dd>Used as a wrapping element around <code>.code-header</code> and
|
|
37
|
<code>.code-body</code>. Used to show the content of a file or a
|
|
37
|
<code>.code-body</code>. Used to show the content of a file or a
|
|
38
|
Gist.</dd>
|
|
38
|
Gist.</dd>
|
|
39
|
|
|
39
|
|
|
40
|
<dt><code>.diffblock</code></dt>
|
|
40
|
<dt><code>.diffblock</code></dt>
|
|
41
|
<dd>Used as a wrapping element to show a diff in a Commit or Pull
|
|
41
|
<dd>Used as a wrapping element to show a diff in a Commit or Pull
|
|
42
|
Request page. Contains usually <code>.code-header</code>,
|
|
42
|
Request page. Contains usually <code>.code-header</code>,
|
|
43
|
<code>.code-body</code> and in the edit case a <code>.message</code>.
|
|
43
|
<code>.code-body</code> and in the edit case a <code>.message</code>.
|
|
44
|
</dd>
|
|
44
|
</dd>
|
|
45
|
</dl>
|
|
45
|
</dl>
|
|
46
|
|
|
46
|
|
|
47
|
|
|
47
|
|
|
48
|
<p>Code Blocks are used in the following areas:</p>
|
|
48
|
<p>Code Blocks are used in the following areas:</p>
|
|
49
|
|
|
49
|
|
|
50
|
<ul>
|
|
50
|
<ul>
|
|
51
|
<li>Commit: Showing the Diff (still called Changeset in a few
|
|
51
|
<li>Commit: Showing the Diff (still called Changeset in a few
|
|
52
|
places).</li>
|
|
52
|
places).</li>
|
|
53
|
<li>File: Display a file, annotations, and edit a file.</li>
|
|
53
|
<li>File: Display a file, annotations, and edit a file.</li>
|
|
54
|
<li>Gist: Show the Gist and edit it.</li>
|
|
54
|
<li>Gist: Show the Gist and edit it.</li>
|
|
55
|
<li>Pull Request: Display the Diff of a Pull Request.</li>
|
|
55
|
<li>Pull Request: Display the Diff of a Pull Request.</li>
|
|
56
|
</ul>
|
|
56
|
</ul>
|
|
57
|
|
|
57
|
|
|
58
|
|
|
58
|
|
|
59
|
|
|
59
|
|
|
60
|
<!--
|
|
60
|
<!--
|
|
61
|
Compare Commits
|
|
61
|
Compare Commits
|
|
62
|
-->
|
|
62
|
-->
|
|
63
|
<h2>Compare Commits</h2>
|
|
63
|
<h2>Compare Commits</h2>
|
|
64
|
|
|
64
|
|
|
65
|
<div id="c-e589e34d6be8-5ab783e6d81b" class="diffblock margined comm">
|
|
65
|
<div id="c-e589e34d6be8-5ab783e6d81b" class="diffblock margined comm">
|
|
66
|
<div class="code-header">
|
|
66
|
<div class="code-header">
|
|
67
|
<div title="Go back to changed files overview">
|
|
67
|
<div title="Go back to changed files overview">
|
|
68
|
<a href="#changes_box">
|
|
68
|
<a href="#changes_box">
|
|
69
|
<i class="icon-circle-arrow-up"></i>
|
|
69
|
<i class="icon-circle-arrow-up"></i>
|
|
70
|
</a>
|
|
70
|
</a>
|
|
71
|
</div>
|
|
71
|
</div>
|
|
72
|
<div class="changeset_header">
|
|
72
|
<div class="changeset_header">
|
|
73
|
<div class="changeset_file">
|
|
73
|
<div class="changeset_file">
|
|
74
|
<i class="icon-file"></i>
|
|
74
|
<i class="icon-file"></i>
|
|
75
|
<a href="/example/files/e589e34d6be8ec2b44017f6c2e0bbe782f1aba6d/rhodecode/public/css/code-block.less">rhodecode/public/css/code-block.less</a>
|
|
75
|
<a href="/example/files/e589e34d6be8ec2b44017f6c2e0bbe782f1aba6d/rhodecode/public/css/code-block.less">rhodecode/public/css/code-block.less</a>
|
|
76
|
</div>
|
|
76
|
</div>
|
|
77
|
<div class="diff-actions">
|
|
77
|
<div class="diff-actions">
|
|
78
|
<a href="/example/diff/rhodecode/public/css/code-block.less?fulldiff=1&diff1=d12301bafcc0aea15c9283d3af018daee2b04cd9&diff=diff&diff2=e589e34d6be8ec2b44017f6c2e0bbe782f1aba6d" class="tooltip" title="Show full diff for this file">
|
|
78
|
<a href="/example/diff/rhodecode/public/css/code-block.less?fulldiff=1&diff1=d12301bafcc0aea15c9283d3af018daee2b04cd9&diff=diff&diff2=e589e34d6be8ec2b44017f6c2e0bbe782f1aba6d" class="tooltip" title="Show full diff for this file">
|
|
79
|
<img class="icon" src="/images/icons/page_white_go.png">
|
|
79
|
<img class="icon" src="/images/icons/page_white_go.png">
|
|
80
|
</a>
|
|
80
|
</a>
|
|
81
|
<a href="/example/diff-2way/rhodecode/public/css/code-block.less?fulldiff=1&diff1=d12301bafcc0aea15c9283d3af018daee2b04cd9&diff=diff&diff2=e589e34d6be8ec2b44017f6c2e0bbe782f1aba6d" class="tooltip" title="Show full side-by-side diff for this file">
|
|
81
|
<a href="/example/diff-2way/rhodecode/public/css/code-block.less?fulldiff=1&diff1=d12301bafcc0aea15c9283d3af018daee2b04cd9&diff=diff&diff2=e589e34d6be8ec2b44017f6c2e0bbe782f1aba6d" class="tooltip" title="Show full side-by-side diff for this file">
|
|
82
|
<img class="icon" src="/images/icons/application_double.png">
|
|
82
|
<img class="icon" src="/images/icons/application_double.png">
|
|
83
|
</a>
|
|
83
|
</a>
|
|
84
|
<a href="/example/diff/rhodecode/public/css/code-block.less?diff1=d12301bafcc0aea15c9283d3af018daee2b04cd9&diff=raw&diff2=e589e34d6be8ec2b44017f6c2e0bbe782f1aba6d" class="tooltip" title="Raw diff" tt_title="Raw diff">
|
|
84
|
<a href="/example/diff/rhodecode/public/css/code-block.less?diff1=d12301bafcc0aea15c9283d3af018daee2b04cd9&diff=raw&diff2=e589e34d6be8ec2b44017f6c2e0bbe782f1aba6d" class="tooltip" title="Raw diff" tt_title="Raw diff">
|
|
85
|
<img class="icon" src="/images/icons/page_white.png">
|
|
85
|
<img class="icon" src="/images/icons/page_white.png">
|
|
86
|
</a>
|
|
86
|
</a>
|
|
87
|
<a href="/example/diff/rhodecode/public/css/code-block.less?diff1=d12301bafcc0aea15c9283d3af018daee2b04cd9&diff=download&diff2=e589e34d6be8ec2b44017f6c2e0bbe782f1aba6d" class="tooltip" title="Download diff">
|
|
87
|
<a href="/example/diff/rhodecode/public/css/code-block.less?diff1=d12301bafcc0aea15c9283d3af018daee2b04cd9&diff=download&diff2=e589e34d6be8ec2b44017f6c2e0bbe782f1aba6d" class="tooltip" title="Download diff">
|
|
88
|
<img class="icon" src="/images/icons/page_save.png">
|
|
88
|
<img class="icon" src="/images/icons/page_save.png">
|
|
89
|
</a>
|
|
89
|
</a>
|
|
90
|
<a class="tooltip" href="/example/changeset/d12301bafcc0aea15c9283d3af018daee2b04cd9...80ead1899f50a894889e19ffeb49c9cebf5bf045?c-e589e34d6be8-5ab783e6d81b=WS%3A1&c-e589e34d6be8-5ab783e6d81b=C%3A3#c-e589e34d6be8-5ab783e6d81b" title="Ignore white space"><img alt="Ignore white space" class="icon" src="/images/icons/text_strikethrough.png"></a>
|
|
90
|
<a class="tooltip" href="/example/changeset/d12301bafcc0aea15c9283d3af018daee2b04cd9...80ead1899f50a894889e19ffeb49c9cebf5bf045?c-e589e34d6be8-5ab783e6d81b=WS%3A1&c-e589e34d6be8-5ab783e6d81b=C%3A3#c-e589e34d6be8-5ab783e6d81b" title="Ignore white space"><img alt="Ignore white space" class="icon" src="/images/icons/text_strikethrough.png"></a>
|
|
91
|
<a class="tooltip" href="/example/changeset/d12301bafcc0aea15c9283d3af018daee2b04cd9...80ead1899f50a894889e19ffeb49c9cebf5bf045?c-e589e34d6be8-5ab783e6d81b=C%3A6#c-e589e34d6be8-5ab783e6d81b" title="increase diff context to 6 lines"><img alt="increase diff context to 6 lines" class="icon" src="/images/icons/table_add.png"></a>
|
|
91
|
<a class="tooltip" href="/example/changeset/d12301bafcc0aea15c9283d3af018daee2b04cd9...80ead1899f50a894889e19ffeb49c9cebf5bf045?c-e589e34d6be8-5ab783e6d81b=C%3A6#c-e589e34d6be8-5ab783e6d81b" title="increase diff context to 6 lines"><img alt="increase diff context to 6 lines" class="icon" src="/images/icons/table_add.png"></a>
|
|
92
|
</div>
|
|
92
|
</div>
|
|
93
|
<span>
|
|
93
|
<span>
|
|
94
|
<label>
|
|
94
|
<label>
|
|
95
|
Show inline comments
|
|
95
|
Show inline comments
|
|
96
|
<input checked="checked" class="show-inline-comments" id="" id_for="c-e589e34d6be8-5ab783e6d81b" name="" type="checkbox" value="1">
|
|
96
|
<input checked="checked" class="show-inline-comments" id="" id_for="c-e589e34d6be8-5ab783e6d81b" name="" type="checkbox" value="1">
|
|
97
|
</label>
|
|
97
|
</label>
|
|
98
|
</span>
|
|
98
|
</span>
|
|
99
|
</div>
|
|
99
|
</div>
|
|
100
|
</div>
|
|
100
|
</div>
|
|
101
|
<div class="code-body">
|
|
101
|
<div class="code-body">
|
|
102
|
<div class="full_f_path" path="rhodecode/public/css/code-block.less"></div>
|
|
102
|
<div class="full_f_path" path="rhodecode/public/css/code-block.less"></div>
|
|
103
|
<table class="code-difftable">
|
|
103
|
<table class="code-difftable">
|
|
104
|
<tbody><tr class="line context">
|
|
104
|
<tbody><tr class="line context">
|
|
105
|
<td class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o...">...</a></td>
|
|
105
|
<td class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o...">...</a></td>
|
|
106
|
<td class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n...">...</a></td>
|
|
106
|
<td class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n...">...</a></td>
|
|
107
|
<td class="code no-comment">
|
|
107
|
<td class="code no-comment">
|
|
108
|
<pre>@@ -391,7 +391,7 @@
|
|
108
|
<pre>@@ -391,7 +391,7 @@
|
|
109
|
</pre>
|
|
109
|
</pre>
|
|
110
|
</td>
|
|
110
|
</td>
|
|
111
|
</tr>
|
|
111
|
</tr>
|
|
112
|
<tr class="line unmod">
|
|
112
|
<tr class="line unmod">
|
|
113
|
<td id="rhodecodepubliccsscode-blockless_o391" class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o391">391</a></td>
|
|
113
|
<td id="rhodecodepubliccsscode-blockless_o391" class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o391">391</a></td>
|
|
114
|
<td id="rhodecodepubliccsscode-blockless_n391" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n391">391</a></td>
|
|
114
|
<td id="rhodecodepubliccsscode-blockless_n391" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n391">391</a></td>
|
|
115
|
<td class="code no-comment">
|
|
115
|
<td class="code no-comment">
|
|
116
|
<pre>} /* Existing line, it might have a quite long content actually and in this case we might need some horizontal scrolling. The remaining text here is just used to make this line very long.
|
|
116
|
<pre>} /* Existing line, it might have a quite long content actually and in this case we might need some horizontal scrolling. The remaining text here is just used to make this line very long.
|
|
117
|
</pre>
|
|
117
|
</pre>
|
|
118
|
</td>
|
|
118
|
</td>
|
|
119
|
</tr>
|
|
119
|
</tr>
|
|
120
|
<tr class="line unmod">
|
|
120
|
<tr class="line unmod">
|
|
121
|
<td id="rhodecodepubliccsscode-blockless_o392" class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o392">392</a></td>
|
|
121
|
<td id="rhodecodepubliccsscode-blockless_o392" class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o392">392</a></td>
|
|
122
|
<td id="rhodecodepubliccsscode-blockless_n392" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n392">392</a></td>
|
|
122
|
<td id="rhodecodepubliccsscode-blockless_n392" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n392">392</a></td>
|
|
123
|
<td class="code no-comment">
|
|
123
|
<td class="code no-comment">
|
|
124
|
<pre></pre>
|
|
124
|
<pre></pre>
|
|
125
|
</td>
|
|
125
|
</td>
|
|
126
|
</tr>
|
|
126
|
</tr>
|
|
127
|
<tr class="line unmod">
|
|
127
|
<tr class="line unmod">
|
|
128
|
<td id="rhodecodepubliccsscode-blockless_o393" class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o393">393</a></td>
|
|
128
|
<td id="rhodecodepubliccsscode-blockless_o393" class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o393">393</a></td>
|
|
129
|
<td id="rhodecodepubliccsscode-blockless_n393" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n393">393</a></td>
|
|
129
|
<td id="rhodecodepubliccsscode-blockless_n393" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n393">393</a></td>
|
|
130
|
<td class="code no-comment">
|
|
130
|
<td class="code no-comment">
|
|
131
|
<pre>.code-body.textarea.editor,
|
|
131
|
<pre>.code-body.textarea.editor,
|
|
132
|
</pre>
|
|
132
|
</pre>
|
|
133
|
</td>
|
|
133
|
</td>
|
|
134
|
</tr>
|
|
134
|
</tr>
|
|
135
|
<tr class="line del">
|
|
135
|
<tr class="line del">
|
|
136
|
<td id="rhodecodepubliccsscode-blockless_o394" class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o394">394</a></td>
|
|
136
|
<td id="rhodecodepubliccsscode-blockless_o394" class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o394">394</a></td>
|
|
137
|
<td class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n"></a></td>
|
|
137
|
<td class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n"></a></td>
|
|
138
|
<td class="code no-comment">
|
|
138
|
<td class="code no-comment">
|
|
139
|
<pre>div.code-body{
|
|
139
|
<pre>div.code-body{
|
|
140
|
</pre>
|
|
140
|
</pre>
|
|
141
|
</td>
|
|
141
|
</td>
|
|
142
|
</tr>
|
|
142
|
</tr>
|
|
143
|
<tr class="line add">
|
|
143
|
<tr class="line add">
|
|
144
|
<td class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o"></a></td>
|
|
144
|
<td class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o"></a></td>
|
|
145
|
<td id="rhodecodepubliccsscode-blockless_n394" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n394">394</a></td>
|
|
145
|
<td id="rhodecodepubliccsscode-blockless_n394" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n394">394</a></td>
|
|
146
|
<td class="code no-comment">
|
|
146
|
<td class="code no-comment">
|
|
147
|
<pre>div.code-body<ins> </ins>{
|
|
147
|
<pre>div.code-body<ins> </ins>{
|
|
148
|
</pre>
|
|
148
|
</pre>
|
|
149
|
</td>
|
|
149
|
</td>
|
|
150
|
</tr>
|
|
150
|
</tr>
|
|
151
|
<tr class="line unmod">
|
|
151
|
<tr class="line unmod">
|
|
152
|
<td id="rhodecodepubliccsscode-blockless_o395" class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o395">395</a></td>
|
|
152
|
<td id="rhodecodepubliccsscode-blockless_o395" class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o395">395</a></td>
|
|
153
|
<td id="rhodecodepubliccsscode-blockless_n395" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n395">395</a></td>
|
|
153
|
<td id="rhodecodepubliccsscode-blockless_n395" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n395">395</a></td>
|
|
154
|
<td class="code no-comment">
|
|
154
|
<td class="code no-comment">
|
|
155
|
<pre> float: left;
|
|
155
|
<pre> float: left;
|
|
156
|
</pre>
|
|
156
|
</pre>
|
|
157
|
</td>
|
|
157
|
</td>
|
|
158
|
</tr>
|
|
158
|
</tr>
|
|
159
|
<tr class="line unmod">
|
|
159
|
<tr class="line unmod">
|
|
160
|
<td id="rhodecodepubliccsscode-blockless_o396" class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o396">396</a></td>
|
|
160
|
<td id="rhodecodepubliccsscode-blockless_o396" class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o396">396</a></td>
|
|
161
|
<td id="rhodecodepubliccsscode-blockless_n396" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n396">396</a></td>
|
|
161
|
<td id="rhodecodepubliccsscode-blockless_n396" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n396">396</a></td>
|
|
162
|
<td class="code no-comment">
|
|
162
|
<td class="code no-comment">
|
|
163
|
<pre> position: relative;
|
|
163
|
<pre> position: relative;
|
|
164
|
</pre>
|
|
164
|
</pre>
|
|
165
|
</td>
|
|
165
|
</td>
|
|
166
|
</tr>
|
|
166
|
</tr>
|
|
167
|
<tr class="line unmod">
|
|
167
|
<tr class="line unmod">
|
|
168
|
<td id="rhodecodepubliccsscode-blockless_o397" class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o397">397</a></td>
|
|
168
|
<td id="rhodecodepubliccsscode-blockless_o397" class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o397">397</a></td>
|
|
169
|
<td id="rhodecodepubliccsscode-blockless_n397" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n397">397</a></td>
|
|
169
|
<td id="rhodecodepubliccsscode-blockless_n397" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n397">397</a></td>
|
|
170
|
<td class="code no-comment">
|
|
170
|
<td class="code no-comment">
|
|
171
|
<pre> max-width: none;
|
|
171
|
<pre> max-width: none;
|
|
172
|
</pre>
|
|
172
|
</pre>
|
|
173
|
</td>
|
|
173
|
</td>
|
|
174
|
</tr>
|
|
174
|
</tr>
|
|
175
|
<tr class="line context">
|
|
175
|
<tr class="line context">
|
|
176
|
<td class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o...">...</a></td>
|
|
176
|
<td class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o...">...</a></td>
|
|
177
|
<td class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n...">...</a></td>
|
|
177
|
<td class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n...">...</a></td>
|
|
178
|
<td class="code no-comment">
|
|
178
|
<td class="code no-comment">
|
|
179
|
<pre>@@ -399,3 +399,6 @@
|
|
179
|
<pre>@@ -399,3 +399,6 @@
|
|
180
|
</pre>
|
|
180
|
</pre>
|
|
181
|
</td>
|
|
181
|
</td>
|
|
182
|
</tr>
|
|
182
|
</tr>
|
|
183
|
<tr class="line unmod">
|
|
183
|
<tr class="line unmod">
|
|
184
|
<td id="rhodecodepubliccsscode-blockless_o399" class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o399">399</a></td>
|
|
184
|
<td id="rhodecodepubliccsscode-blockless_o399" class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o399">399</a></td>
|
|
185
|
<td id="rhodecodepubliccsscode-blockless_n399" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n399">399</a></td>
|
|
185
|
<td id="rhodecodepubliccsscode-blockless_n399" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n399">399</a></td>
|
|
186
|
<td class="code no-comment">
|
|
186
|
<td class="code no-comment">
|
|
187
|
<pre> box-sizing: border-box;
|
|
187
|
<pre> box-sizing: border-box;
|
|
188
|
</pre>
|
|
188
|
</pre>
|
|
189
|
</td>
|
|
189
|
</td>
|
|
190
|
</tr>
|
|
190
|
</tr>
|
|
191
|
<tr class="line unmod">
|
|
191
|
<tr class="line unmod">
|
|
192
|
<td id="rhodecodepubliccsscode-blockless_o400" class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o400">400</a></td>
|
|
192
|
<td id="rhodecodepubliccsscode-blockless_o400" class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o400">400</a></td>
|
|
193
|
<td id="rhodecodepubliccsscode-blockless_n400" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n400">400</a></td>
|
|
193
|
<td id="rhodecodepubliccsscode-blockless_n400" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n400">400</a></td>
|
|
194
|
<td class="code no-comment">
|
|
194
|
<td class="code no-comment">
|
|
195
|
<pre>}
|
|
195
|
<pre>}
|
|
196
|
</pre>
|
|
196
|
</pre>
|
|
197
|
</td>
|
|
197
|
</td>
|
|
198
|
</tr>
|
|
198
|
</tr>
|
|
199
|
<tr class="line unmod">
|
|
199
|
<tr class="line unmod">
|
|
200
|
<td id="rhodecodepubliccsscode-blockless_o401" class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o401">401</a></td>
|
|
200
|
<td id="rhodecodepubliccsscode-blockless_o401" class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o401">401</a></td>
|
|
201
|
<td id="rhodecodepubliccsscode-blockless_n401" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n401">401</a></td>
|
|
201
|
<td id="rhodecodepubliccsscode-blockless_n401" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n401">401</a></td>
|
|
202
|
<td class="code no-comment">
|
|
202
|
<td class="code no-comment">
|
|
203
|
<pre></pre>
|
|
203
|
<pre></pre>
|
|
204
|
</td>
|
|
204
|
</td>
|
|
205
|
</tr>
|
|
205
|
</tr>
|
|
206
|
<tr class="line add">
|
|
206
|
<tr class="line add">
|
|
207
|
<td class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o"></a></td>
|
|
207
|
<td class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o"></a></td>
|
|
208
|
<td id="rhodecodepubliccsscode-blockless_n402" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n402">402</a></td>
|
|
208
|
<td id="rhodecodepubliccsscode-blockless_n402" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n402">402</a></td>
|
|
209
|
<td class="code no-comment">
|
|
209
|
<td class="code no-comment">
|
|
210
|
<pre>.code-body td{
|
|
210
|
<pre>.code-body td{
|
|
211
|
</pre>
|
|
211
|
</pre>
|
|
212
|
</td>
|
|
212
|
</td>
|
|
213
|
</tr>
|
|
213
|
</tr>
|
|
214
|
<tr class="line add">
|
|
214
|
<tr class="line add">
|
|
215
|
<td class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o"></a></td>
|
|
215
|
<td class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o"></a></td>
|
|
216
|
<td id="rhodecodepubliccsscode-blockless_n403" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n403">403</a></td>
|
|
216
|
<td id="rhodecodepubliccsscode-blockless_n403" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n403">403</a></td>
|
|
217
|
<td class="code no-comment">
|
|
217
|
<td class="code no-comment">
|
|
218
|
<pre> line-height: 1.2em;
|
|
218
|
<pre> line-height: 1.2em;
|
|
219
|
</pre>
|
|
219
|
</pre>
|
|
220
|
</td>
|
|
220
|
</td>
|
|
221
|
</tr>
|
|
221
|
</tr>
|
|
222
|
<tr class="line add">
|
|
222
|
<tr class="line add">
|
|
223
|
<td class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o"></a></td>
|
|
223
|
<td class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o"></a></td>
|
|
224
|
<td id="rhodecodepubliccsscode-blockless_n404" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n404">404</a></td>
|
|
224
|
<td id="rhodecodepubliccsscode-blockless_n404" class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n404">404</a></td>
|
|
225
|
<td class="code no-comment">
|
|
225
|
<td class="code no-comment">
|
|
226
|
<pre>}
|
|
226
|
<pre>}
|
|
227
|
</pre>
|
|
227
|
</pre>
|
|
228
|
</td>
|
|
228
|
</td>
|
|
229
|
</tr>
|
|
229
|
</tr>
|
|
230
|
<tr class="line context">
|
|
230
|
<tr class="line context">
|
|
231
|
<td class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o...">...</a></td>
|
|
231
|
<td class="lineno old"><a href="#rhodecodepubliccsscode-blockless_o...">...</a></td>
|
|
232
|
<td class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n...">...</a></td>
|
|
232
|
<td class="lineno new"><a href="#rhodecodepubliccsscode-blockless_n...">...</a></td>
|
|
233
|
<td class="code no-comment">
|
|
233
|
<td class="code no-comment">
|
|
234
|
<pre> No newline at end of file
|
|
234
|
<pre> No newline at end of file
|
|
235
|
</pre>
|
|
235
|
</pre>
|
|
236
|
</td>
|
|
236
|
</td>
|
|
237
|
</tr>
|
|
237
|
</tr>
|
|
238
|
</tbody></table>
|
|
238
|
</tbody></table>
|
|
239
|
</div>
|
|
239
|
</div>
|
|
240
|
</div>
|
|
240
|
</div>
|
|
241
|
|
|
241
|
|
|
242
|
|
|
242
|
|
|
243
|
|
|
243
|
|
|
244
|
|
|
244
|
|
|
245
|
|
|
245
|
|
|
246
|
|
|
246
|
|
|
247
|
<!--
|
|
247
|
<!--
|
|
248
|
Pull Request
|
|
248
|
Pull Request
|
|
249
|
-->
|
|
249
|
-->
|
|
250
|
|
|
250
|
|
|
251
|
<h2>Pull Request</h2>
|
|
251
|
<h2>Pull Request</h2>
|
|
252
|
|
|
252
|
|
|
253
|
<div class="cs_files">
|
|
253
|
<div class="cs_files">
|
|
254
|
<table class="compare_view_files">
|
|
254
|
<table class="compare_view_files">
|
|
255
|
|
|
255
|
|
|
256
|
<tbody><tr class="cs_M collapse_file" fid="c--5f1d017cf13b">
|
|
256
|
<tbody><tr class="cs_M collapse_file" fid="c--5f1d017cf13b">
|
|
257
|
<td class="cs_icon_td">
|
|
257
|
<td class="cs_icon_td">
|
|
258
|
<span class="collapse_file_icon" fid="c--5f1d017cf13b"></span>
|
|
258
|
<span class="collapse_file_icon" fid="c--5f1d017cf13b"></span>
|
|
259
|
</td>
|
|
259
|
</td>
|
|
260
|
<td class="cs_icon_td">
|
|
260
|
<td class="cs_icon_td">
|
|
261
|
<div class="flag_status not_reviewed hidden"></div>
|
|
261
|
<div class="flag_status not_reviewed hidden"></div>
|
|
262
|
</td>
|
|
262
|
</td>
|
|
263
|
<td id="a_c--5f1d017cf13b">
|
|
263
|
<td id="a_c--5f1d017cf13b">
|
|
264
|
<a class="compare_view_filepath" href="#a_c--5f1d017cf13b">
|
|
264
|
<a class="compare_view_filepath" href="#a_c--5f1d017cf13b">
|
|
265
|
rhodecode/public/css/main.less
|
|
265
|
rhodecode/public/css/main.less
|
|
266
|
</a>
|
|
266
|
</a>
|
|
267
|
<span id="diff_c--5f1d017cf13b" class="diff_links" style="">
|
|
267
|
<span id="diff_c--5f1d017cf13b" class="diff_links" style="">
|
|
268
|
<a href="/example/diff/rhodecode/public/css/main.less?fulldiff=1&diff1=f73e9946825c8a7ef2c1178cd1e67986d5831f8f&diff=diff&diff2=27eb56cf467ca849112536d62decb2ed020b3ebc">
|
|
268
|
<a href="/example/diff/rhodecode/public/css/main.less?fulldiff=1&diff1=f73e9946825c8a7ef2c1178cd1e67986d5831f8f&diff=diff&diff2=27eb56cf467ca849112536d62decb2ed020b3ebc">
|
|
269
|
Unified Diff
|
|
269
|
Unified Diff
|
|
270
|
</a>
|
|
270
|
</a>
|
|
271
|
|
|
|
271
|
|
|
|
272
|
<a href="/example/diff-2way/rhodecode/public/css/main.less?fulldiff=1&diff1=f73e9946825c8a7ef2c1178cd1e67986d5831f8f&diff=diff&diff2=27eb56cf467ca849112536d62decb2ed020b3ebc">
|
|
272
|
<a href="/example/diff-2way/rhodecode/public/css/main.less?fulldiff=1&diff1=f73e9946825c8a7ef2c1178cd1e67986d5831f8f&diff=diff&diff2=27eb56cf467ca849112536d62decb2ed020b3ebc">
|
|
273
|
Side-by-side Diff
|
|
273
|
Side-by-side Diff
|
|
274
|
</a>
|
|
274
|
</a>
|
|
275
|
</span>
|
|
275
|
</span>
|
|
276
|
</td>
|
|
276
|
</td>
|
|
277
|
<td>
|
|
277
|
<td>
|
|
278
|
<div class="changes pull-right"><div style="width:100px"><div class="added top-left-rounded-corner-mid bottom-left-rounded-corner-mid" style="width:33.3333333333%">1</div><div class="deleted top-right-rounded-corner-mid bottom-right-rounded-corner-mid" style="width:66.6666666667%">2</div></div></div>
|
|
278
|
<div class="changes pull-right"><div style="width:100px"><div class="added top-left-rounded-corner-mid bottom-left-rounded-corner-mid" style="width:33.3333333333%">1</div><div class="deleted top-right-rounded-corner-mid bottom-right-rounded-corner-mid" style="width:66.6666666667%">2</div></div></div>
|
|
279
|
<div class="comment-bubble pull-right" data-path="rhodecode/public/css/main.less">
|
|
279
|
<div class="comment-bubble pull-right" data-path="rhodecode/public/css/main.less">
|
|
280
|
<i class="icon-comment"></i>
|
|
280
|
<i class="icon-comment"></i>
|
|
281
|
</div>
|
|
281
|
</div>
|
|
282
|
</td>
|
|
282
|
</td>
|
|
283
|
</tr>
|
|
283
|
</tr>
|
|
284
|
<tr id="tr_c--5f1d017cf13b">
|
|
284
|
<tr id="tr_c--5f1d017cf13b">
|
|
285
|
<td></td>
|
|
285
|
<td></td>
|
|
286
|
<td></td>
|
|
286
|
<td></td>
|
|
287
|
<td class="injected_diff" colspan="2">
|
|
287
|
<td class="injected_diff" colspan="2">
|
|
288
|
|
|
288
|
|
|
289
|
<div class="diff-container" id="diff-container-140360026534904">
|
|
289
|
<div class="diff-container" id="diff-container-140360026534904">
|
|
290
|
<div id="c--5f1d017cf13b_target"></div>
|
|
290
|
<div id="c--5f1d017cf13b_target"></div>
|
|
291
|
<div id="c--5f1d017cf13b" class="diffblock margined comm">
|
|
291
|
<div id="c--5f1d017cf13b" class="diffblock margined comm">
|
|
292
|
<div class="code-body">
|
|
292
|
<div class="code-body">
|
|
293
|
<div class="full_f_path" path="rhodecode/public/css/main.less" style="display: none;"></div>
|
|
293
|
<div class="full_f_path" path="rhodecode/public/css/main.less" style="display: none;"></div>
|
|
294
|
<table class="code-difftable">
|
|
294
|
<table class="code-difftable">
|
|
295
|
<tbody><tr class="line context">
|
|
295
|
<tbody><tr class="line context">
|
|
296
|
<td class="lineno old"><a href="#rhodecodepubliccssmainless_o...">...</a></td>
|
|
296
|
<td class="lineno old"><a href="#rhodecodepubliccssmainless_o...">...</a></td>
|
|
297
|
<td class="lineno new"><a href="#rhodecodepubliccssmainless_n...">...</a></td>
|
|
297
|
<td class="lineno new"><a href="#rhodecodepubliccssmainless_n...">...</a></td>
|
|
298
|
<td class="code ">
|
|
298
|
<td class="code ">
|
|
299
|
<pre>@@ -2110,7 +2110,6 @@
|
|
299
|
<pre>@@ -2110,7 +2110,6 @@
|
|
300
|
</pre>
|
|
300
|
</pre>
|
|
301
|
</td>
|
|
301
|
</td>
|
|
302
|
</tr>
|
|
302
|
</tr>
|
|
303
|
<tr class="line unmod">
|
|
303
|
<tr class="line unmod">
|
|
304
|
<td id="rhodecodepubliccssmainless_o2110" class="lineno old"><a href="#rhodecodepubliccssmainless_o2110">2110</a></td>
|
|
304
|
<td id="rhodecodepubliccssmainless_o2110" class="lineno old"><a href="#rhodecodepubliccssmainless_o2110">2110</a></td>
|
|
305
|
<td id="rhodecodepubliccssmainless_n2110" class="lineno new"><a href="#rhodecodepubliccssmainless_n2110">2110</a></td>
|
|
305
|
<td id="rhodecodepubliccssmainless_n2110" class="lineno new"><a href="#rhodecodepubliccssmainless_n2110">2110</a></td>
|
|
306
|
<td class="code ">
|
|
306
|
<td class="code ">
|
|
307
|
<pre><span class="tab-escape"> </span>width: auto !important;
|
|
307
|
<pre><span class="tab-escape"> </span>width: auto !important;
|
|
308
|
</pre>
|
|
308
|
</pre>
|
|
309
|
</td>
|
|
309
|
</td>
|
|
310
|
</tr>
|
|
310
|
</tr>
|
|
311
|
<tr class="line unmod">
|
|
311
|
<tr class="line unmod">
|
|
312
|
<td id="rhodecodepubliccssmainless_o2111" class="lineno old"><a href="#rhodecodepubliccssmainless_o2111">2111</a></td>
|
|
312
|
<td id="rhodecodepubliccssmainless_o2111" class="lineno old"><a href="#rhodecodepubliccssmainless_o2111">2111</a></td>
|
|
313
|
<td id="rhodecodepubliccssmainless_n2111" class="lineno new"><a href="#rhodecodepubliccssmainless_n2111">2111</a></td>
|
|
313
|
<td id="rhodecodepubliccssmainless_n2111" class="lineno new"><a href="#rhodecodepubliccssmainless_n2111">2111</a></td>
|
|
314
|
<td class="code ">
|
|
314
|
<td class="code ">
|
|
315
|
<pre><span class="tab-escape"> </span>min-width: 160px;
|
|
315
|
<pre><span class="tab-escape"> </span>min-width: 160px;
|
|
316
|
</pre>
|
|
316
|
</pre>
|
|
317
|
</td>
|
|
317
|
</td>
|
|
318
|
</tr>
|
|
318
|
</tr>
|
|
319
|
<tr class="line unmod">
|
|
319
|
<tr class="line unmod">
|
|
320
|
<td id="rhodecodepubliccssmainless_o2112" class="lineno old"><a href="#rhodecodepubliccssmainless_o2112">2112</a></td>
|
|
320
|
<td id="rhodecodepubliccssmainless_o2112" class="lineno old"><a href="#rhodecodepubliccssmainless_o2112">2112</a></td>
|
|
321
|
<td id="rhodecodepubliccssmainless_n2112" class="lineno new"><a href="#rhodecodepubliccssmainless_n2112">2112</a></td>
|
|
321
|
<td id="rhodecodepubliccssmainless_n2112" class="lineno new"><a href="#rhodecodepubliccssmainless_n2112">2112</a></td>
|
|
322
|
<td class="code ">
|
|
322
|
<td class="code ">
|
|
323
|
<pre><span class="tab-escape"> </span>margin: @padding @padding @padding 0;
|
|
323
|
<pre><span class="tab-escape"> </span>margin: @padding @padding @padding 0;
|
|
324
|
</pre>
|
|
324
|
</pre>
|
|
325
|
</td>
|
|
325
|
</td>
|
|
326
|
</tr>
|
|
326
|
</tr>
|
|
327
|
<tr class="line del">
|
|
327
|
<tr class="line del">
|
|
328
|
<td id="rhodecodepubliccssmainless_o2113" class="lineno old"><a href="#rhodecodepubliccssmainless_o2113">2113</a></td>
|
|
328
|
<td id="rhodecodepubliccssmainless_o2113" class="lineno old"><a href="#rhodecodepubliccssmainless_o2113">2113</a></td>
|
|
329
|
<td class="lineno new"><a href="#rhodecodepubliccssmainless_n"></a></td>
|
|
329
|
<td class="lineno new"><a href="#rhodecodepubliccssmainless_n"></a></td>
|
|
330
|
<td class="code ">
|
|
330
|
<td class="code ">
|
|
331
|
<pre><span class="tab-escape"> </span>padding: .9em; /* Old comment which was making this line a very long line so that we might have to deal with it by either adding horizontal scrolling or some smart way of breaking this line. */
|
|
331
|
<pre><span class="tab-escape"> </span>padding: .9em; /* Old comment which was making this line a very long line so that we might have to deal with it by either adding horizontal scrolling or some smart way of breaking this line. */
|
|
332
|
</pre>
|
|
332
|
</pre>
|
|
333
|
</td>
|
|
333
|
</td>
|
|
334
|
</tr>
|
|
334
|
</tr>
|
|
335
|
<tr class="line unmod">
|
|
335
|
<tr class="line unmod">
|
|
336
|
<td id="rhodecodepubliccssmainless_o2114" class="lineno old"><a href="#rhodecodepubliccssmainless_o2114">2114</a></td>
|
|
336
|
<td id="rhodecodepubliccssmainless_o2114" class="lineno old"><a href="#rhodecodepubliccssmainless_o2114">2114</a></td>
|
|
337
|
<td id="rhodecodepubliccssmainless_n2113" class="lineno new"><a href="#rhodecodepubliccssmainless_n2113">2113</a></td>
|
|
337
|
<td id="rhodecodepubliccssmainless_n2113" class="lineno new"><a href="#rhodecodepubliccssmainless_n2113">2113</a></td>
|
|
338
|
<td class="code ">
|
|
338
|
<td class="code ">
|
|
339
|
<pre> line-height: 1em;
|
|
339
|
<pre> line-height: 1em;
|
|
340
|
</pre>
|
|
340
|
</pre>
|
|
341
|
</td>
|
|
341
|
</td>
|
|
342
|
</tr>
|
|
342
|
</tr>
|
|
343
|
<tr class="line unmod">
|
|
343
|
<tr class="line unmod">
|
|
344
|
<td id="rhodecodepubliccssmainless_o2115" class="lineno old"><a href="#rhodecodepubliccssmainless_o2115">2115</a></td>
|
|
344
|
<td id="rhodecodepubliccssmainless_o2115" class="lineno old"><a href="#rhodecodepubliccssmainless_o2115">2115</a></td>
|
|
345
|
<td id="rhodecodepubliccssmainless_n2114" class="lineno new"><a href="#rhodecodepubliccssmainless_n2114">2114</a></td>
|
|
345
|
<td id="rhodecodepubliccssmainless_n2114" class="lineno new"><a href="#rhodecodepubliccssmainless_n2114">2114</a></td>
|
|
346
|
<td class="code ">
|
|
346
|
<td class="code ">
|
|
347
|
<pre><span class="tab-escape"> </span>z-index: 100;//js sets the menu below it to 9999
|
|
347
|
<pre><span class="tab-escape"> </span>z-index: 100;//js sets the menu below it to 9999
|
|
348
|
</pre>
|
|
348
|
</pre>
|
|
349
|
</td>
|
|
349
|
</td>
|
|
350
|
</tr>
|
|
350
|
</tr>
|
|
351
|
<tr class="line unmod">
|
|
351
|
<tr class="line unmod">
|
|
352
|
<td id="rhodecodepubliccssmainless_o2116" class="lineno old"><a href="#rhodecodepubliccssmainless_o2116">2116</a></td>
|
|
352
|
<td id="rhodecodepubliccssmainless_o2116" class="lineno old"><a href="#rhodecodepubliccssmainless_o2116">2116</a></td>
|
|
353
|
<td id="rhodecodepubliccssmainless_n2115" class="lineno new"><a href="#rhodecodepubliccssmainless_n2115">2115</a></td>
|
|
353
|
<td id="rhodecodepubliccssmainless_n2115" class="lineno new"><a href="#rhodecodepubliccssmainless_n2115">2115</a></td>
|
|
354
|
<td class="code ">
|
|
354
|
<td class="code ">
|
|
355
|
<pre><span class="tab-escape"> </span>background-color: white;
|
|
355
|
<pre><span class="tab-escape"> </span>background-color: white;
|
|
356
|
</pre>
|
|
356
|
</pre>
|
|
357
|
</td>
|
|
357
|
</td>
|
|
358
|
</tr>
|
|
358
|
</tr>
|
|
359
|
<tr class="line context">
|
|
359
|
<tr class="line context">
|
|
360
|
<td class="lineno old"><a href="#rhodecodepubliccssmainless_o...">...</a></td>
|
|
360
|
<td class="lineno old"><a href="#rhodecodepubliccssmainless_o...">...</a></td>
|
|
361
|
<td class="lineno new"><a href="#rhodecodepubliccssmainless_n...">...</a></td>
|
|
361
|
<td class="lineno new"><a href="#rhodecodepubliccssmainless_n...">...</a></td>
|
|
362
|
<td class="code ">
|
|
362
|
<td class="code ">
|
|
363
|
<pre>@@ -2118,7 +2117,7 @@
|
|
363
|
<pre>@@ -2118,7 +2117,7 @@
|
|
364
|
</pre>
|
|
364
|
</pre>
|
|
365
|
</td>
|
|
365
|
</td>
|
|
366
|
</tr>
|
|
366
|
</tr>
|
|
367
|
<tr class="line unmod">
|
|
367
|
<tr class="line unmod">
|
|
368
|
<td id="rhodecodepubliccssmainless_o2118" class="lineno old"><a href="#rhodecodepubliccssmainless_o2118">2118</a></td>
|
|
368
|
<td id="rhodecodepubliccssmainless_o2118" class="lineno old"><a href="#rhodecodepubliccssmainless_o2118">2118</a></td>
|
|
369
|
<td id="rhodecodepubliccssmainless_n2117" class="lineno new"><a href="#rhodecodepubliccssmainless_n2117">2117</a></td>
|
|
369
|
<td id="rhodecodepubliccssmainless_n2117" class="lineno new"><a href="#rhodecodepubliccssmainless_n2117">2117</a></td>
|
|
370
|
<td class="code ">
|
|
370
|
<td class="code ">
|
|
371
|
<pre></pre>
|
|
371
|
<pre></pre>
|
|
372
|
</td>
|
|
372
|
</td>
|
|
373
|
</tr>
|
|
373
|
</tr>
|
|
374
|
<tr class="line unmod">
|
|
374
|
<tr class="line unmod">
|
|
375
|
<td id="rhodecodepubliccssmainless_o2119" class="lineno old"><a href="#rhodecodepubliccssmainless_o2119">2119</a></td>
|
|
375
|
<td id="rhodecodepubliccssmainless_o2119" class="lineno old"><a href="#rhodecodepubliccssmainless_o2119">2119</a></td>
|
|
376
|
<td id="rhodecodepubliccssmainless_n2118" class="lineno new"><a href="#rhodecodepubliccssmainless_n2118">2118</a></td>
|
|
376
|
<td id="rhodecodepubliccssmainless_n2118" class="lineno new"><a href="#rhodecodepubliccssmainless_n2118">2118</a></td>
|
|
377
|
<td class="code ">
|
|
377
|
<td class="code ">
|
|
378
|
<pre><span class="tab-escape"> </span>a {
|
|
378
|
<pre><span class="tab-escape"> </span>a {
|
|
379
|
</pre>
|
|
379
|
</pre>
|
|
380
|
</td>
|
|
380
|
</td>
|
|
381
|
</tr>
|
|
381
|
</tr>
|
|
382
|
<tr class="line unmod">
|
|
382
|
<tr class="line unmod">
|
|
383
|
<td id="rhodecodepubliccssmainless_o2120" class="lineno old"><a href="#rhodecodepubliccssmainless_o2120">2120</a></td>
|
|
383
|
<td id="rhodecodepubliccssmainless_o2120" class="lineno old"><a href="#rhodecodepubliccssmainless_o2120">2120</a></td>
|
|
384
|
<td id="rhodecodepubliccssmainless_n2119" class="lineno new"><a href="#rhodecodepubliccssmainless_n2119">2119</a></td>
|
|
384
|
<td id="rhodecodepubliccssmainless_n2119" class="lineno new"><a href="#rhodecodepubliccssmainless_n2119">2119</a></td>
|
|
385
|
<td class="code ">
|
|
385
|
<td class="code ">
|
|
386
|
<pre><span class="tab-escape"> </span><span class="tab-escape"> </span>display:block;
|
|
386
|
<pre><span class="tab-escape"> </span><span class="tab-escape"> </span>display:block;
|
|
387
|
</pre>
|
|
387
|
</pre>
|
|
388
|
</td>
|
|
388
|
</td>
|
|
389
|
</tr>
|
|
389
|
</tr>
|
|
390
|
<tr class="line del">
|
|
390
|
<tr class="line del">
|
|
391
|
<td id="rhodecodepubliccssmainless_o2121" class="lineno old"><a href="#rhodecodepubliccssmainless_o2121">2121</a></td>
|
|
391
|
<td id="rhodecodepubliccssmainless_o2121" class="lineno old"><a href="#rhodecodepubliccssmainless_o2121">2121</a></td>
|
|
392
|
<td class="lineno new"><a href="#rhodecodepubliccssmainless_n"></a></td>
|
|
392
|
<td class="lineno new"><a href="#rhodecodepubliccssmainless_n"></a></td>
|
|
393
|
<td class="code ">
|
|
393
|
<td class="code ">
|
|
394
|
<pre><span class="tab-escape"> </span><del><span< del=""> <del>class=</del><del>"tab-escape"</del><del>> </del>padding: <del>0</del>;
|
|
394
|
<pre><span class="tab-escape"> </span><del><span< del=""> <del>class=</del><del>"tab-escape"</del><del>> </del>padding: <del>0</del>;
|
|
395
|
</span<></del></pre>
|
|
395
|
</span<></del></pre>
|
|
396
|
</td>
|
|
396
|
</td>
|
|
397
|
</tr>
|
|
397
|
</tr>
|
|
398
|
<tr class="line add">
|
|
398
|
<tr class="line add">
|
|
399
|
<td class="lineno old"><a href="#rhodecodepubliccssmainless_o"></a></td>
|
|
399
|
<td class="lineno old"><a href="#rhodecodepubliccssmainless_o"></a></td>
|
|
400
|
<td id="rhodecodepubliccssmainless_n2120" class="lineno new"><a href="#rhodecodepubliccssmainless_n2120">2120</a></td>
|
|
400
|
<td id="rhodecodepubliccssmainless_n2120" class="lineno new"><a href="#rhodecodepubliccssmainless_n2120">2120</a></td>
|
|
401
|
<td class="code ">
|
|
401
|
<td class="code ">
|
|
402
|
<pre><span class="tab-escape"> </span><ins> </ins> <ins> </ins><ins> </ins>padding: <ins>.9em</ins>;
|
|
402
|
<pre><span class="tab-escape"> </span><ins> </ins> <ins> </ins><ins> </ins>padding: <ins>.9em</ins>;
|
|
403
|
</pre>
|
|
403
|
</pre>
|
|
404
|
</td>
|
|
404
|
</td>
|
|
405
|
</tr>
|
|
405
|
</tr>
|
|
406
|
<tr class="line unmod">
|
|
406
|
<tr class="line unmod">
|
|
407
|
<td id="rhodecodepubliccssmainless_o2122" class="lineno old"><a href="#rhodecodepubliccssmainless_o2122">2122</a></td>
|
|
407
|
<td id="rhodecodepubliccssmainless_o2122" class="lineno old"><a href="#rhodecodepubliccssmainless_o2122">2122</a></td>
|
|
408
|
<td id="rhodecodepubliccssmainless_n2121" class="lineno new"><a href="#rhodecodepubliccssmainless_n2121">2121</a></td>
|
|
408
|
<td id="rhodecodepubliccssmainless_n2121" class="lineno new"><a href="#rhodecodepubliccssmainless_n2121">2121</a></td>
|
|
409
|
<td class="code ">
|
|
409
|
<td class="code ">
|
|
410
|
<pre></pre>
|
|
410
|
<pre></pre>
|
|
411
|
</td>
|
|
411
|
</td>
|
|
412
|
</tr>
|
|
412
|
</tr>
|
|
413
|
<tr class="line unmod">
|
|
413
|
<tr class="line unmod">
|
|
414
|
<td id="rhodecodepubliccssmainless_o2123" class="lineno old"><a href="#rhodecodepubliccssmainless_o2123">2123</a></td>
|
|
414
|
<td id="rhodecodepubliccssmainless_o2123" class="lineno old"><a href="#rhodecodepubliccssmainless_o2123">2123</a></td>
|
|
415
|
<td id="rhodecodepubliccssmainless_n2122" class="lineno new"><a href="#rhodecodepubliccssmainless_n2122">2122</a></td>
|
|
415
|
<td id="rhodecodepubliccssmainless_n2122" class="lineno new"><a href="#rhodecodepubliccssmainless_n2122">2122</a></td>
|
|
416
|
<td class="code ">
|
|
416
|
<td class="code ">
|
|
417
|
<pre><span class="tab-escape"> </span><span class="tab-escape"> </span>&:after {
|
|
417
|
<pre><span class="tab-escape"> </span><span class="tab-escape"> </span>&:after {
|
|
418
|
</pre>
|
|
418
|
</pre>
|
|
419
|
</td>
|
|
419
|
</td>
|
|
420
|
</tr>
|
|
420
|
</tr>
|
|
421
|
<tr class="line unmod">
|
|
421
|
<tr class="line unmod">
|
|
422
|
<td id="rhodecodepubliccssmainless_o2124" class="lineno old"><a href="#rhodecodepubliccssmainless_o2124">2124</a></td>
|
|
422
|
<td id="rhodecodepubliccssmainless_o2124" class="lineno old"><a href="#rhodecodepubliccssmainless_o2124">2124</a></td>
|
|
423
|
<td id="rhodecodepubliccssmainless_n2123" class="lineno new"><a href="#rhodecodepubliccssmainless_n2123">2123</a></td>
|
|
423
|
<td id="rhodecodepubliccssmainless_n2123" class="lineno new"><a href="#rhodecodepubliccssmainless_n2123">2123</a></td>
|
|
424
|
<td class="code ">
|
|
424
|
<td class="code ">
|
|
425
|
<pre><span class="tab-escape"> </span><span class="tab-escape"> </span><span class="tab-escape"> </span>content: "\00A0\25BE";
|
|
425
|
<pre><span class="tab-escape"> </span><span class="tab-escape"> </span><span class="tab-escape"> </span>content: "\00A0\25BE";
|
|
426
|
</pre>
|
|
426
|
</pre>
|
|
427
|
</td>
|
|
427
|
</td>
|
|
428
|
</tr>
|
|
428
|
</tr>
|
|
429
|
</tbody></table>
|
|
429
|
</tbody></table>
|
|
430
|
</div>
|
|
430
|
</div>
|
|
431
|
</div>
|
|
431
|
</div>
|
|
432
|
</div>
|
|
432
|
</div>
|
|
433
|
|
|
433
|
|
|
434
|
</td>
|
|
434
|
</td>
|
|
435
|
</tr>
|
|
435
|
</tr>
|
|
436
|
</tbody></table>
|
|
436
|
</tbody></table>
|
|
437
|
</div>
|
|
437
|
</div>
|
|
438
|
|
|
438
|
|
|
439
|
|
|
439
|
|
|
440
|
|
|
440
|
|
|
441
|
|
|
441
|
|
|
442
|
|
|
442
|
|
|
443
|
|
|
443
|
|
|
444
|
|
|
444
|
|
|
445
|
|
|
445
|
|
|
446
|
|
|
446
|
|
|
447
|
<!--
|
|
447
|
<!--
|
|
448
|
File View
|
|
448
|
File View
|
|
449
|
-->
|
|
449
|
-->
|
|
450
|
|
|
450
|
|
|
451
|
##TODO: lisa: I believe this needs to be updated as the layout has changed.
|
|
451
|
##TODO: lisa: I believe this needs to be updated as the layout has changed.
|
|
452
|
<h2>File View</h2>
|
|
452
|
<h2>File View</h2>
|
|
453
|
|
|
453
|
|
|
454
|
<div class="codeblock">
|
|
454
|
<div class="codeblock">
|
|
455
|
<div class="code-header">
|
|
455
|
<div class="code-header">
|
|
456
|
<div class="stats">
|
|
456
|
<div class="stats">
|
|
457
|
<div class="img">
|
|
457
|
<div class="img">
|
|
458
|
<i class="icon-file"></i>
|
|
458
|
<i class="icon-file"></i>
|
|
459
|
<span class="revision_id item"><a href="/example/changeset/fc252256eb0fcb4f2613e66f0126ea27967ae28c">r5487:fc252256eb0f</a></span>
|
|
459
|
<span class="revision_id item"><a href="/example/changeset/fc252256eb0fcb4f2613e66f0126ea27967ae28c">r5487:fc252256eb0f</a></span>
|
|
460
|
<span>1.2 KiB</span>
|
|
460
|
<span>1.2 KiB</span>
|
|
461
|
<span class="item last">text/x-python</span>
|
|
461
|
<span class="item last">text/x-python</span>
|
|
462
|
<div class="buttons">
|
|
462
|
<div class="buttons">
|
|
463
|
|
|
463
|
|
|
464
|
<a id="file_history_overview" class="btn btn-mini" href="#">
|
|
464
|
<a id="file_history_overview" class="btn btn-mini" href="#">
|
|
465
|
<i class="icon-time"></i> history
|
|
465
|
<i class="icon-time"></i> history
|
|
466
|
</a>
|
|
466
|
</a>
|
|
467
|
<a id="file_history_overview_full" class="btn btn-mini" style="display: none" href="/example/changelog/fc252256eb0fcb4f2613e66f0126ea27967ae28c/rhodecode/websetup.py">
|
|
467
|
<a id="file_history_overview_full" class="btn btn-mini" style="display: none" href="/example/changelog/fc252256eb0fcb4f2613e66f0126ea27967ae28c/rhodecode/websetup.py">
|
|
468
|
<i class="icon-time"></i> show full history
|
|
468
|
<i class="icon-time"></i> show full history
|
|
469
|
</a>
|
|
469
|
</a>
|
|
470
|
<a class="btn btn-mini" href="/example/annotate/fc252256eb0fcb4f2613e66f0126ea27967ae28c/rhodecode/websetup.py">annotation</a>
|
|
470
|
<a class="btn btn-mini" href="/example/annotate/fc252256eb0fcb4f2613e66f0126ea27967ae28c/rhodecode/websetup.py">annotation</a>
|
|
471
|
<a class="btn btn-mini" href="/example/raw/fc252256eb0fcb4f2613e66f0126ea27967ae28c/rhodecode/websetup.py">raw</a>
|
|
471
|
<a class="btn btn-mini" href="/example/raw/fc252256eb0fcb4f2613e66f0126ea27967ae28c/rhodecode/websetup.py">raw</a>
|
|
472
|
<a class="btn btn-mini" href="/example/rawfile/fc252256eb0fcb4f2613e66f0126ea27967ae28c/rhodecode/websetup.py">
|
|
472
|
<a class="btn btn-mini" href="/example/rawfile/fc252256eb0fcb4f2613e66f0126ea27967ae28c/rhodecode/websetup.py">
|
|
473
|
download
|
|
473
|
download
|
|
474
|
</a>
|
|
474
|
</a>
|
|
475
|
|
|
475
|
|
|
476
|
<a class="btn btn-mini disabled tooltip" href="#" title="Editing files allowed only when on branch head commit">edit</a>
|
|
476
|
<a class="btn btn-mini disabled tooltip" href="#" title="Editing files allowed only when on branch head commit">edit</a>
|
|
477
|
<a class="btn btn-mini btn-danger disabled tooltip" href="#" title="Deleting files allowed only when on branch head commit">delete</a>
|
|
477
|
<a class="btn btn-mini btn-danger disabled tooltip" href="#" title="Deleting files allowed only when on branch head commit">delete</a>
|
|
478
|
</div>
|
|
478
|
</div>
|
|
479
|
</div>
|
|
479
|
</div>
|
|
480
|
</div>
|
|
480
|
</div>
|
|
481
|
<div id="file_history_container"></div>
|
|
481
|
<div id="file_history_container"></div>
|
|
482
|
<div class="author">
|
|
482
|
<div class="author">
|
|
483
|
<div class="gravatar">
|
|
483
|
<div class="gravatar">
|
|
484
|
<img alt="gravatar" src="https://secure.gravatar.com/avatar/99e27b99c64003ca8c9875c9e3843495?d=identicon&s=32" height="16" width="16">
|
|
484
|
<img alt="gravatar" src="https://secure.gravatar.com/avatar/99e27b99c64003ca8c9875c9e3843495?d=identicon&s=32" height="16" width="16">
|
|
485
|
</div>
|
|
485
|
</div>
|
|
486
|
<div title="Marcin Kuzminski <marcin@python-works.com>" class="user">Marcin Kuzminski - <span class="tooltip" title="Wed, 02 Jul 2014 08:48:15">6m and 12d ago</span></div>
|
|
486
|
<div title="Marcin Kuzminski <marcin@python-works.com>" class="user">Marcin Kuzminski - <span class="tooltip" title="Wed, 02 Jul 2014 08:48:15">6m and 12d ago</span></div>
|
|
487
|
</div>
|
|
487
|
</div>
|
|
488
|
<div id="trimmed_message_box" class="commit">License changes</div>
|
|
488
|
<div id="trimmed_message_box" class="commit">License changes</div>
|
|
489
|
<div id="message_expand" style="display: none;">
|
|
489
|
<div id="message_expand" style="display: none;">
|
|
490
|
<i class="icon-resize-vertical"></i>
|
|
490
|
<i class="icon-resize-vertical"></i>
|
|
491
|
expand
|
|
491
|
expand
|
|
492
|
<i class="icon-resize-vertical"></i>
|
|
492
|
<i class="icon-resize-vertical"></i>
|
|
493
|
</div>
|
|
493
|
</div>
|
|
494
|
</div>
|
|
494
|
</div>
|
|
495
|
<div class="code-body">
|
|
495
|
<div class="code-body">
|
|
496
|
<table class="code-highlighttable"><tbody><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L1"> 1</a>
|
|
496
|
<table class="code-highlighttable"><tbody><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L1"> 1</a>
|
|
497
|
<a href="#L2"> 2</a>
|
|
497
|
<a href="#L2"> 2</a>
|
|
498
|
<a href="#L3"> 3</a>
|
|
498
|
<a href="#L3"> 3</a>
|
|
499
|
<a href="#L4"> 4</a>
|
|
499
|
<a href="#L4"> 4</a>
|
|
500
|
<a href="#L5"> 5</a>
|
|
500
|
<a href="#L5"> 5</a>
|
|
501
|
<a href="#L6"> 6</a>
|
|
501
|
<a href="#L6"> 6</a>
|
|
502
|
<a href="#L7"> 7</a>
|
|
502
|
<a href="#L7"> 7</a>
|
|
503
|
<a href="#L8"> 8</a>
|
|
503
|
<a href="#L8"> 8</a>
|
|
504
|
<a href="#L9"> 9</a>
|
|
504
|
<a href="#L9"> 9</a>
|
|
505
|
<a href="#L10">10</a>
|
|
505
|
<a href="#L10">10</a>
|
|
506
|
<a href="#L11">11</a>
|
|
506
|
<a href="#L11">11</a>
|
|
507
|
<a href="#L12">12</a>
|
|
507
|
<a href="#L12">12</a>
|
|
508
|
<a href="#L13">13</a>
|
|
508
|
<a href="#L13">13</a>
|
|
509
|
<a href="#L14">14</a>
|
|
509
|
<a href="#L14">14</a>
|
|
510
|
<a href="#L15">15</a>
|
|
510
|
<a href="#L15">15</a>
|
|
511
|
<a href="#L16">16</a>
|
|
511
|
<a href="#L16">16</a>
|
|
512
|
<a href="#L17">17</a>
|
|
512
|
<a href="#L17">17</a>
|
|
513
|
<a href="#L18">18</a>
|
|
513
|
<a href="#L18">18</a>
|
|
514
|
<a href="#L19">19</a>
|
|
514
|
<a href="#L19">19</a>
|
|
515
|
<a href="#L20">20</a>
|
|
515
|
<a href="#L20">20</a>
|
|
516
|
<a href="#L21">21</a>
|
|
516
|
<a href="#L21">21</a>
|
|
517
|
<a href="#L22">22</a>
|
|
517
|
<a href="#L22">22</a>
|
|
518
|
<a href="#L23">23</a>
|
|
518
|
<a href="#L23">23</a>
|
|
519
|
<a href="#L24">24</a>
|
|
519
|
<a href="#L24">24</a>
|
|
520
|
<a href="#L25">25</a>
|
|
520
|
<a href="#L25">25</a>
|
|
521
|
<a href="#L26">26</a>
|
|
521
|
<a href="#L26">26</a>
|
|
522
|
<a href="#L27">27</a>
|
|
522
|
<a href="#L27">27</a>
|
|
523
|
<a href="#L28">28</a>
|
|
523
|
<a href="#L28">28</a>
|
|
524
|
<a href="#L29">29</a>
|
|
524
|
<a href="#L29">29</a>
|
|
525
|
<a href="#L30">30</a>
|
|
525
|
<a href="#L30">30</a>
|
|
526
|
<a href="#L31">31</a>
|
|
526
|
<a href="#L31">31</a>
|
|
527
|
<a href="#L32">32</a>
|
|
527
|
<a href="#L32">32</a>
|
|
528
|
<a href="#L33">33</a>
|
|
528
|
<a href="#L33">33</a>
|
|
529
|
<a href="#L34">34</a>
|
|
529
|
<a href="#L34">34</a>
|
|
530
|
<a href="#L35">35</a>
|
|
530
|
<a href="#L35">35</a>
|
|
531
|
<a href="#L36">36</a>
|
|
531
|
<a href="#L36">36</a>
|
|
532
|
<a href="#L37">37</a>
|
|
532
|
<a href="#L37">37</a>
|
|
533
|
<a href="#L38">38</a>
|
|
533
|
<a href="#L38">38</a>
|
|
534
|
<a href="#L39">39</a>
|
|
534
|
<a href="#L39">39</a>
|
|
535
|
<a href="#L40">40</a>
|
|
535
|
<a href="#L40">40</a>
|
|
536
|
<a href="#L41">41</a>
|
|
536
|
<a href="#L41">41</a>
|
|
537
|
<a href="#L42">42</a></pre></div></td><td id="hlcode" class="code"><div class="code-highlight"><pre><div id="L1"><a name="L-1"></a><span class="c"># -*- coding: utf-8 -*-</span>
|
|
537
|
<a href="#L42">42</a></pre></div></td><td id="hlcode" class="code"><div class="code-highlight"><pre><div id="L1"><a name="L-1"></a><span class="c"># -*- coding: utf-8 -*-</span>
|
|
538
|
</div><div id="L2"><a name="L-2"></a>
|
|
538
|
</div><div id="L2"><a name="L-2"></a>
|
|
539
|
</div><div id="L3"><a name="L-3"></a><span class="c"># Published under Business Source License.</span>
|
|
539
|
</div><div id="L3"><a name="L-3"></a><span class="c"># Published under Business Source License.</span>
|
|
540
|
</div><div id="L4"><a name="L-4"></a><span class="c"># Read the full license text at https://rhodecode.com/licenses.</span>
|
|
540
|
</div><div id="L4"><a name="L-4"></a><span class="c"># Read the full license text at https://rhodecode.com/licenses.</span>
|
|
541
|
</div><div id="L5"><a name="L-5"></a><span class="sd">"""</span>
|
|
541
|
</div><div id="L5"><a name="L-5"></a><span class="sd">"""</span>
|
|
542
|
</div><div id="L6"><a name="L-6"></a><span class="sd">rhodecode.websetup</span>
|
|
542
|
</div><div id="L6"><a name="L-6"></a><span class="sd">rhodecode.websetup</span>
|
|
543
|
</div><div id="L7"><a name="L-7"></a><span class="sd">~~~~~~~~~~~~~~~~~~</span>
|
|
543
|
</div><div id="L7"><a name="L-7"></a><span class="sd">~~~~~~~~~~~~~~~~~~</span>
|
|
544
|
</div><div id="L8"><a name="L-8"></a>
|
|
544
|
</div><div id="L8"><a name="L-8"></a>
|
|
545
|
</div><div id="L9"><a name="L-9"></a><span class="sd">Weboperations and setup for rhodecode. Intentionally long line to show what will happen if this line does not fit onto the screen. It might have some horizontal scrolling applied or some other fancy mechanism to deal with it.</span>
|
|
545
|
</div><div id="L9"><a name="L-9"></a><span class="sd">Weboperations and setup for rhodecode. Intentionally long line to show what will happen if this line does not fit onto the screen. It might have some horizontal scrolling applied or some other fancy mechanism to deal with it.</span>
|
|
546
|
</div><div id="L10"><a name="L-10"></a>
|
|
546
|
</div><div id="L10"><a name="L-10"></a>
|
|
547
|
</div><div id="L11"><a name="L-11"></a><span class="sd">:created_on: Dec 11, 2010</span>
|
|
547
|
</div><div id="L11"><a name="L-11"></a><span class="sd">:created_on: Dec 11, 2010</span>
|
|
548
|
</div><div id="L12"><a name="L-12"></a><span class="sd">:author: marcink</span>
|
|
548
|
</div><div id="L12"><a name="L-12"></a><span class="sd">:author: marcink</span>
|
|
549
|
</div><div id="L13"><a name="L-13"></a><span class="sd">:copyright: (c) 2013-2015 RhodeCode GmbH.</span>
|
|
549
|
</div><div id="L13"><a name="L-13"></a><span class="sd">:copyright: (c) 2013-2015 RhodeCode GmbH.</span>
|
|
550
|
</div><div id="L14"><a name="L-14"></a><span class="sd">:license: Business Source License, see LICENSE for more details.</span>
|
|
550
|
</div><div id="L14"><a name="L-14"></a><span class="sd">:license: Business Source License, see LICENSE for more details.</span>
|
|
551
|
</div><div id="L15"><a name="L-15"></a><span class="sd">"""</span>
|
|
551
|
</div><div id="L15"><a name="L-15"></a><span class="sd">"""</span>
|
|
552
|
</div><div id="L16"><a name="L-16"></a>
|
|
552
|
</div><div id="L16"><a name="L-16"></a>
|
|
553
|
</div><div id="L17"><a name="L-17"></a><span class="kn">import</span> <span class="nn">logging</span>
|
|
553
|
</div><div id="L17"><a name="L-17"></a><span class="kn">import</span> <span class="nn">logging</span>
|
|
554
|
</div><div id="L18"><a name="L-18"></a>
|
|
554
|
</div><div id="L18"><a name="L-18"></a>
|
|
555
|
</div><div id="L19"><a name="L-19"></a><span class="kn">from</span> <span class="nn">rhodecode.config.environment</span> <span class="kn">import</span> <span class="n">load_environment</span>
|
|
555
|
</div><div id="L19"><a name="L-19"></a><span class="kn">from</span> <span class="nn">rhodecode.config.environment</span> <span class="kn">import</span> <span class="n">load_environment</span>
|
|
556
|
</div><div id="L20"><a name="L-20"></a><span class="kn">from</span> <span class="nn">rhodecode.lib.db_manage</span> <span class="kn">import</span> <span class="n">DbManage</span>
|
|
556
|
</div><div id="L20"><a name="L-20"></a><span class="kn">from</span> <span class="nn">rhodecode.lib.db_manage</span> <span class="kn">import</span> <span class="n">DbManage</span>
|
|
557
|
</div><div id="L21"><a name="L-21"></a><span class="kn">from</span> <span class="nn">rhodecode.model.meta</span> <span class="kn">import</span> <span class="n">Session</span>
|
|
557
|
</div><div id="L21"><a name="L-21"></a><span class="kn">from</span> <span class="nn">rhodecode.model.meta</span> <span class="kn">import</span> <span class="n">Session</span>
|
|
558
|
</div><div id="L22"><a name="L-22"></a>
|
|
558
|
</div><div id="L22"><a name="L-22"></a>
|
|
559
|
</div><div id="L23"><a name="L-23"></a>
|
|
559
|
</div><div id="L23"><a name="L-23"></a>
|
|
560
|
</div><div id="L24"><a name="L-24"></a><span class="n">log</span> <span class="o">=</span> <span class="n">logging</span><span class="o">.</span><span class="n">getLogger</span><span class="p">(</span><span class="n">__name__</span><span class="p">)</span>
|
|
560
|
</div><div id="L24"><a name="L-24"></a><span class="n">log</span> <span class="o">=</span> <span class="n">logging</span><span class="o">.</span><span class="n">getLogger</span><span class="p">(</span><span class="n">__name__</span><span class="p">)</span>
|
|
561
|
</div><div id="L25"><a name="L-25"></a>
|
|
561
|
</div><div id="L25"><a name="L-25"></a>
|
|
562
|
</div><div id="L26"><a name="L-26"></a>
|
|
562
|
</div><div id="L26"><a name="L-26"></a>
|
|
563
|
</div><div id="L27"><a name="L-27"></a><span class="k">def</span> <span class="nf">setup_app</span><span class="p">(</span><span class="n">command</span><span class="p">,</span> <span class="n">conf</span><span class="p">,</span> <span class="nb">vars</span><span class="p">):</span>
|
|
563
|
</div><div id="L27"><a name="L-27"></a><span class="k">def</span> <span class="nf">setup_app</span><span class="p">(</span><span class="n">command</span><span class="p">,</span> <span class="n">conf</span><span class="p">,</span> <span class="nb">vars</span><span class="p">):</span>
|
|
564
|
</div><div id="L28"><a name="L-28"></a> <span class="sd">"""Place any commands to setup rhodecode here"""</span>
|
|
564
|
</div><div id="L28"><a name="L-28"></a> <span class="sd">"""Place any commands to setup rhodecode here"""</span>
|
|
565
|
</div><div id="L29"><a name="L-29"></a> <span class="n">dbconf</span> <span class="o">=</span> <span class="n">conf</span><span class="p">[</span><span class="s">'sqlalchemy.db1.url'</span><span class="p">]</span>
|
|
565
|
</div><div id="L29"><a name="L-29"></a> <span class="n">dbconf</span> <span class="o">=</span> <span class="n">conf</span><span class="p">[</span><span class="s">'sqlalchemy.db1.url'</span><span class="p">]</span>
|
|
566
|
</div><div id="L30"><a name="L-30"></a> <span class="n">dbmanage</span> <span class="o">=</span> <span class="n">DbManage</span><span class="p">(</span><span class="n">log_sql</span><span class="o">=</span><span class="bp">True</span><span class="p">,</span> <span class="n">dbconf</span><span class="o">=</span><span class="n">dbconf</span><span class="p">,</span> <span class="n">root</span><span class="o">=</span><span class="n">conf</span><span class="p">[</span><span class="s">'here'</span><span class="p">],</span>
|
|
566
|
</div><div id="L30"><a name="L-30"></a> <span class="n">dbmanage</span> <span class="o">=</span> <span class="n">DbManage</span><span class="p">(</span><span class="n">log_sql</span><span class="o">=</span><span class="bp">True</span><span class="p">,</span> <span class="n">dbconf</span><span class="o">=</span><span class="n">dbconf</span><span class="p">,</span> <span class="n">root</span><span class="o">=</span><span class="n">conf</span><span class="p">[</span><span class="s">'here'</span><span class="p">],</span>
|
|
567
|
</div><div id="L31"><a name="L-31"></a> <span class="n">tests</span><span class="o">=</span><span class="bp">False</span><span class="p">,</span> <span class="n">cli_args</span><span class="o">=</span><span class="n">command</span><span class="o">.</span><span class="n">options</span><span class="o">.</span><span class="n">__dict__</span><span class="p">)</span>
|
|
567
|
</div><div id="L31"><a name="L-31"></a> <span class="n">tests</span><span class="o">=</span><span class="bp">False</span><span class="p">,</span> <span class="n">cli_args</span><span class="o">=</span><span class="n">command</span><span class="o">.</span><span class="n">options</span><span class="o">.</span><span class="n">__dict__</span><span class="p">)</span>
|
|
568
|
</div><div id="L32"><a name="L-32"></a> <span class="n">dbmanage</span><span class="o">.</span><span class="n">create_tables</span><span class="p">(</span><span class="n">override</span><span class="o">=</span><span class="bp">True</span><span class="p">)</span>
|
|
568
|
</div><div id="L32"><a name="L-32"></a> <span class="n">dbmanage</span><span class="o">.</span><span class="n">create_tables</span><span class="p">(</span><span class="n">override</span><span class="o">=</span><span class="bp">True</span><span class="p">)</span>
|
|
569
|
</div><div id="L33"><a name="L-33"></a> <span class="n">dbmanage</span><span class="o">.</span><span class="n">set_db_version</span><span class="p">()</span>
|
|
569
|
</div><div id="L33"><a name="L-33"></a> <span class="n">dbmanage</span><span class="o">.</span><span class="n">set_db_version</span><span class="p">()</span>
|
|
570
|
</div><div id="L34"><a name="L-34"></a> <span class="n">opts</span> <span class="o">=</span> <span class="n">dbmanage</span><span class="o">.</span><span class="n">config_prompt</span><span class="p">(</span><span class="bp">None</span><span class="p">)</span>
|
|
570
|
</div><div id="L34"><a name="L-34"></a> <span class="n">opts</span> <span class="o">=</span> <span class="n">dbmanage</span><span class="o">.</span><span class="n">config_prompt</span><span class="p">(</span><span class="bp">None</span><span class="p">)</span>
|
|
571
|
</div><div id="L35"><a name="L-35"></a> <span class="n">dbmanage</span><span class="o">.</span><span class="n">create_settings</span><span class="p">(</span><span class="n">opts</span><span class="p">)</span>
|
|
571
|
</div><div id="L35"><a name="L-35"></a> <span class="n">dbmanage</span><span class="o">.</span><span class="n">create_settings</span><span class="p">(</span><span class="n">opts</span><span class="p">)</span>
|
|
572
|
</div><div id="L36"><a name="L-36"></a> <span class="n">dbmanage</span><span class="o">.</span><span class="n">create_default_user</span><span class="p">()</span>
|
|
572
|
</div><div id="L36"><a name="L-36"></a> <span class="n">dbmanage</span><span class="o">.</span><span class="n">create_default_user</span><span class="p">()</span>
|
|
573
|
</div><div id="L37"><a name="L-37"></a> <span class="n">dbmanage</span><span class="o">.</span><span class="n">admin_prompt</span><span class="p">()</span>
|
|
573
|
</div><div id="L37"><a name="L-37"></a> <span class="n">dbmanage</span><span class="o">.</span><span class="n">admin_prompt</span><span class="p">()</span>
|
|
574
|
</div><div id="L38"><a name="L-38"></a> <span class="n">dbmanage</span><span class="o">.</span><span class="n">create_permissions</span><span class="p">()</span>
|
|
574
|
</div><div id="L38"><a name="L-38"></a> <span class="n">dbmanage</span><span class="o">.</span><span class="n">create_permissions</span><span class="p">()</span>
|
|
575
|
</div><div id="L39"><a name="L-39"></a> <span class="n">dbmanage</span><span class="o">.</span><span class="n">populate_default_permissions</span><span class="p">()</span>
|
|
575
|
</div><div id="L39"><a name="L-39"></a> <span class="n">dbmanage</span><span class="o">.</span><span class="n">populate_default_permissions</span><span class="p">()</span>
|
|
576
|
</div><div id="L40"><a name="L-40"></a> <span class="n">Session</span><span class="p">()</span><span class="o">.</span><span class="n">commit</span><span class="p">()</span>
|
|
576
|
</div><div id="L40"><a name="L-40"></a> <span class="n">Session</span><span class="p">()</span><span class="o">.</span><span class="n">commit</span><span class="p">()</span>
|
|
577
|
</div><div id="L41"><a name="L-41"></a> <span class="n">load_environment</span><span class="p">(</span><span class="n">conf</span><span class="o">.</span><span class="n">global_conf</span><span class="p">,</span> <span class="n">conf</span><span class="o">.</span><span class="n">local_conf</span><span class="p">,</span> <span class="n">initial</span><span class="o">=</span><span class="bp">True</span><span class="p">)</span>
|
|
577
|
</div><div id="L41"><a name="L-41"></a> <span class="n">load_environment</span><span class="p">(</span><span class="n">conf</span><span class="o">.</span><span class="n">global_conf</span><span class="p">,</span> <span class="n">conf</span><span class="o">.</span><span class="n">local_conf</span><span class="p">,</span> <span class="n">initial</span><span class="o">=</span><span class="bp">True</span><span class="p">)</span>
|
|
578
|
</div><div id="L42"><a name="L-42"></a> <span class="n">DbManage</span><span class="o">.</span><span class="n">check_waitress</span><span class="p">()</span>
|
|
578
|
</div><div id="L42"><a name="L-42"></a> <span class="n">DbManage</span><span class="o">.</span><span class="n">check_waitress</span><span class="p">()</span>
|
|
579
|
</div></pre></div>
|
|
579
|
</div></pre></div>
|
|
580
|
</td></tr></tbody></table>
|
|
580
|
</td></tr></tbody></table>
|
|
581
|
</div>
|
|
581
|
</div>
|
|
582
|
</div>
|
|
582
|
</div>
|
|
583
|
|
|
583
|
|
|
584
|
|
|
584
|
|
|
585
|
|
|
585
|
|
|
586
|
|
|
586
|
|
|
587
|
|
|
587
|
|
|
588
|
|
|
588
|
|
|
589
|
|
|
589
|
|
|
590
|
|
|
590
|
|
|
591
|
|
|
591
|
|
|
592
|
<!--
|
|
592
|
<!--
|
|
593
|
Gist Edit
|
|
593
|
Gist Edit
|
|
594
|
-->
|
|
594
|
-->
|
|
595
|
|
|
595
|
|
|
596
|
|
|
596
|
|
|
597
|
<h2>Gist Edit</h2>
|
|
597
|
<h2>Gist Edit</h2>
|
|
598
|
|
|
598
|
|
|
599
|
<div class="codeblock">
|
|
599
|
<div class="codeblock">
|
|
600
|
<div class="code-header">
|
|
600
|
<div class="code-header">
|
|
601
|
<div class="form">
|
|
601
|
<div class="form">
|
|
602
|
<div class="fields">
|
|
602
|
<div class="fields">
|
|
603
|
<input id="filename" name="filename" placeholder="name this file..." size="30" type="text">
|
|
603
|
<input id="filename" name="filename" placeholder="name this file..." size="30" type="text">
|
|
604
|
<div class="select2-container drop-menu" id="s2id_mimetype"><a href="javascript:void(0)" class="select2-choice" tabindex="-1"> <span class="select2-chosen" id="select2-chosen-3">Python</span><abbr class="select2-search-choice-close"></abbr> <span class="select2-arrow" role="presentation"><b role="presentation"></b></span></a><label for="s2id_autogen3" class="select2-offscreen"></label><input class="select2-focusser select2-offscreen" type="text" aria-haspopup="true" role="button" aria-labelledby="select2-chosen-3" id="s2id_autogen3"><div class="select2-drop select2-display-none drop-menu-dropdown select2-with-searchbox"> <div class="select2-search"> <label for="s2id_autogen3_search" class="select2-offscreen"></label> <input type="text" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" class="select2-input" role="combobox" aria-expanded="true" aria-autocomplete="list" aria-owns="select2-results-3" id="s2id_autogen3_search" placeholder=""> </div> <ul class="select2-results" role="listbox" id="select2-results-3"> </ul></div></div><select id="mimetype" name="mimetype" tabindex="-1" title="" style="display: none;">
|
|
604
|
<div class="select2-container drop-menu" id="s2id_mimetype"><a href="javascript:void(0)" class="select2-choice" tabindex="-1"> <span class="select2-chosen" id="select2-chosen-3">Python</span><abbr class="select2-search-choice-close"></abbr> <span class="select2-arrow" role="presentation"><b role="presentation"></b></span></a><label for="s2id_autogen3" class="select2-offscreen"></label><input class="select2-focusser select2-offscreen" type="text" aria-haspopup="true" role="button" aria-labelledby="select2-chosen-3" id="s2id_autogen3"><div class="select2-drop select2-display-none drop-menu-dropdown select2-with-searchbox"> <div class="select2-search"> <label for="s2id_autogen3_search" class="select2-offscreen"></label> <input type="text" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" class="select2-input" role="combobox" aria-expanded="true" aria-autocomplete="list" aria-owns="select2-results-3" id="s2id_autogen3_search" placeholder=""> </div> <ul class="select2-results" role="listbox" id="select2-results-3"> </ul></div></div><select id="mimetype" name="mimetype" tabindex="-1" title="" style="display: none;">
|
|
605
|
<option selected="selected" value="plain">plain</option>
|
|
605
|
<option selected="selected" value="plain">plain</option>
|
|
606
|
<option value="text/apl" mode="apl">APL</option><option value="text/x-asterisk" mode="asterisk">Asterisk</option><option value="text/x-csrc" mode="clike">C</option><option value="text/x-c++src" mode="clike">C++</option><option value="text/x-cobol" mode="cobol">Cobol</option><option value="text/x-java" mode="clike">Java</option><option value="text/x-csharp" mode="clike">C#</option><option value="text/x-scala" mode="clike">Scala</option><option value="text/x-clojure" mode="clojure">Clojure</option><option value="text/x-coffeescript" mode="coffeescript">CoffeeScript</option><option value="text/x-common-lisp" mode="commonlisp">Common Lisp</option><option value="text/css" mode="css">CSS</option><option value="text/x-d" mode="d">D</option><option value="text/x-diff" mode="diff">diff</option><option value="application/xml-dtd" mode="dtd">DTD</option><option value="text/x-dylan" mode="dylan">Dylan</option><option value="text/x-ecl" mode="ecl">ECL</option><option value="text/x-eiffel" mode="eiffel">Eiffel</option><option value="text/x-erlang" mode="erlang">Erlang</option><option value="text/x-fortran" mode="fortran">Fortran</option><option value="text/x-fsharp" mode="mllike">F#</option><option value="text/x-gas" mode="gas">Gas</option><option value="text/x-go" mode="go">GO</option><option value="text/x-feature" mode="gherkin">Gherkin</option><option value="text/x-go" mode="go">Go</option><option value="text/x-groovy" mode="groovy">Groovy</option><option value="text/x-haml" mode="haml">HAML</option><option value="text/x-haskell" mode="haskell">Haskell</option><option value="text/x-haxe" mode="haxe">Haxe</option><option value="application/x-aspx" mode="htmlembedded">ASP.NET</option><option value="application/x-ejs" mode="htmlembedded">Embedded Javascript</option><option value="application/x-jsp" mode="htmlembedded">JavaServer Pages</option><option value="text/html" mode="htmlmixed">HTML</option><option value="message/http" mode="http">HTTP</option><option value="text/x-jade" mode="jade">Jade</option><option value="text/javascript" mode="javascript">JavaScript</option><option value="application/json" mode="javascript">JSON</option><option value="application/typescript" mode="javascript">TypeScript</option><option value="jinja2" mode="jinja2">Jinja2</option><option value="text/x-julia" mode="julia">Julia</option><option value="text/x-less" mode="less">LESS</option><option value="text/x-livescript" mode="livescript">LiveScript</option><option value="text/x-lua" mode="lua">Lua</option><option value="text/x-markdown" mode="markdown">Markdown (GitHub-flavour)</option><option value="text/mirc" mode="mirc">mIRC</option><option value="text/x-nginx-conf" mode="nginx">Nginx</option><option value="text/n-triples" mode="ntriples">NTriples</option><option value="text/x-ocaml" mode="ocaml">OCaml</option><option value="text/x-ocaml" mode="mllike">OCaml</option><option value="text/x-octave" mode="octave">Octave</option><option value="text/x-pascal" mode="pascal">Pascal</option><option value="null" mode="pegjs">PEG.js</option><option value="text/x-perl" mode="perl">Perl</option><option value="text/x-php" mode="php">PHP</option><option value="text/x-pig" mode="pig">Pig</option><option value="text/plain" mode="null">Plain Text</option><option value="text/x-properties" mode="properties">Properties files</option><option value="text/x-python" mode="python">Python</option><option value="text/x-puppet" mode="puppet">Puppet</option><option value="text/x-rsrc" mode="r">R</option><option value="text/x-rst" mode="rst">reStructuredText</option><option value="text/x-ruby" mode="ruby">Ruby</option><option value="text/x-rustsrc" mode="rust">Rust</option><option value="text/x-sass" mode="sass">Sass</option><option value="text/x-scheme" mode="scheme">Scheme</option><option value="text/x-scss" mode="css">SCSS</option><option value="text/x-sh" mode="shell">Shell</option><option value="application/sieve" mode="sieve">Sieve</option><option value="text/x-stsrc" mode="smalltalk">Smalltalk</option><option value="text/x-smarty" mode="smarty">Smarty</option><option value="text/x-smarty" mode="smartymixed">SmartyMixed</option><option value="text/x-solr" mode="solr">Solr</option><option value="application/x-sparql-query" mode="sparql">SPARQL</option><option value="text/x-sql" mode="sql">SQL</option><option value="text/x-mariadb" mode="sql">MariaDB</option><option value="text/x-stex" mode="stex">sTeX</option><option value="text/x-latex" mode="stex">LaTeX</option><option value="text/x-systemverilog" mode="verilog">SystemVerilog</option><option value="text/x-tcl" mode="tcl">Tcl</option><option value="text/x-tiddlywiki" mode="tiddlywiki">TiddlyWiki </option><option value="text/tiki" mode="tiki">Tiki wiki</option><option value="text/x-toml" mode="toml">TOML</option><option value="text/turtle" mode="turtle">Turtle</option><option value="text/x-vb" mode="vb">VB.NET</option><option value="text/vbscript" mode="vbscript">VBScript</option><option value="text/velocity" mode="velocity">Velocity</option><option value="text/x-verilog" mode="verilog">Verilog</option><option value="application/xml" mode="xml">XML</option><option value="text/html" mode="xml">HTML</option><option value="application/xquery" mode="xquery">XQuery</option><option value="text/x-yaml" mode="yaml">YAML</option><option value="text/x-z80" mode="z80">Z80</option></select>
|
|
606
|
<option value="text/apl" mode="apl">APL</option><option value="text/x-asterisk" mode="asterisk">Asterisk</option><option value="text/x-csrc" mode="clike">C</option><option value="text/x-c++src" mode="clike">C++</option><option value="text/x-cobol" mode="cobol">Cobol</option><option value="text/x-java" mode="clike">Java</option><option value="text/x-csharp" mode="clike">C#</option><option value="text/x-scala" mode="clike">Scala</option><option value="text/x-clojure" mode="clojure">Clojure</option><option value="text/x-coffeescript" mode="coffeescript">CoffeeScript</option><option value="text/x-common-lisp" mode="commonlisp">Common Lisp</option><option value="text/css" mode="css">CSS</option><option value="text/x-d" mode="d">D</option><option value="text/x-diff" mode="diff">diff</option><option value="application/xml-dtd" mode="dtd">DTD</option><option value="text/x-dylan" mode="dylan">Dylan</option><option value="text/x-ecl" mode="ecl">ECL</option><option value="text/x-eiffel" mode="eiffel">Eiffel</option><option value="text/x-erlang" mode="erlang">Erlang</option><option value="text/x-fortran" mode="fortran">Fortran</option><option value="text/x-fsharp" mode="mllike">F#</option><option value="text/x-gas" mode="gas">Gas</option><option value="text/x-go" mode="go">GO</option><option value="text/x-feature" mode="gherkin">Gherkin</option><option value="text/x-go" mode="go">Go</option><option value="text/x-groovy" mode="groovy">Groovy</option><option value="text/x-haml" mode="haml">HAML</option><option value="text/x-haskell" mode="haskell">Haskell</option><option value="text/x-haxe" mode="haxe">Haxe</option><option value="application/x-aspx" mode="htmlembedded">ASP.NET</option><option value="application/x-ejs" mode="htmlembedded">Embedded Javascript</option><option value="application/x-jsp" mode="htmlembedded">JavaServer Pages</option><option value="text/html" mode="htmlmixed">HTML</option><option value="message/http" mode="http">HTTP</option><option value="text/x-jade" mode="jade">Jade</option><option value="text/javascript" mode="javascript">JavaScript</option><option value="application/json" mode="javascript">JSON</option><option value="application/typescript" mode="javascript">TypeScript</option><option value="jinja2" mode="jinja2">Jinja2</option><option value="text/x-julia" mode="julia">Julia</option><option value="text/x-less" mode="less">LESS</option><option value="text/x-livescript" mode="livescript">LiveScript</option><option value="text/x-lua" mode="lua">Lua</option><option value="text/x-markdown" mode="markdown">Markdown (GitHub-flavour)</option><option value="text/mirc" mode="mirc">mIRC</option><option value="text/x-nginx-conf" mode="nginx">Nginx</option><option value="text/n-triples" mode="ntriples">NTriples</option><option value="text/x-ocaml" mode="ocaml">OCaml</option><option value="text/x-ocaml" mode="mllike">OCaml</option><option value="text/x-octave" mode="octave">Octave</option><option value="text/x-pascal" mode="pascal">Pascal</option><option value="null" mode="pegjs">PEG.js</option><option value="text/x-perl" mode="perl">Perl</option><option value="text/x-php" mode="php">PHP</option><option value="text/x-pig" mode="pig">Pig</option><option value="text/plain" mode="null">Plain Text</option><option value="text/x-properties" mode="properties">Properties files</option><option value="text/x-python" mode="python">Python</option><option value="text/x-puppet" mode="puppet">Puppet</option><option value="text/x-rsrc" mode="r">R</option><option value="text/x-rst" mode="rst">reStructuredText</option><option value="text/x-ruby" mode="ruby">Ruby</option><option value="text/x-rustsrc" mode="rust">Rust</option><option value="text/x-sass" mode="sass">Sass</option><option value="text/x-scheme" mode="scheme">Scheme</option><option value="text/x-scss" mode="css">SCSS</option><option value="text/x-sh" mode="shell">Shell</option><option value="application/sieve" mode="sieve">Sieve</option><option value="text/x-stsrc" mode="smalltalk">Smalltalk</option><option value="text/x-smarty" mode="smarty">Smarty</option><option value="text/x-smarty" mode="smartymixed">SmartyMixed</option><option value="text/x-solr" mode="solr">Solr</option><option value="application/x-sparql-query" mode="sparql">SPARQL</option><option value="text/x-sql" mode="sql">SQL</option><option value="text/x-mariadb" mode="sql">MariaDB</option><option value="text/x-stex" mode="stex">sTeX</option><option value="text/x-latex" mode="stex">LaTeX</option><option value="text/x-systemverilog" mode="verilog">SystemVerilog</option><option value="text/x-tcl" mode="tcl">Tcl</option><option value="text/x-tiddlywiki" mode="tiddlywiki">TiddlyWiki </option><option value="text/tiki" mode="tiki">Tiki wiki</option><option value="text/x-toml" mode="toml">TOML</option><option value="text/turtle" mode="turtle">Turtle</option><option value="text/x-vb" mode="vb">VB.NET</option><option value="text/vbscript" mode="vbscript">VBScript</option><option value="text/velocity" mode="velocity">Velocity</option><option value="text/x-verilog" mode="verilog">Verilog</option><option value="application/xml" mode="xml">XML</option><option value="text/html" mode="xml">HTML</option><option value="application/xquery" mode="xquery">XQuery</option><option value="text/x-yaml" mode="yaml">YAML</option><option value="text/x-z80" mode="z80">Z80</option></select>
|
|
607
|
<script>
|
|
607
|
<script>
|
|
608
|
$(document).ready(function() {
|
|
608
|
$(document).ready(function() {
|
|
609
|
$('#mimetype').select2({
|
|
609
|
$('#mimetype').select2({
|
|
610
|
containerCssClass: 'drop-menu',
|
|
610
|
containerCssClass: 'drop-menu',
|
|
611
|
dropdownCssClass: 'drop-menu-dropdown',
|
|
611
|
dropdownCssClass: 'drop-menu-dropdown',
|
|
612
|
dropdownAutoWidth: true
|
|
612
|
dropdownAutoWidth: true
|
|
613
|
});
|
|
613
|
});
|
|
614
|
});
|
|
614
|
});
|
|
615
|
</script>
|
|
615
|
</script>
|
|
616
|
|
|
616
|
|
|
617
|
</div>
|
|
617
|
</div>
|
|
618
|
</div>
|
|
618
|
</div>
|
|
619
|
</div>
|
|
619
|
</div>
|
|
620
|
<div id="editor_container">
|
|
620
|
<div id="editor_container">
|
|
621
|
<div id="editor_pre"></div>
|
|
621
|
<div id="editor_pre"></div>
|
|
622
|
<textarea id="editor" name="content" style="display: none;"></textarea><div class="CodeMirror cm-s-default"><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 484px; left: 219.4091796875px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" style="position: absolute; padding: 0px; width: 1000px; height: 1em; outline: none;" tabindex="0"></textarea></div><div class="CodeMirror-hscrollbar" style="left: 29px; min-height: 18px;"><div style="height: 100%; min-height: 1px; width: 0px;"></div></div><div class="CodeMirror-vscrollbar" style="min-width: 18px; display: block; bottom: 0px;"><div style="min-width: 1px; height: 619px;"></div></div><div class="CodeMirror-scrollbar-filler"></div><div class="CodeMirror-gutter-filler"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="min-width: 700.269653320313px; margin-left: 29px; min-height: 619px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines"><div style="position: relative; outline: none;"><div class="CodeMirror-measure"><div class="CodeMirror-linenumber CodeMirror-gutter-elt"><div>47</div></div></div><div style="position: relative; z-index: 1; display: none;"></div><div class="CodeMirror-code"><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">1</div></div><pre><span class="cm-keyword">import</span> <span class="cm-variable">re</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">2</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">3</div></div><pre><span class="cm-keyword">from</span> <span class="cm-variable">django</span>.<span class="cm-variable">utils</span>.<span class="cm-variable">text</span> <span class="cm-keyword">import</span> <span class="cm-variable">compress_sequence</span>, <span class="cm-variable">compress_string</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">4</div></div><pre><span class="cm-keyword">from</span> <span class="cm-variable">django</span>.<span class="cm-variable">utils</span>.<span class="cm-variable">cache</span> <span class="cm-keyword">import</span> <span class="cm-variable">patch_vary_headers</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">5</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">6</div></div><pre><span class="cm-variable">re_accepts_gzip</span> = <span class="cm-variable">re</span>.<span class="cm-builtin">compile</span>(<span class="cm-string">r'\bgzip\b'</span>)</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">7</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">8</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">9</div></div><pre><span class="cm-keyword">class</span> <span class="cm-def">GZipMiddleware</span>(<span class="cm-builtin">object</span>): # Intentionally long line to show what will happen if this line does not fit onto the screen. It might have some horizontal scrolling applied or some other fancy mechanism to deal with it.</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">10</div></div><pre> <span class="cm-string">"""</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">11</div></div><pre><span class="cm-string"> This middleware compresses content if the browser allows gzip compression.</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">12</div></div><pre><span class="cm-string"> It sets the Vary header accordingly, so that caches will base their storage</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">13</div></div><pre><span class="cm-string"> on the Accept-Encoding header.</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">14</div></div><pre><span class="cm-string"> """</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">15</div></div><pre> <span class="cm-keyword">def</span> <span class="cm-def">process_response</span>(<span class="cm-variable-2">self</span>, <span class="cm-variable">request</span>, <span class="cm-variable">response</span>):</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">16</div></div><pre> <span class="cm-comment"># It's not worth attempting to compress really short responses.</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">17</div></div><pre> <span class="cm-keyword">if</span> <span class="cm-operator">not</span> <span class="cm-variable">response</span>.<span class="cm-variable">streaming</span> <span class="cm-operator">and</span> <span class="cm-builtin">len</span>(<span class="cm-variable">response</span>.<span class="cm-variable">content</span>) <span class="cm-operator"><</span> <span class="cm-number">200</span>:</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">18</div></div><pre> <span class="cm-keyword">return</span> <span class="cm-variable">response</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">19</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">20</div></div><pre> <span class="cm-comment"># Avoid gzipping if we've already got a content-encoding.</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">21</div></div><pre> <span class="cm-keyword">if</span> <span class="cm-variable">response</span>.<span class="cm-variable">has_header</span>(<span class="cm-string">'Content-Encoding'</span>):</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">22</div></div><pre> <span class="cm-keyword">return</span> <span class="cm-variable">response</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">23</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">24</div></div><pre> <span class="cm-variable">patch_vary_headers</span>(<span class="cm-variable">response</span>, (<span class="cm-string">'Accept-Encoding'</span>,))</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">25</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">26</div></div><pre> <span class="cm-variable">ae</span> = <span class="cm-variable">request</span>.<span class="cm-variable">META</span>.<span class="cm-variable">get</span>(<span class="cm-string">'HTTP_ACCEPT_ENCODING'</span>, <span class="cm-string">''</span>)</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">27</div></div><pre> <span class="cm-keyword">if</span> <span class="cm-operator">not</span> <span class="cm-variable">re_accepts_gzip</span>.<span class="cm-variable">search</span>(<span class="cm-variable">ae</span>):</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">28</div></div><pre> <span class="cm-keyword">return</span> <span class="cm-variable">response</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">29</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">30</div></div><pre> <span class="cm-keyword">if</span> <span class="cm-variable">response</span>.<span class="cm-variable">streaming</span>:</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">31</div></div><pre> <span class="cm-comment"># Delete the `Content-Length` header for streaming content, because</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">32</div></div><pre> <span class="cm-comment"># we won't know the compressed size until we stream it.</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">33</div></div><pre> <span class="cm-variable">response</span>.<span class="cm-variable">streaming_content</span> = <span class="cm-variable">compress_sequence</span>(<span class="cm-variable">response</span>.<span class="cm-variable">streaming_content</span>)</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">34</div></div><pre> <span class="cm-keyword">del</span> <span class="cm-variable">response</span>[<span class="cm-string">'Content-Length'</span>]</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">35</div></div><pre> <span class="cm-keyword">else</span>:</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">36</div></div><pre> <span class="cm-comment"># Return the compressed content only if it's actually shorter.</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">37</div></div><pre> <span class="cm-variable">compressed_content</span> = <span class="cm-variable">compress_string</span>(<span class="cm-variable">response</span>.<span class="cm-variable">content</span>)</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">38</div></div><pre> <span class="cm-keyword">if</span> <span class="cm-builtin">len</span>(<span class="cm-variable">compressed_content</span>) <span class="cm-operator">>=</span> <span class="cm-builtin">len</span>(<span class="cm-variable">response</span>.<span class="cm-variable">content</span>):</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">39</div></div><pre> <span class="cm-keyword">return</span> <span class="cm-variable">response</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">40</div></div><pre> <span class="cm-variable">response</span>.<span class="cm-variable">content</span> = <span class="cm-variable">compressed_content</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">41</div></div><pre> <span class="cm-variable">response</span>[<span class="cm-string">'Content-Length'</span>] = <span class="cm-builtin">str</span>(<span class="cm-builtin">len</span>(<span class="cm-variable">response</span>.<span class="cm-variable">content</span>))</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">42</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">43</div></div><pre> <span class="cm-keyword">if</span> <span class="cm-variable">response</span>.<span class="cm-variable">has_header</span>(<span class="cm-string">'ETag'</span>):</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">44</div></div><pre> <span class="cm-variable">response</span>[<span class="cm-string">'ETag'</span>] = <span class="cm-variable">re</span>.<span class="cm-variable">sub</span>(<span class="cm-string">'"$'</span>, <span class="cm-string">';gzip"'</span>, <span class="cm-variable">response</span>[<span class="cm-string">'ETag'</span>])</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">45</div></div><pre> <span class="cm-variable">response</span>[<span class="cm-string">'Content-Encoding'</span>] = <span class="cm-string">'gzip'</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">46</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">47</div></div><pre> <span class="cm-keyword">return</span> <span class="cm-variable">response</span></pre></div></div><div class="CodeMirror-cursor" style="left: 189.4091796875px; top: 598px; height: 13px;"> </div><div class="CodeMirror-cursor CodeMirror-secondarycursor" style="display: none;"> </div></div></div></div></div><div style="position: absolute; height: 30px; width: 1px; top: 619px;"></div><div class="CodeMirror-gutters" style="height: 619px;"><div class="CodeMirror-gutter CodeMirror-linenumbers" style="width: 28px;"></div></div></div></div>
|
|
622
|
<textarea id="editor" name="content" style="display: none;"></textarea><div class="CodeMirror cm-s-default"><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 484px; left: 219.4091796875px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" style="position: absolute; padding: 0px; width: 1000px; height: 1em; outline: none;" tabindex="0"></textarea></div><div class="CodeMirror-hscrollbar" style="left: 29px; min-height: 18px;"><div style="height: 100%; min-height: 1px; width: 0px;"></div></div><div class="CodeMirror-vscrollbar" style="min-width: 18px; display: block; bottom: 0px;"><div style="min-width: 1px; height: 619px;"></div></div><div class="CodeMirror-scrollbar-filler"></div><div class="CodeMirror-gutter-filler"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="min-width: 700.269653320313px; margin-left: 29px; min-height: 619px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines"><div style="position: relative; outline: none;"><div class="CodeMirror-measure"><div class="CodeMirror-linenumber CodeMirror-gutter-elt"><div>47</div></div></div><div style="position: relative; z-index: 1; display: none;"></div><div class="CodeMirror-code"><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">1</div></div><pre><span class="cm-keyword">import</span> <span class="cm-variable">re</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">2</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">3</div></div><pre><span class="cm-keyword">from</span> <span class="cm-variable">django</span>.<span class="cm-variable">utils</span>.<span class="cm-variable">text</span> <span class="cm-keyword">import</span> <span class="cm-variable">compress_sequence</span>, <span class="cm-variable">compress_string</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">4</div></div><pre><span class="cm-keyword">from</span> <span class="cm-variable">django</span>.<span class="cm-variable">utils</span>.<span class="cm-variable">cache</span> <span class="cm-keyword">import</span> <span class="cm-variable">patch_vary_headers</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">5</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">6</div></div><pre><span class="cm-variable">re_accepts_gzip</span> = <span class="cm-variable">re</span>.<span class="cm-builtin">compile</span>(<span class="cm-string">r'\bgzip\b'</span>)</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">7</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">8</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">9</div></div><pre><span class="cm-keyword">class</span> <span class="cm-def">GZipMiddleware</span>(<span class="cm-builtin">object</span>): # Intentionally long line to show what will happen if this line does not fit onto the screen. It might have some horizontal scrolling applied or some other fancy mechanism to deal with it.</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">10</div></div><pre> <span class="cm-string">"""</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">11</div></div><pre><span class="cm-string"> This middleware compresses content if the browser allows gzip compression.</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">12</div></div><pre><span class="cm-string"> It sets the Vary header accordingly, so that caches will base their storage</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">13</div></div><pre><span class="cm-string"> on the Accept-Encoding header.</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">14</div></div><pre><span class="cm-string"> """</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">15</div></div><pre> <span class="cm-keyword">def</span> <span class="cm-def">process_response</span>(<span class="cm-variable-2">self</span>, <span class="cm-variable">request</span>, <span class="cm-variable">response</span>):</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">16</div></div><pre> <span class="cm-comment"># It's not worth attempting to compress really short responses.</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">17</div></div><pre> <span class="cm-keyword">if</span> <span class="cm-operator">not</span> <span class="cm-variable">response</span>.<span class="cm-variable">streaming</span> <span class="cm-operator">and</span> <span class="cm-builtin">len</span>(<span class="cm-variable">response</span>.<span class="cm-variable">content</span>) <span class="cm-operator"><</span> <span class="cm-number">200</span>:</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">18</div></div><pre> <span class="cm-keyword">return</span> <span class="cm-variable">response</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">19</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">20</div></div><pre> <span class="cm-comment"># Avoid gzipping if we've already got a content-encoding.</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">21</div></div><pre> <span class="cm-keyword">if</span> <span class="cm-variable">response</span>.<span class="cm-variable">has_header</span>(<span class="cm-string">'Content-Encoding'</span>):</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">22</div></div><pre> <span class="cm-keyword">return</span> <span class="cm-variable">response</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">23</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">24</div></div><pre> <span class="cm-variable">patch_vary_headers</span>(<span class="cm-variable">response</span>, (<span class="cm-string">'Accept-Encoding'</span>,))</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">25</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">26</div></div><pre> <span class="cm-variable">ae</span> = <span class="cm-variable">request</span>.<span class="cm-variable">META</span>.<span class="cm-variable">get</span>(<span class="cm-string">'HTTP_ACCEPT_ENCODING'</span>, <span class="cm-string">''</span>)</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">27</div></div><pre> <span class="cm-keyword">if</span> <span class="cm-operator">not</span> <span class="cm-variable">re_accepts_gzip</span>.<span class="cm-variable">search</span>(<span class="cm-variable">ae</span>):</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">28</div></div><pre> <span class="cm-keyword">return</span> <span class="cm-variable">response</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">29</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">30</div></div><pre> <span class="cm-keyword">if</span> <span class="cm-variable">response</span>.<span class="cm-variable">streaming</span>:</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">31</div></div><pre> <span class="cm-comment"># Delete the `Content-Length` header for streaming content, because</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">32</div></div><pre> <span class="cm-comment"># we won't know the compressed size until we stream it.</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">33</div></div><pre> <span class="cm-variable">response</span>.<span class="cm-variable">streaming_content</span> = <span class="cm-variable">compress_sequence</span>(<span class="cm-variable">response</span>.<span class="cm-variable">streaming_content</span>)</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">34</div></div><pre> <span class="cm-keyword">del</span> <span class="cm-variable">response</span>[<span class="cm-string">'Content-Length'</span>]</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">35</div></div><pre> <span class="cm-keyword">else</span>:</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">36</div></div><pre> <span class="cm-comment"># Return the compressed content only if it's actually shorter.</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">37</div></div><pre> <span class="cm-variable">compressed_content</span> = <span class="cm-variable">compress_string</span>(<span class="cm-variable">response</span>.<span class="cm-variable">content</span>)</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">38</div></div><pre> <span class="cm-keyword">if</span> <span class="cm-builtin">len</span>(<span class="cm-variable">compressed_content</span>) <span class="cm-operator">>=</span> <span class="cm-builtin">len</span>(<span class="cm-variable">response</span>.<span class="cm-variable">content</span>):</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">39</div></div><pre> <span class="cm-keyword">return</span> <span class="cm-variable">response</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">40</div></div><pre> <span class="cm-variable">response</span>.<span class="cm-variable">content</span> = <span class="cm-variable">compressed_content</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">41</div></div><pre> <span class="cm-variable">response</span>[<span class="cm-string">'Content-Length'</span>] = <span class="cm-builtin">str</span>(<span class="cm-builtin">len</span>(<span class="cm-variable">response</span>.<span class="cm-variable">content</span>))</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">42</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">43</div></div><pre> <span class="cm-keyword">if</span> <span class="cm-variable">response</span>.<span class="cm-variable">has_header</span>(<span class="cm-string">'ETag'</span>):</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">44</div></div><pre> <span class="cm-variable">response</span>[<span class="cm-string">'ETag'</span>] = <span class="cm-variable">re</span>.<span class="cm-variable">sub</span>(<span class="cm-string">'"$'</span>, <span class="cm-string">';gzip"'</span>, <span class="cm-variable">response</span>[<span class="cm-string">'ETag'</span>])</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">45</div></div><pre> <span class="cm-variable">response</span>[<span class="cm-string">'Content-Encoding'</span>] = <span class="cm-string">'gzip'</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">46</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">47</div></div><pre> <span class="cm-keyword">return</span> <span class="cm-variable">response</span></pre></div></div><div class="CodeMirror-cursor" style="left: 189.4091796875px; top: 598px; height: 13px;"> </div><div class="CodeMirror-cursor CodeMirror-secondarycursor" style="display: none;"> </div></div></div></div></div><div style="position: absolute; height: 30px; width: 1px; top: 619px;"></div><div class="CodeMirror-gutters" style="height: 619px;"><div class="CodeMirror-gutter CodeMirror-linenumbers" style="width: 28px;"></div></div></div></div>
|
|
623
|
</div>
|
|
623
|
</div>
|
|
624
|
</div>
|
|
624
|
</div>
|
|
625
|
|
|
625
|
|
|
626
|
|
|
626
|
|
|
627
|
|
|
627
|
|
|
628
|
|
|
628
|
|
|
629
|
|
|
629
|
|
|
630
|
<!--
|
|
630
|
<!--
|
|
631
|
File Edit
|
|
631
|
File Edit
|
|
632
|
-->
|
|
632
|
-->
|
|
633
|
|
|
633
|
|
|
634
|
<h2>File Edit</h2>
|
|
634
|
<h2>File Edit</h2>
|
|
635
|
|
|
635
|
|
|
636
|
<div class="codeblock">
|
|
636
|
<div class="codeblock">
|
|
637
|
<div class="code-header">
|
|
637
|
<div class="code-header">
|
|
638
|
<div class="stats">
|
|
638
|
<div class="stats">
|
|
639
|
<i class="icon-file"></i>
|
|
639
|
<i class="icon-file"></i>
|
|
640
|
<span class="item"><a href="/example/changeset/80ead1899f50a894889e19ffeb49c9cebf5bf045">r8248:80ead1899f50</a></span>
|
|
640
|
<span class="item"><a href="/example/changeset/80ead1899f50a894889e19ffeb49c9cebf5bf045">r8248:80ead1899f50</a></span>
|
|
641
|
<span class="item">1.2 KiB</span>
|
|
641
|
<span class="item">1.2 KiB</span>
|
|
642
|
<span class="item last">text/x-python</span>
|
|
642
|
<span class="item last">text/x-python</span>
|
|
643
|
<div class="buttons">
|
|
643
|
<div class="buttons">
|
|
644
|
<a class="btn btn-mini" href="/example/commits/80ead1899f50a894889e19ffeb49c9cebf5bf045/rhodecode/websetup.py">
|
|
644
|
<a class="btn btn-mini" href="/example/commits/80ead1899f50a894889e19ffeb49c9cebf5bf045/rhodecode/websetup.py">
|
|
645
|
<i class="icon-time"></i> history
|
|
645
|
<i class="icon-time"></i> history
|
|
646
|
</a>
|
|
646
|
</a>
|
|
647
|
|
|
647
|
|
|
648
|
<a class="btn btn-mini" href="/example/files/80ead1899f50a894889e19ffeb49c9cebf5bf045/rhodecode/websetup.py">source</a>
|
|
648
|
<a class="btn btn-mini" href="/example/files/80ead1899f50a894889e19ffeb49c9cebf5bf045/rhodecode/websetup.py">source</a>
|
|
649
|
<a class="btn btn-mini" href="/example/raw/80ead1899f50a894889e19ffeb49c9cebf5bf045/rhodecode/websetup.py">raw</a>
|
|
649
|
<a class="btn btn-mini" href="/example/raw/80ead1899f50a894889e19ffeb49c9cebf5bf045/rhodecode/websetup.py">raw</a>
|
|
650
|
<a class="btn btn-mini" href="/example/rawfile/80ead1899f50a894889e19ffeb49c9cebf5bf045/rhodecode/websetup.py">
|
|
650
|
<a class="btn btn-mini" href="/example/rawfile/80ead1899f50a894889e19ffeb49c9cebf5bf045/rhodecode/websetup.py">
|
|
651
|
download
|
|
651
|
download
|
|
652
|
</a>
|
|
652
|
</a>
|
|
653
|
</div>
|
|
653
|
</div>
|
|
654
|
</div>
|
|
654
|
</div>
|
|
655
|
<div class="form">
|
|
655
|
<div class="form">
|
|
656
|
<label for="set_mode">Editing file:</label>
|
|
656
|
<label for="set_mode">Editing file:</label>
|
|
657
|
rhodecode /
|
|
657
|
rhodecode /
|
|
658
|
<input type="text" name="filename" value="websetup.py">
|
|
658
|
<input type="text" name="filename" value="websetup.py">
|
|
659
|
|
|
659
|
|
|
660
|
<div class="select2-container drop-menu" id="s2id_set_mode"><a href="javascript:void(0)" class="select2-choice" tabindex="-1"> <span class="select2-chosen" id="select2-chosen-2">plain</span><abbr class="select2-search-choice-close"></abbr> <span class="select2-arrow" role="presentation"><b role="presentation"></b></span></a><label for="s2id_autogen2" class="select2-offscreen">Editing file:</label><input class="select2-focusser select2-offscreen" type="text" aria-haspopup="true" role="button" aria-labelledby="select2-chosen-2" id="s2id_autogen2"><div class="select2-drop select2-display-none drop-menu-dropdown select2-with-searchbox"> <div class="select2-search"> <label for="s2id_autogen2_search" class="select2-offscreen">Editing file:</label> <input type="text" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" class="select2-input" role="combobox" aria-expanded="true" aria-autocomplete="list" aria-owns="select2-results-2" id="s2id_autogen2_search" placeholder=""> </div> <ul class="select2-results" role="listbox" id="select2-results-2"> </ul></div></div><select id="set_mode" name="set_mode" tabindex="-1" title="Editing file:" style="display: none;">
|
|
660
|
<div class="select2-container drop-menu" id="s2id_set_mode"><a href="javascript:void(0)" class="select2-choice" tabindex="-1"> <span class="select2-chosen" id="select2-chosen-2">plain</span><abbr class="select2-search-choice-close"></abbr> <span class="select2-arrow" role="presentation"><b role="presentation"></b></span></a><label for="s2id_autogen2" class="select2-offscreen">Editing file:</label><input class="select2-focusser select2-offscreen" type="text" aria-haspopup="true" role="button" aria-labelledby="select2-chosen-2" id="s2id_autogen2"><div class="select2-drop select2-display-none drop-menu-dropdown select2-with-searchbox"> <div class="select2-search"> <label for="s2id_autogen2_search" class="select2-offscreen">Editing file:</label> <input type="text" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" class="select2-input" role="combobox" aria-expanded="true" aria-autocomplete="list" aria-owns="select2-results-2" id="s2id_autogen2_search" placeholder=""> </div> <ul class="select2-results" role="listbox" id="select2-results-2"> </ul></div></div><select id="set_mode" name="set_mode" tabindex="-1" title="Editing file:" style="display: none;">
|
|
661
|
<option selected="selected" value="plain">plain</option>
|
|
661
|
<option selected="selected" value="plain">plain</option>
|
|
662
|
<option value="apl">APL</option><option value="asterisk">Asterisk</option><option value="clike">C</option><option value="clike">C++</option><option value="cobol">Cobol</option><option value="clike">Java</option><option value="clike">C#</option><option value="clike">Scala</option><option value="clojure">Clojure</option><option value="coffeescript">CoffeeScript</option><option value="commonlisp">Common Lisp</option><option value="css">CSS</option><option value="d">D</option><option value="diff">diff</option><option value="dtd">DTD</option><option value="dylan">Dylan</option><option value="ecl">ECL</option><option value="eiffel">Eiffel</option><option value="erlang">Erlang</option><option value="fortran">Fortran</option><option value="mllike">F#</option><option value="gas">Gas</option><option value="go">GO</option><option value="gherkin">Gherkin</option><option value="go">Go</option><option value="groovy">Groovy</option><option value="haml">HAML</option><option value="haskell">Haskell</option><option value="haxe">Haxe</option><option value="htmlembedded">ASP.NET</option><option value="htmlembedded">Embedded Javascript</option><option value="htmlembedded">JavaServer Pages</option><option value="htmlmixed">HTML</option><option value="http">HTTP</option><option value="jade">Jade</option><option value="javascript">JavaScript</option><option value="javascript">JSON</option><option value="javascript">TypeScript</option><option value="jinja2">Jinja2</option><option value="julia">Julia</option><option value="less">LESS</option><option value="livescript">LiveScript</option><option value="lua">Lua</option><option value="markdown">Markdown (GitHub-flavour)</option><option value="mirc">mIRC</option><option value="nginx">Nginx</option><option value="ntriples">NTriples</option><option value="ocaml">OCaml</option><option value="mllike">OCaml</option><option value="octave">Octave</option><option value="pascal">Pascal</option><option value="pegjs">PEG.js</option><option value="perl">Perl</option><option value="php">PHP</option><option value="pig">Pig</option><option value="null">Plain Text</option><option value="properties">Properties files</option><option value="python" selected="selected">Python</option><option value="puppet">Puppet</option><option value="r">R</option><option value="rst">reStructuredText</option><option value="ruby">Ruby</option><option value="rust">Rust</option><option value="sass">Sass</option><option value="scheme">Scheme</option><option value="css">SCSS</option><option value="shell">Shell</option><option value="sieve">Sieve</option><option value="smalltalk">Smalltalk</option><option value="smarty">Smarty</option><option value="smartymixed">SmartyMixed</option><option value="solr">Solr</option><option value="sparql">SPARQL</option><option value="sql">SQL</option><option value="sql">MariaDB</option><option value="stex">sTeX</option><option value="stex">LaTeX</option><option value="verilog">SystemVerilog</option><option value="tcl">Tcl</option><option value="tiddlywiki">TiddlyWiki </option><option value="tiki">Tiki wiki</option><option value="toml">TOML</option><option value="turtle">Turtle</option><option value="vb">VB.NET</option><option value="vbscript">VBScript</option><option value="velocity">Velocity</option><option value="verilog">Verilog</option><option value="xml">XML</option><option value="xml">HTML</option><option value="xquery">XQuery</option><option value="yaml">YAML</option><option value="z80">Z80</option></select>
|
|
662
|
<option value="apl">APL</option><option value="asterisk">Asterisk</option><option value="clike">C</option><option value="clike">C++</option><option value="cobol">Cobol</option><option value="clike">Java</option><option value="clike">C#</option><option value="clike">Scala</option><option value="clojure">Clojure</option><option value="coffeescript">CoffeeScript</option><option value="commonlisp">Common Lisp</option><option value="css">CSS</option><option value="d">D</option><option value="diff">diff</option><option value="dtd">DTD</option><option value="dylan">Dylan</option><option value="ecl">ECL</option><option value="eiffel">Eiffel</option><option value="erlang">Erlang</option><option value="fortran">Fortran</option><option value="mllike">F#</option><option value="gas">Gas</option><option value="go">GO</option><option value="gherkin">Gherkin</option><option value="go">Go</option><option value="groovy">Groovy</option><option value="haml">HAML</option><option value="haskell">Haskell</option><option value="haxe">Haxe</option><option value="htmlembedded">ASP.NET</option><option value="htmlembedded">Embedded Javascript</option><option value="htmlembedded">JavaServer Pages</option><option value="htmlmixed">HTML</option><option value="http">HTTP</option><option value="jade">Jade</option><option value="javascript">JavaScript</option><option value="javascript">JSON</option><option value="javascript">TypeScript</option><option value="jinja2">Jinja2</option><option value="julia">Julia</option><option value="less">LESS</option><option value="livescript">LiveScript</option><option value="lua">Lua</option><option value="markdown">Markdown (GitHub-flavour)</option><option value="mirc">mIRC</option><option value="nginx">Nginx</option><option value="ntriples">NTriples</option><option value="ocaml">OCaml</option><option value="mllike">OCaml</option><option value="octave">Octave</option><option value="pascal">Pascal</option><option value="pegjs">PEG.js</option><option value="perl">Perl</option><option value="php">PHP</option><option value="pig">Pig</option><option value="null">Plain Text</option><option value="properties">Properties files</option><option value="python" selected="selected">Python</option><option value="puppet">Puppet</option><option value="r">R</option><option value="rst">reStructuredText</option><option value="ruby">Ruby</option><option value="rust">Rust</option><option value="sass">Sass</option><option value="scheme">Scheme</option><option value="css">SCSS</option><option value="shell">Shell</option><option value="sieve">Sieve</option><option value="smalltalk">Smalltalk</option><option value="smarty">Smarty</option><option value="smartymixed">SmartyMixed</option><option value="solr">Solr</option><option value="sparql">SPARQL</option><option value="sql">SQL</option><option value="sql">MariaDB</option><option value="stex">sTeX</option><option value="stex">LaTeX</option><option value="verilog">SystemVerilog</option><option value="tcl">Tcl</option><option value="tiddlywiki">TiddlyWiki </option><option value="tiki">Tiki wiki</option><option value="toml">TOML</option><option value="turtle">Turtle</option><option value="vb">VB.NET</option><option value="vbscript">VBScript</option><option value="velocity">Velocity</option><option value="verilog">Verilog</option><option value="xml">XML</option><option value="xml">HTML</option><option value="xquery">XQuery</option><option value="yaml">YAML</option><option value="z80">Z80</option></select>
|
|
663
|
<script>
|
|
663
|
<script>
|
|
664
|
$(document).ready(function() {
|
|
664
|
$(document).ready(function() {
|
|
665
|
$('#set_mode').select2({
|
|
665
|
$('#set_mode').select2({
|
|
666
|
containerCssClass: 'drop-menu',
|
|
666
|
containerCssClass: 'drop-menu',
|
|
667
|
dropdownCssClass: 'drop-menu-dropdown',
|
|
667
|
dropdownCssClass: 'drop-menu-dropdown',
|
|
668
|
dropdownAutoWidth: true
|
|
668
|
dropdownAutoWidth: true
|
|
669
|
});
|
|
669
|
});
|
|
670
|
});
|
|
670
|
});
|
|
671
|
</script>
|
|
671
|
</script>
|
|
672
|
|
|
672
|
|
|
673
|
<label for="line_wrap">line wraps</label>
|
|
673
|
<label for="line_wrap">line wraps</label>
|
|
674
|
<div class="select2-container drop-menu" id="s2id_line_wrap"><a href="javascript:void(0)" class="select2-choice" tabindex="-1"> <span class="select2-chosen" id="select2-chosen-3">off</span><abbr class="select2-search-choice-close"></abbr> <span class="select2-arrow" role="presentation"><b role="presentation"></b></span></a><label for="s2id_autogen3" class="select2-offscreen">line wraps</label><input class="select2-focusser select2-offscreen" type="text" aria-haspopup="true" role="button" aria-labelledby="select2-chosen-3" id="s2id_autogen3"><div class="select2-drop select2-display-none drop-menu-dropdown"> <div class="select2-search select2-search-hidden select2-offscreen"> <label for="s2id_autogen3_search" class="select2-offscreen">line wraps</label> <input type="text" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" class="select2-input" role="combobox" aria-expanded="true" aria-autocomplete="list" aria-owns="select2-results-3" id="s2id_autogen3_search" placeholder=""> </div> <ul class="select2-results" role="listbox" id="select2-results-3"> </ul></div></div><select id="line_wrap" name="line_wrap" tabindex="-1" title="line wraps" style="display: none;">
|
|
674
|
<div class="select2-container drop-menu" id="s2id_line_wrap"><a href="javascript:void(0)" class="select2-choice" tabindex="-1"> <span class="select2-chosen" id="select2-chosen-3">off</span><abbr class="select2-search-choice-close"></abbr> <span class="select2-arrow" role="presentation"><b role="presentation"></b></span></a><label for="s2id_autogen3" class="select2-offscreen">line wraps</label><input class="select2-focusser select2-offscreen" type="text" aria-haspopup="true" role="button" aria-labelledby="select2-chosen-3" id="s2id_autogen3"><div class="select2-drop select2-display-none drop-menu-dropdown"> <div class="select2-search select2-search-hidden select2-offscreen"> <label for="s2id_autogen3_search" class="select2-offscreen">line wraps</label> <input type="text" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" class="select2-input" role="combobox" aria-expanded="true" aria-autocomplete="list" aria-owns="select2-results-3" id="s2id_autogen3_search" placeholder=""> </div> <ul class="select2-results" role="listbox" id="select2-results-3"> </ul></div></div><select id="line_wrap" name="line_wrap" tabindex="-1" title="line wraps" style="display: none;">
|
|
675
|
<option value="on">on</option>
|
|
675
|
<option value="on">on</option>
|
|
676
|
<option selected="selected" value="off">off</option>
|
|
676
|
<option selected="selected" value="off">off</option>
|
|
677
|
</select>
|
|
677
|
</select>
|
|
678
|
<script>
|
|
678
|
<script>
|
|
679
|
$(document).ready(function() {
|
|
679
|
$(document).ready(function() {
|
|
680
|
$('#line_wrap').select2({
|
|
680
|
$('#line_wrap').select2({
|
|
681
|
containerCssClass: 'drop-menu',
|
|
681
|
containerCssClass: 'drop-menu',
|
|
682
|
dropdownCssClass: 'drop-menu-dropdown',
|
|
682
|
dropdownCssClass: 'drop-menu-dropdown',
|
|
683
|
dropdownAutoWidth: true,
|
|
683
|
dropdownAutoWidth: true,
|
|
684
|
minimumResultsForSearch: -1
|
|
684
|
minimumResultsForSearch: -1
|
|
685
|
|
|
685
|
|
|
686
|
});
|
|
686
|
});
|
|
687
|
});
|
|
687
|
});
|
|
688
|
</script>
|
|
688
|
</script>
|
|
689
|
|
|
689
|
|
|
690
|
<div id="render_preview" class="btn btn-mini hidden disabled">Preview</div>
|
|
690
|
<div id="render_preview" class="btn btn-mini hidden disabled">Preview</div>
|
|
691
|
</div>
|
|
691
|
</div>
|
|
692
|
</div>
|
|
692
|
</div>
|
|
693
|
<div id="editor_container">
|
|
693
|
<div id="editor_container">
|
|
694
|
<pre id="editor_pre"></pre>
|
|
694
|
<pre id="editor_pre"></pre>
|
|
695
|
<textarea id="editor" name="content" style="display: none;"># -*- coding: utf-8 -*-
|
|
695
|
<textarea id="editor" name="content" style="display: none;"># -*- coding: utf-8 -*-
|
|
696
|
|
|
696
|
|
|
697
|
# Published under Commercial License.
|
|
697
|
# Published under Commercial License.
|
|
698
|
# Read the full license text at https://rhodecode.com/licenses.
|
|
698
|
# Read the full license text at https://rhodecode.com/licenses.
|
|
699
|
"""
|
|
699
|
"""
|
|
700
|
rhodecode.websetup
|
|
700
|
rhodecode.websetup
|
|
701
|
~~~~~~~~~~~~~~~~~~
|
|
701
|
~~~~~~~~~~~~~~~~~~
|
|
702
|
|
|
702
|
|
|
703
|
Weboperations and setup for rhodecode
|
|
703
|
Weboperations and setup for rhodecode
|
|
704
|
|
|
704
|
|
|
705
|
:created_on: Dec 11, 2010
|
|
705
|
:created_on: Dec 11, 2010
|
|
706
|
:author: marcink
|
|
706
|
:author: marcink
|
|
707
|
:copyright: (c) 2013-2015 RhodeCode GmbH.
|
|
707
|
:copyright: (c) 2013-2015 RhodeCode GmbH.
|
|
708
|
:license: Commercial License, see LICENSE for more details.
|
|
708
|
:license: Commercial License, see LICENSE for more details.
|
|
709
|
"""
|
|
709
|
"""
|
|
710
|
|
|
710
|
|
|
711
|
import logging
|
|
711
|
import logging
|
|
712
|
|
|
712
|
|
|
713
|
from rhodecode.config.environment import load_environment
|
|
713
|
from rhodecode.config.environment import load_environment
|
|
714
|
from rhodecode.lib.db_manage import DbManage
|
|
714
|
from rhodecode.lib.db_manage import DbManage
|
|
715
|
from rhodecode.model.meta import Session
|
|
715
|
from rhodecode.model.meta import Session
|
|
716
|
|
|
716
|
|
|
717
|
|
|
717
|
|
|
718
|
log = logging.getLogger(__name__)
|
|
718
|
log = logging.getLogger(__name__)
|
|
719
|
|
|
719
|
|
|
720
|
|
|
720
|
|
|
721
|
def setup_app(command, conf, vars):
|
|
721
|
def setup_app(command, conf, vars):
|
|
722
|
"""Place any commands to setup rhodecode here"""
|
|
722
|
"""Place any commands to setup rhodecode here"""
|
|
723
|
dbconf = conf['sqlalchemy.db1.url']
|
|
723
|
dbconf = conf['sqlalchemy.db1.url']
|
|
724
|
dbmanage = DbManage(log_sql=True, dbconf=dbconf, root=conf['here'],
|
|
724
|
dbmanage = DbManage(log_sql=True, dbconf=dbconf, root=conf['here'],
|
|
725
|
tests=False, cli_args=command.options.__dict__)
|
|
725
|
tests=False, cli_args=command.options.__dict__)
|
|
726
|
dbmanage.create_tables(override=True)
|
|
726
|
dbmanage.create_tables(override=True)
|
|
727
|
dbmanage.set_db_version()
|
|
727
|
dbmanage.set_db_version()
|
|
728
|
opts = dbmanage.config_prompt(None)
|
|
728
|
opts = dbmanage.config_prompt(None)
|
|
729
|
dbmanage.create_settings(opts)
|
|
729
|
dbmanage.create_settings(opts)
|
|
730
|
dbmanage.create_default_user()
|
|
730
|
dbmanage.create_default_user()
|
|
731
|
dbmanage.admin_prompt()
|
|
731
|
dbmanage.admin_prompt()
|
|
732
|
dbmanage.create_permissions()
|
|
732
|
dbmanage.create_permissions()
|
|
733
|
dbmanage.populate_default_permissions()
|
|
733
|
dbmanage.populate_default_permissions()
|
|
734
|
Session().commit()
|
|
734
|
Session().commit()
|
|
735
|
load_environment(conf.global_conf, conf.local_conf, initial=True)
|
|
735
|
load_environment(conf.global_conf, conf.local_conf, initial=True)
|
|
736
|
</textarea><div class="CodeMirror cm-s-default CodeMirror-focused"><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 5px; left: 34px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" style="position: absolute; padding: 0px; width: 1000px; height: 1em; outline: none;" tabindex="0"></textarea></div><div class="CodeMirror-hscrollbar" style="left: 29px; min-height: 18px;"><div style="height: 100%; min-height: 1px; width: 0px;"></div></div><div class="CodeMirror-vscrollbar" style="display: block; bottom: 0px; min-width: 18px;"><div style="min-width: 1px; height: 554px;"></div></div><div class="CodeMirror-scrollbar-filler"></div><div class="CodeMirror-gutter-filler"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="min-width: 579.350463867188px; margin-left: 29px; min-height: 554px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines"><div style="position: relative; outline: none;"><div class="CodeMirror-measure"><div style="width: 50px; height: 50px; overflow-x: scroll;"></div></div><div style="position: relative; z-index: 1; display: none;"></div><div class="CodeMirror-code"><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">1</div></div><pre><span class="cm-comment"># -*- coding: utf-8 -*-</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">2</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">3</div></div><pre><span class="cm-comment"># Published under Commercial License.</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">4</div></div><pre><span class="cm-comment"># Read the full license text at https://rhodecode.com/licenses.</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">5</div></div><pre><span class="cm-string">"""</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">6</div></div><pre><span class="cm-string">rhodecode.websetup</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">7</div></div><pre><span class="cm-string">~~~~~~~~~~~~~~~~~~</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">8</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">9</div></div><pre><span class="cm-string">Weboperations and setup for rhodecode</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">10</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">11</div></div><pre><span class="cm-string">:created_on: Dec 11, 2010</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">12</div></div><pre><span class="cm-string">:author: marcink</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">13</div></div><pre><span class="cm-string">:copyright: (c) 2013-2015 RhodeCode GmbH.</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">14</div></div><pre><span class="cm-string">:license: Commercial License, see LICENSE for more details.</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">15</div></div><pre><span class="cm-string">"""</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">16</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">17</div></div><pre><span class="cm-keyword">import</span> <span class="cm-variable">logging</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">18</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">19</div></div><pre><span class="cm-keyword">from</span> <span class="cm-variable">rhodecode</span>.<span class="cm-variable">config</span>.<span class="cm-variable">environment</span> <span class="cm-keyword">import</span> <span class="cm-variable">load_environment</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">20</div></div><pre><span class="cm-keyword">from</span> <span class="cm-variable">rhodecode</span>.<span class="cm-variable">lib</span>.<span class="cm-variable">db_manage</span> <span class="cm-keyword">import</span> <span class="cm-variable">DbManage</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">21</div></div><pre><span class="cm-keyword">from</span> <span class="cm-variable">rhodecode</span>.<span class="cm-variable">model</span>.<span class="cm-variable">meta</span> <span class="cm-keyword">import</span> <span class="cm-variable">Session</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">22</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">23</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">24</div></div><pre><span class="cm-variable">log</span> = <span class="cm-variable">logging</span>.<span class="cm-variable">getLogger</span>(<span class="cm-variable">__name__</span>) # Intentionally long line to show what will happen if this line does not fit onto the screen. It might have some horizontal scrolling applied or some other fancy mechanism to deal with it.</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">25</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">26</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">27</div></div><pre><span class="cm-keyword">def</span> <span class="cm-def">setup_app</span>(<span class="cm-variable">command</span>, <span class="cm-variable">conf</span>, <span class="cm-builtin">vars</span>):</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">28</div></div><pre> <span class="cm-string">"""Place any commands to setup rhodecode here"""</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">29</div></div><pre> <span class="cm-variable">dbconf</span> = <span class="cm-variable">conf</span>[<span class="cm-string">'sqlalchemy.db1.url'</span>]</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">30</div></div><pre> <span class="cm-variable">dbmanage</span> = <span class="cm-variable">DbManage</span>(<span class="cm-variable">log_sql</span>=<span class="cm-builtin">True</span>, <span class="cm-variable">dbconf</span>=<span class="cm-variable">dbconf</span>, <span class="cm-variable">root</span>=<span class="cm-variable">conf</span>[<span class="cm-string">'here'</span>],</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">31</div></div><pre> <span class="cm-variable">tests</span>=<span class="cm-builtin">False</span>, <span class="cm-variable">cli_args</span>=<span class="cm-variable">command</span>.<span class="cm-variable">options</span>.<span class="cm-variable">__dict__</span>)</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">32</div></div><pre> <span class="cm-variable">dbmanage</span>.<span class="cm-variable">create_tables</span>(<span class="cm-variable">override</span>=<span class="cm-builtin">True</span>)</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">33</div></div><pre> <span class="cm-variable">dbmanage</span>.<span class="cm-variable">set_db_version</span>()</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">34</div></div><pre> <span class="cm-variable">opts</span> = <span class="cm-variable">dbmanage</span>.<span class="cm-variable">config_prompt</span>(<span class="cm-builtin">None</span>)</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">35</div></div><pre> <span class="cm-variable">dbmanage</span>.<span class="cm-variable">create_settings</span>(<span class="cm-variable">opts</span>)</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">36</div></div><pre> <span class="cm-variable">dbmanage</span>.<span class="cm-variable">create_default_user</span>()</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">37</div></div><pre> <span class="cm-variable">dbmanage</span>.<span class="cm-variable">admin_prompt</span>()</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">38</div></div><pre> <span class="cm-variable">dbmanage</span>.<span class="cm-variable">create_permissions</span>()</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">39</div></div><pre> <span class="cm-variable">dbmanage</span>.<span class="cm-variable">populate_default_permissions</span>()</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">40</div></div><pre> <span class="cm-variable">Session</span>().<span class="cm-variable">commit</span>()</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">41</div></div><pre> <span class="cm-variable">load_environment</span>(<span class="cm-variable">conf</span>.<span class="cm-variable">global_conf</span>, <span class="cm-variable">conf</span>.<span class="cm-variable">local_conf</span>, <span class="cm-variable">initial</span>=<span class="cm-builtin">True</span>)</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">42</div></div><pre> </pre></div></div><div class="CodeMirror-cursor" style="left: 4px; top: 0px; height: 13px;"> </div><div class="CodeMirror-cursor CodeMirror-secondarycursor" style="display: none;"> </div></div></div></div></div><div style="position: absolute; height: 30px; width: 1px; top: 554px;"></div><div class="CodeMirror-gutters" style="height: 554px;"><div class="CodeMirror-gutter CodeMirror-linenumbers" style="width: 28px;"></div></div></div></div>
|
|
736
|
</textarea><div class="CodeMirror cm-s-default CodeMirror-focused"><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 5px; left: 34px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" style="position: absolute; padding: 0px; width: 1000px; height: 1em; outline: none;" tabindex="0"></textarea></div><div class="CodeMirror-hscrollbar" style="left: 29px; min-height: 18px;"><div style="height: 100%; min-height: 1px; width: 0px;"></div></div><div class="CodeMirror-vscrollbar" style="display: block; bottom: 0px; min-width: 18px;"><div style="min-width: 1px; height: 554px;"></div></div><div class="CodeMirror-scrollbar-filler"></div><div class="CodeMirror-gutter-filler"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="min-width: 579.350463867188px; margin-left: 29px; min-height: 554px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines"><div style="position: relative; outline: none;"><div class="CodeMirror-measure"><div style="width: 50px; height: 50px; overflow-x: scroll;"></div></div><div style="position: relative; z-index: 1; display: none;"></div><div class="CodeMirror-code"><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">1</div></div><pre><span class="cm-comment"># -*- coding: utf-8 -*-</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">2</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">3</div></div><pre><span class="cm-comment"># Published under Commercial License.</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">4</div></div><pre><span class="cm-comment"># Read the full license text at https://rhodecode.com/licenses.</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">5</div></div><pre><span class="cm-string">"""</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">6</div></div><pre><span class="cm-string">rhodecode.websetup</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">7</div></div><pre><span class="cm-string">~~~~~~~~~~~~~~~~~~</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">8</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">9</div></div><pre><span class="cm-string">Weboperations and setup for rhodecode</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">10</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">11</div></div><pre><span class="cm-string">:created_on: Dec 11, 2010</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">12</div></div><pre><span class="cm-string">:author: marcink</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">13</div></div><pre><span class="cm-string">:copyright: (c) 2013-2015 RhodeCode GmbH.</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">14</div></div><pre><span class="cm-string">:license: Commercial License, see LICENSE for more details.</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">15</div></div><pre><span class="cm-string">"""</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">16</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">17</div></div><pre><span class="cm-keyword">import</span> <span class="cm-variable">logging</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">18</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">19</div></div><pre><span class="cm-keyword">from</span> <span class="cm-variable">rhodecode</span>.<span class="cm-variable">config</span>.<span class="cm-variable">environment</span> <span class="cm-keyword">import</span> <span class="cm-variable">load_environment</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">20</div></div><pre><span class="cm-keyword">from</span> <span class="cm-variable">rhodecode</span>.<span class="cm-variable">lib</span>.<span class="cm-variable">db_manage</span> <span class="cm-keyword">import</span> <span class="cm-variable">DbManage</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">21</div></div><pre><span class="cm-keyword">from</span> <span class="cm-variable">rhodecode</span>.<span class="cm-variable">model</span>.<span class="cm-variable">meta</span> <span class="cm-keyword">import</span> <span class="cm-variable">Session</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">22</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">23</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">24</div></div><pre><span class="cm-variable">log</span> = <span class="cm-variable">logging</span>.<span class="cm-variable">getLogger</span>(<span class="cm-variable">__name__</span>) # Intentionally long line to show what will happen if this line does not fit onto the screen. It might have some horizontal scrolling applied or some other fancy mechanism to deal with it.</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">25</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">26</div></div><pre> </pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">27</div></div><pre><span class="cm-keyword">def</span> <span class="cm-def">setup_app</span>(<span class="cm-variable">command</span>, <span class="cm-variable">conf</span>, <span class="cm-builtin">vars</span>):</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">28</div></div><pre> <span class="cm-string">"""Place any commands to setup rhodecode here"""</span></pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">29</div></div><pre> <span class="cm-variable">dbconf</span> = <span class="cm-variable">conf</span>[<span class="cm-string">'sqlalchemy.db1.url'</span>]</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">30</div></div><pre> <span class="cm-variable">dbmanage</span> = <span class="cm-variable">DbManage</span>(<span class="cm-variable">log_sql</span>=<span class="cm-builtin">True</span>, <span class="cm-variable">dbconf</span>=<span class="cm-variable">dbconf</span>, <span class="cm-variable">root</span>=<span class="cm-variable">conf</span>[<span class="cm-string">'here'</span>],</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">31</div></div><pre> <span class="cm-variable">tests</span>=<span class="cm-builtin">False</span>, <span class="cm-variable">cli_args</span>=<span class="cm-variable">command</span>.<span class="cm-variable">options</span>.<span class="cm-variable">__dict__</span>)</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">32</div></div><pre> <span class="cm-variable">dbmanage</span>.<span class="cm-variable">create_tables</span>(<span class="cm-variable">override</span>=<span class="cm-builtin">True</span>)</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">33</div></div><pre> <span class="cm-variable">dbmanage</span>.<span class="cm-variable">set_db_version</span>()</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">34</div></div><pre> <span class="cm-variable">opts</span> = <span class="cm-variable">dbmanage</span>.<span class="cm-variable">config_prompt</span>(<span class="cm-builtin">None</span>)</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">35</div></div><pre> <span class="cm-variable">dbmanage</span>.<span class="cm-variable">create_settings</span>(<span class="cm-variable">opts</span>)</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">36</div></div><pre> <span class="cm-variable">dbmanage</span>.<span class="cm-variable">create_default_user</span>()</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">37</div></div><pre> <span class="cm-variable">dbmanage</span>.<span class="cm-variable">admin_prompt</span>()</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">38</div></div><pre> <span class="cm-variable">dbmanage</span>.<span class="cm-variable">create_permissions</span>()</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">39</div></div><pre> <span class="cm-variable">dbmanage</span>.<span class="cm-variable">populate_default_permissions</span>()</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">40</div></div><pre> <span class="cm-variable">Session</span>().<span class="cm-variable">commit</span>()</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">41</div></div><pre> <span class="cm-variable">load_environment</span>(<span class="cm-variable">conf</span>.<span class="cm-variable">global_conf</span>, <span class="cm-variable">conf</span>.<span class="cm-variable">local_conf</span>, <span class="cm-variable">initial</span>=<span class="cm-builtin">True</span>)</pre></div><div style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="position: absolute; left: -29px;"><div class="CodeMirror-linenumber CodeMirror-gutter-elt" style="left: 0px; width: 20px;">42</div></div><pre> </pre></div></div><div class="CodeMirror-cursor" style="left: 4px; top: 0px; height: 13px;"> </div><div class="CodeMirror-cursor CodeMirror-secondarycursor" style="display: none;"> </div></div></div></div></div><div style="position: absolute; height: 30px; width: 1px; top: 554px;"></div><div class="CodeMirror-gutters" style="height: 554px;"><div class="CodeMirror-gutter CodeMirror-linenumbers" style="width: 28px;"></div></div></div></div>
|
|
737
|
<div id="editor_preview"></div>
|
|
737
|
<div id="editor_preview"></div>
|
|
738
|
</div>
|
|
738
|
</div>
|
|
739
|
<div class="message">
|
|
739
|
<div class="message">
|
|
740
|
<label class="codeblock-label">Commit Message</label>
|
|
740
|
<label class="codeblock-label">Commit Message</label>
|
|
741
|
<textarea id="commit" name="message" placeholder="Edited file rhodecode/websetup.py via RhodeCode"></textarea>
|
|
741
|
<textarea id="commit" name="message" placeholder="Edited file rhodecode/websetup.py via RhodeCode"></textarea>
|
|
742
|
</div>
|
|
742
|
</div>
|
|
743
|
</div>
|
|
743
|
</div>
|
|
744
|
|
|
744
|
|
|
745
|
|
|
745
|
|
|
746
|
|
|
746
|
|
|
747
|
|
|
747
|
|
|
748
|
|
|
748
|
|
|
749
|
|
|
749
|
|
|
750
|
<!--
|
|
750
|
<!--
|
|
751
|
Commit with comments
|
|
751
|
Commit with comments
|
|
752
|
-->
|
|
752
|
-->
|
|
753
|
|
|
753
|
|
|
754
|
<h2>Commit with comments</h2>
|
|
754
|
<h2>Commit with comments</h2>
|
|
755
|
|
|
755
|
|
|
756
|
<div class="diff-container" id="diff-container-140360037209920">
|
|
756
|
<div class="diff-container" id="diff-container-140360037209920">
|
|
757
|
<div id="c-4e5ee86997c6-7046e4320b26_target"></div>
|
|
757
|
<div id="c-4e5ee86997c6-7046e4320b26_target"></div>
|
|
758
|
<div id="c-4e5ee86997c6-7046e4320b26" class="diffblock margined comm">
|
|
758
|
<div id="c-4e5ee86997c6-7046e4320b26" class="diffblock margined comm">
|
|
759
|
<div class="code-header">
|
|
759
|
<div class="code-header">
|
|
760
|
<div title="Go back to changed files overview">
|
|
760
|
<div title="Go back to changed files overview">
|
|
761
|
<a href="#changes_box">
|
|
761
|
<a href="#changes_box">
|
|
762
|
<i class="icon-circle-arrow-up"></i>
|
|
762
|
<i class="icon-circle-arrow-up"></i>
|
|
763
|
</a>
|
|
763
|
</a>
|
|
764
|
</div>
|
|
764
|
</div>
|
|
765
|
<div class="changeset_header">
|
|
765
|
<div class="changeset_header">
|
|
766
|
<div class="changeset_file">
|
|
766
|
<div class="changeset_file">
|
|
767
|
<i class="icon-file"></i>
|
|
767
|
<i class="icon-file"></i>
|
|
768
|
<a href="/andersonsantos/rhodecode-dev-fork/files/4e5ee86997c64981d85cf62283af448624e26929/rhodecode/tests/functional/test_compare_local.py">rhodecode/tests/functional/test_compare_local.py</a>
|
|
768
|
<a href="/andersonsantos/rhodecode-dev-fork/files/4e5ee86997c64981d85cf62283af448624e26929/rhodecode/tests/functional/test_compare_local.py">rhodecode/tests/functional/test_compare_local.py</a>
|
|
769
|
</div>
|
|
769
|
</div>
|
|
770
|
<div class="diff-actions">
|
|
770
|
<div class="diff-actions">
|
|
771
|
<a href="/andersonsantos/rhodecode-dev-fork/diff/rhodecode/tests/functional/test_compare_local.py?fulldiff=1&diff1=682135c2e3958d7c84db06d716efe482bd3ce7c6&diff=diff&diff2=4e5ee86997c64981d85cf62283af448624e26929" class="tooltip" title="Show full diff for this file">
|
|
771
|
<a href="/andersonsantos/rhodecode-dev-fork/diff/rhodecode/tests/functional/test_compare_local.py?fulldiff=1&diff1=682135c2e3958d7c84db06d716efe482bd3ce7c6&diff=diff&diff2=4e5ee86997c64981d85cf62283af448624e26929" class="tooltip" title="Show full diff for this file">
|
|
772
|
<img class="icon" src="/images/icons/page_white_go.png">
|
|
772
|
<img class="icon" src="/images/icons/page_white_go.png">
|
|
773
|
</a>
|
|
773
|
</a>
|
|
774
|
<a href="/andersonsantos/rhodecode-dev-fork/diff-2way/rhodecode/tests/functional/test_compare_local.py?fulldiff=1&diff1=682135c2e3958d7c84db06d716efe482bd3ce7c6&diff=diff&diff2=4e5ee86997c64981d85cf62283af448624e26929" class="tooltip" title="Show full side-by-side diff for this file">
|
|
774
|
<a href="/andersonsantos/rhodecode-dev-fork/diff-2way/rhodecode/tests/functional/test_compare_local.py?fulldiff=1&diff1=682135c2e3958d7c84db06d716efe482bd3ce7c6&diff=diff&diff2=4e5ee86997c64981d85cf62283af448624e26929" class="tooltip" title="Show full side-by-side diff for this file">
|
|
775
|
<img class="icon" src="/images/icons/application_double.png">
|
|
775
|
<img class="icon" src="/images/icons/application_double.png">
|
|
776
|
</a>
|
|
776
|
</a>
|
|
777
|
<a href="/andersonsantos/rhodecode-dev-fork/diff/rhodecode/tests/functional/test_compare_local.py?diff1=682135c2e3958d7c84db06d716efe482bd3ce7c6&diff=raw&diff2=4e5ee86997c64981d85cf62283af448624e26929" class="tooltip" title="Raw diff">
|
|
777
|
<a href="/andersonsantos/rhodecode-dev-fork/diff/rhodecode/tests/functional/test_compare_local.py?diff1=682135c2e3958d7c84db06d716efe482bd3ce7c6&diff=raw&diff2=4e5ee86997c64981d85cf62283af448624e26929" class="tooltip" title="Raw diff">
|
|
778
|
<img class="icon" src="/images/icons/page_white.png">
|
|
778
|
<img class="icon" src="/images/icons/page_white.png">
|
|
779
|
</a>
|
|
779
|
</a>
|
|
780
|
<a href="/andersonsantos/rhodecode-dev-fork/diff/rhodecode/tests/functional/test_compare_local.py?diff1=682135c2e3958d7c84db06d716efe482bd3ce7c6&diff=download&diff2=4e5ee86997c64981d85cf62283af448624e26929" class="tooltip" title="Download diff">
|
|
780
|
<a href="/andersonsantos/rhodecode-dev-fork/diff/rhodecode/tests/functional/test_compare_local.py?diff1=682135c2e3958d7c84db06d716efe482bd3ce7c6&diff=download&diff2=4e5ee86997c64981d85cf62283af448624e26929" class="tooltip" title="Download diff">
|
|
781
|
<img class="icon" src="/images/icons/page_save.png">
|
|
781
|
<img class="icon" src="/images/icons/page_save.png">
|
|
782
|
</a>
|
|
782
|
</a>
|
|
783
|
<a class="tooltip" href="/andersonsantos/rhodecode-dev-fork/changeset/4e5ee86997c64981d85cf62283af448624e26929?c-4e5ee86997c6-7046e4320b26=WS%3A1&c-4e5ee86997c6-7046e4320b26=C%3A3#c-4e5ee86997c6-7046e4320b26" title="Ignore white space"><img alt="Ignore white space" class="icon" src="/images/icons/text_strikethrough.png"></a>
|
|
783
|
<a class="tooltip" href="/andersonsantos/rhodecode-dev-fork/changeset/4e5ee86997c64981d85cf62283af448624e26929?c-4e5ee86997c6-7046e4320b26=WS%3A1&c-4e5ee86997c6-7046e4320b26=C%3A3#c-4e5ee86997c6-7046e4320b26" title="Ignore white space"><img alt="Ignore white space" class="icon" src="/images/icons/text_strikethrough.png"></a>
|
|
784
|
<a class="tooltip" href="/andersonsantos/rhodecode-dev-fork/changeset/4e5ee86997c64981d85cf62283af448624e26929?c-4e5ee86997c6-7046e4320b26=C%3A6#c-4e5ee86997c6-7046e4320b26" title="increase diff context to 6 lines"><img alt="increase diff context to 6 lines" class="icon" src="/images/icons/table_add.png"></a>
|
|
784
|
<a class="tooltip" href="/andersonsantos/rhodecode-dev-fork/changeset/4e5ee86997c64981d85cf62283af448624e26929?c-4e5ee86997c6-7046e4320b26=C%3A6#c-4e5ee86997c6-7046e4320b26" title="increase diff context to 6 lines"><img alt="increase diff context to 6 lines" class="icon" src="/images/icons/table_add.png"></a>
|
|
785
|
</div>
|
|
785
|
</div>
|
|
786
|
<span>
|
|
786
|
<span>
|
|
787
|
<label>
|
|
787
|
<label>
|
|
788
|
Show inline comments
|
|
788
|
Show inline comments
|
|
789
|
<input checked="checked" class="show-inline-comments" id="" id_for="c-4e5ee86997c6-7046e4320b26" name="" type="checkbox" value="1">
|
|
789
|
<input checked="checked" class="show-inline-comments" id="" id_for="c-4e5ee86997c6-7046e4320b26" name="" type="checkbox" value="1">
|
|
790
|
</label>
|
|
790
|
</label>
|
|
791
|
</span>
|
|
791
|
</span>
|
|
792
|
</div>
|
|
792
|
</div>
|
|
793
|
</div>
|
|
793
|
</div>
|
|
794
|
<div class="code-body">
|
|
794
|
<div class="code-body">
|
|
795
|
<div class="full_f_path" path="rhodecode/tests/functional/test_compare_local.py"></div>
|
|
795
|
<div class="full_f_path" path="rhodecode/tests/functional/test_compare_local.py"></div>
|
|
796
|
<table class="code-difftable">
|
|
796
|
<table class="code-difftable">
|
|
797
|
<tbody><tr class="line context">
|
|
797
|
<tbody><tr class="line context">
|
|
798
|
<td class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o...">...</a></td>
|
|
798
|
<td class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o...">...</a></td>
|
|
799
|
<td class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n...">...</a></td>
|
|
799
|
<td class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n...">...</a></td>
|
|
800
|
<td class="code ">
|
|
800
|
<td class="code ">
|
|
801
|
<pre>@@ -59,7 +59,7 @@
|
|
801
|
<pre>@@ -59,7 +59,7 @@
|
|
802
|
</pre>
|
|
802
|
</pre>
|
|
803
|
</td>
|
|
803
|
</td>
|
|
804
|
</tr>
|
|
804
|
</tr>
|
|
805
|
<tr class="line unmod">
|
|
805
|
<tr class="line unmod">
|
|
806
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_o59" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o59">59</a></td>
|
|
806
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_o59" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o59">59</a></td>
|
|
807
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_n59" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n59">59</a></td>
|
|
807
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_n59" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n59">59</a></td>
|
|
808
|
<td class="code ">
|
|
808
|
<td class="code ">
|
|
809
|
<pre> 'tag': 'v0.2.0',
|
|
809
|
<pre> 'tag': 'v0.2.0',
|
|
810
|
</pre>
|
|
810
|
</pre>
|
|
811
|
</td>
|
|
811
|
</td>
|
|
812
|
</tr>
|
|
812
|
</tr>
|
|
813
|
<tr class="line unmod">
|
|
813
|
<tr class="line unmod">
|
|
814
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_o60" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o60">60</a></td>
|
|
814
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_o60" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o60">60</a></td>
|
|
815
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_n60" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n60">60</a></td>
|
|
815
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_n60" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n60">60</a></td>
|
|
816
|
<td class="code ">
|
|
816
|
<td class="code ">
|
|
817
|
<pre> 'branch': 'default',
|
|
817
|
<pre> 'branch': 'default',
|
|
818
|
</pre>
|
|
818
|
</pre>
|
|
819
|
</td>
|
|
819
|
</td>
|
|
820
|
</tr>
|
|
820
|
</tr>
|
|
821
|
<tr class="line unmod">
|
|
821
|
<tr class="line unmod">
|
|
822
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_o61" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o61">61</a></td>
|
|
822
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_o61" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o61">61</a></td>
|
|
823
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_n61" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n61">61</a></td>
|
|
823
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_n61" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n61">61</a></td>
|
|
824
|
<td class="code ">
|
|
824
|
<td class="code ">
|
|
825
|
<pre> 'response': # Intentionally long line to show what will happen if this line does not fit onto the screen. It might have some horizontal scrolling applied or some other fancy mechanism to deal with it.
|
|
825
|
<pre> 'response': # Intentionally long line to show what will happen if this line does not fit onto the screen. It might have some horizontal scrolling applied or some other fancy mechanism to deal with it.
|
|
826
|
</pre>
|
|
826
|
</pre>
|
|
827
|
</td>
|
|
827
|
</td>
|
|
828
|
</tr>
|
|
828
|
</tr>
|
|
829
|
<tr class="line del">
|
|
829
|
<tr class="line del">
|
|
830
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_o62" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o62">62</a></td>
|
|
830
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_o62" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o62">62</a></td>
|
|
831
|
<td class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n"></a></td>
|
|
831
|
<td class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n"></a></td>
|
|
832
|
<td class="code ">
|
|
832
|
<td class="code ">
|
|
833
|
<pre> '147 files changed: 5700 inserted, 10176 deleted'
|
|
833
|
<pre> '147 files changed: 5700 inserted, 10176 deleted'
|
|
834
|
</pre>
|
|
834
|
</pre>
|
|
835
|
</td>
|
|
835
|
</td>
|
|
836
|
</tr>
|
|
836
|
</tr>
|
|
837
|
<tr class="line add">
|
|
837
|
<tr class="line add">
|
|
838
|
<td class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o"></a></td>
|
|
838
|
<td class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o"></a></td>
|
|
839
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_n62" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n62">62</a></td>
|
|
839
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_n62" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n62">62</a></td>
|
|
840
|
<td class="code ">
|
|
840
|
<td class="code ">
|
|
841
|
<pre><ins> </ins> '147 files changed: 5700 inserted, 10176 deleted'
|
|
841
|
<pre><ins> </ins> '147 files changed: 5700 inserted, 10176 deleted'
|
|
842
|
</pre>
|
|
842
|
</pre>
|
|
843
|
</td>
|
|
843
|
</td>
|
|
844
|
</tr>
|
|
844
|
</tr>
|
|
845
|
<tr class="line unmod">
|
|
845
|
<tr class="line unmod">
|
|
846
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_o63" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o63">63</a></td>
|
|
846
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_o63" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o63">63</a></td>
|
|
847
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_n63" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n63">63</a></td>
|
|
847
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_n63" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n63">63</a></td>
|
|
848
|
<td class="code ">
|
|
848
|
<td class="code ">
|
|
849
|
<pre> },
|
|
849
|
<pre> },
|
|
850
|
</pre>
|
|
850
|
</pre>
|
|
851
|
</td>
|
|
851
|
</td>
|
|
852
|
</tr>
|
|
852
|
</tr>
|
|
853
|
<tr class="line unmod">
|
|
853
|
<tr class="line unmod">
|
|
854
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_o64" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o64">64</a></td>
|
|
854
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_o64" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o64">64</a></td>
|
|
855
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_n64" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n64">64</a></td>
|
|
855
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_n64" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n64">64</a></td>
|
|
856
|
<td class="code ">
|
|
856
|
<td class="code ">
|
|
857
|
<pre> 'git': {
|
|
857
|
<pre> 'git': {
|
|
858
|
</pre>
|
|
858
|
</pre>
|
|
859
|
</td>
|
|
859
|
</td>
|
|
860
|
</tr>
|
|
860
|
</tr>
|
|
861
|
<tr class="line unmod">
|
|
861
|
<tr class="line unmod">
|
|
862
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_o65" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o65">65</a></td>
|
|
862
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_o65" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o65">65</a></td>
|
|
863
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_n65" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n65">65</a></td>
|
|
863
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_n65" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n65">65</a></td>
|
|
864
|
<td class="code ">
|
|
864
|
<td class="code ">
|
|
865
|
<pre> 'tag': 'v0.2.2',
|
|
865
|
<pre> 'tag': 'v0.2.2',
|
|
866
|
</pre>
|
|
866
|
</pre>
|
|
867
|
</td>
|
|
867
|
</td>
|
|
868
|
</tr>
|
|
868
|
</tr>
|
|
869
|
<tr class="line context">
|
|
869
|
<tr class="line context">
|
|
870
|
<td class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o...">...</a></td>
|
|
870
|
<td class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o...">...</a></td>
|
|
871
|
<td class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n...">...</a></td>
|
|
871
|
<td class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n...">...</a></td>
|
|
872
|
<td class="code ">
|
|
872
|
<td class="code ">
|
|
873
|
<pre>@@ -77,9 +77,11 @@
|
|
873
|
<pre>@@ -77,9 +77,11 @@
|
|
874
|
</pre>
|
|
874
|
</pre>
|
|
875
|
</td>
|
|
875
|
</td>
|
|
876
|
</tr>
|
|
876
|
</tr>
|
|
877
|
<tr class="line unmod">
|
|
877
|
<tr class="line unmod">
|
|
878
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_o77" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o77">77</a></td>
|
|
878
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_o77" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o77">77</a></td>
|
|
879
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_n77" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n77">77</a></td>
|
|
879
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_n77" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n77">77</a></td>
|
|
880
|
<td class="code ">
|
|
880
|
<td class="code ">
|
|
881
|
<pre> target_ref=revisions[backend.alias]['tag'],
|
|
881
|
<pre> target_ref=revisions[backend.alias]['tag'],
|
|
882
|
</pre>
|
|
882
|
</pre>
|
|
883
|
</td>
|
|
883
|
</td>
|
|
884
|
</tr>
|
|
884
|
</tr>
|
|
885
|
<tr class="line unmod">
|
|
885
|
<tr class="line unmod">
|
|
886
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_o78" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o78">78</a></td>
|
|
886
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_o78" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o78">78</a></td>
|
|
887
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_n78" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n78">78</a></td>
|
|
887
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_n78" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n78">78</a></td>
|
|
888
|
<td class="code ">
|
|
888
|
<td class="code ">
|
|
889
|
<pre> ))
|
|
889
|
<pre> ))
|
|
890
|
</pre>
|
|
890
|
</pre>
|
|
891
|
</td>
|
|
891
|
</td>
|
|
892
|
</tr><tr id="comment-tr-3754" class="inline-comments"><td></td><td></td><td>
|
|
892
|
</tr><tr id="comment-tr-3754" class="inline-comments"><td></td><td></td><td>
|
|
893
|
|
|
893
|
|
|
894
|
<div class="comment" id="comment-3754" line="n78">
|
|
894
|
<div class="comment" id="comment-3754" line="n78">
|
|
895
|
<div class="comment-wrapp">
|
|
895
|
<div class="comment-wrapp">
|
|
896
|
<div class="meta">
|
|
896
|
<div class="meta">
|
|
897
|
<span class="gravatar">
|
|
897
|
<span class="gravatar">
|
|
898
|
<img src="https://secure.gravatar.com/avatar/72706ebd30734451af9ff3fb59f05ff1?d=identicon&s=40" height="20" width="20">
|
|
898
|
<img src="https://secure.gravatar.com/avatar/72706ebd30734451af9ff3fb59f05ff1?d=identicon&s=40" height="20" width="20">
|
|
899
|
</span>
|
|
899
|
</span>
|
|
900
|
<span class="user">
|
|
900
|
<span class="user">
|
|
901
|
anderson
|
|
901
|
anderson
|
|
902
|
</span>
|
|
902
|
</span>
|
|
903
|
<span class="date">
|
|
903
|
<span class="date">
|
|
904
|
just now |
|
|
904
|
just now |
|
|
905
|
</span>
|
|
905
|
</span>
|
|
906
|
<span class="status-change">
|
|
906
|
<span class="status-change">
|
|
907
|
Comment on commit
|
|
907
|
Comment on commit
|
|
908
|
</span>
|
|
908
|
</span>
|
|
909
|
<a class="permalink" href="#comment-3754">ΒΆ</a>
|
|
909
|
<a class="permalink" href="#comment-3754">ΒΆ</a>
|
|
910
|
</div>
|
|
910
|
</div>
|
|
911
|
<div class="text">
|
|
911
|
<div class="text">
|
|
912
|
<div class="rst-block"><p>commented line
|
|
912
|
<div class="rst-block"><p>commented line
|
|
913
|
with multiple lines</p>
|
|
913
|
with multiple lines</p>
|
|
914
|
</div>
|
|
914
|
</div>
|
|
915
|
</div>
|
|
915
|
</div>
|
|
916
|
</div>
|
|
916
|
</div>
|
|
917
|
</div><div class="add-comment"><span class="btn btn-default">Add another comment</span></div>
|
|
917
|
</div><div class="add-comment"><span class="btn btn-default">Add another comment</span></div>
|
|
918
|
|
|
918
|
|
|
919
|
</td></tr>
|
|
919
|
</td></tr>
|
|
920
|
<tr class="line unmod">
|
|
920
|
<tr class="line unmod">
|
|
921
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_o79" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o79">79</a></td>
|
|
921
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_o79" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o79">79</a></td>
|
|
922
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_n79" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n79">79</a></td>
|
|
922
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_n79" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n79">79</a></td>
|
|
923
|
<td class="code ">
|
|
923
|
<td class="code ">
|
|
924
|
<pre></pre>
|
|
924
|
<pre></pre>
|
|
925
|
</td>
|
|
925
|
</td>
|
|
926
|
</tr>
|
|
926
|
</tr>
|
|
927
|
<tr class="line del form-open hl-comment">
|
|
927
|
<tr class="line del form-open hl-comment">
|
|
928
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_o80" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o80">80</a></td>
|
|
928
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_o80" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o80">80</a></td>
|
|
929
|
<td class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n"></a></td>
|
|
929
|
<td class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n"></a></td>
|
|
930
|
<td class="code ">
|
|
930
|
<td class="code ">
|
|
931
|
<pre> response.mustcontain('%s@%s' % (<del>backend.repo_name,</del>
|
|
931
|
<pre> response.mustcontain('%s@%s' % (<del>backend.repo_name,</del>
|
|
932
|
</pre>
|
|
932
|
</pre>
|
|
933
|
</td>
|
|
933
|
</td>
|
|
934
|
</tr><tr id="comment-tr-undefined" class="comment-form-inline"><td></td><td></td><td>
|
|
934
|
</tr><tr id="comment-tr-undefined" class="comment-form-inline"><td></td><td></td><td>
|
|
935
|
<div class="comment-inline-form ac">
|
|
935
|
<div class="comment-inline-form ac">
|
|
936
|
<div class="overlay"><div class="overlay-text">Submitting...</div></div>
|
|
936
|
<div class="overlay"><div class="overlay-text">Submitting...</div></div>
|
|
937
|
<form action="#" class="inline-form" method="get">
|
|
937
|
<form action="#" class="inline-form" method="get">
|
|
938
|
<div id="edit-container_o80" class="clearfix">
|
|
938
|
<div id="edit-container_o80" class="clearfix">
|
|
939
|
<div class="comment-title pull-left">
|
|
939
|
<div class="comment-title pull-left">
|
|
940
|
Commenting on line o80.
|
|
940
|
Commenting on line o80.
|
|
941
|
</div>
|
|
941
|
</div>
|
|
942
|
<div class="comment-help pull-right">
|
|
942
|
<div class="comment-help pull-right">
|
|
943
|
Comments parsed using <a href="http://docutils.sourceforge.net/docs/user/rst/quickref.html">RST</a> syntax with <span class="tooltip" title="Use @username inside this text to send notification to this RhodeCode user">@mention</span> support.
|
|
943
|
Comments parsed using <a href="http://docutils.sourceforge.io/docs/user/rst/quickref.html">RST</a> syntax with <span class="tooltip" title="Use @username inside this text to send notification to this RhodeCode user">@mention</span> support.
|
|
944
|
</div>
|
|
944
|
</div>
|
|
945
|
<div style="clear: both"></div>
|
|
945
|
<div style="clear: both"></div>
|
|
946
|
<textarea id="text_o80" name="text" class="comment-block-ta ac-input" autocomplete="off"></textarea>
|
|
946
|
<textarea id="text_o80" name="text" class="comment-block-ta ac-input" autocomplete="off"></textarea>
|
|
947
|
</div>
|
|
947
|
</div>
|
|
948
|
<div id="preview-container_o80" class="clearfix" style="display: none;">
|
|
948
|
<div id="preview-container_o80" class="clearfix" style="display: none;">
|
|
949
|
<div class="comment-help">
|
|
949
|
<div class="comment-help">
|
|
950
|
Comment preview
|
|
950
|
Comment preview
|
|
951
|
</div>
|
|
951
|
</div>
|
|
952
|
<div id="preview-box_o80" class="preview-box"></div>
|
|
952
|
<div id="preview-box_o80" class="preview-box"></div>
|
|
953
|
</div>
|
|
953
|
</div>
|
|
954
|
<div class="comment-button pull-right">
|
|
954
|
<div class="comment-button pull-right">
|
|
955
|
<input type="hidden" name="f_path" value="rhodecode/tests/functional/test_compare_local.py">
|
|
955
|
<input type="hidden" name="f_path" value="rhodecode/tests/functional/test_compare_local.py">
|
|
956
|
<input type="hidden" name="line" value="o80">
|
|
956
|
<input type="hidden" name="line" value="o80">
|
|
957
|
<div id="preview-btn_o80" class="btn btn-default">Preview</div>
|
|
957
|
<div id="preview-btn_o80" class="btn btn-default">Preview</div>
|
|
958
|
<div id="edit-btn_o80" class="btn" style="display: none;">Edit</div>
|
|
958
|
<div id="edit-btn_o80" class="btn" style="display: none;">Edit</div>
|
|
959
|
<input class="btn btn-success save-inline-form" id="save" name="save" type="submit" value="Comment">
|
|
959
|
<input class="btn btn-success save-inline-form" id="save" name="save" type="submit" value="Comment">
|
|
960
|
</div>
|
|
960
|
</div>
|
|
961
|
<div class="comment-button hide-inline-form-button">
|
|
961
|
<div class="comment-button hide-inline-form-button">
|
|
962
|
<input class="btn hide-inline-form" id="hide-inline-form" name="hide-inline-form" type="reset" value="Cancel">
|
|
962
|
<input class="btn hide-inline-form" id="hide-inline-form" name="hide-inline-form" type="reset" value="Cancel">
|
|
963
|
</div>
|
|
963
|
</div>
|
|
964
|
</form>
|
|
964
|
</form>
|
|
965
|
</div>
|
|
965
|
</div>
|
|
966
|
</td></tr>
|
|
966
|
</td></tr>
|
|
967
|
<tr class="line add">
|
|
967
|
<tr class="line add">
|
|
968
|
<td class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o"></a></td>
|
|
968
|
<td class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o"></a></td>
|
|
969
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_n80" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n80">80</a></td>
|
|
969
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_n80" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n80">80</a></td>
|
|
970
|
<td class="code ">
|
|
970
|
<td class="code ">
|
|
971
|
<pre> response.mustcontain('%s@%s' % (
|
|
971
|
<pre> response.mustcontain('%s@%s' % (
|
|
972
|
</pre>
|
|
972
|
</pre>
|
|
973
|
</td>
|
|
973
|
</td>
|
|
974
|
</tr>
|
|
974
|
</tr>
|
|
975
|
<tr class="line add">
|
|
975
|
<tr class="line add">
|
|
976
|
<td class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o"></a></td>
|
|
976
|
<td class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o"></a></td>
|
|
977
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_n81" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n81">81</a></td>
|
|
977
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_n81" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n81">81</a></td>
|
|
978
|
<td class="code ">
|
|
978
|
<td class="code ">
|
|
979
|
<pre> backend.repo_name,
|
|
979
|
<pre> backend.repo_name,
|
|
980
|
</pre>
|
|
980
|
</pre>
|
|
981
|
</td>
|
|
981
|
</td>
|
|
982
|
</tr>
|
|
982
|
</tr>
|
|
983
|
<tr class="line unmod">
|
|
983
|
<tr class="line unmod">
|
|
984
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_o81" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o81">81</a></td>
|
|
984
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_o81" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o81">81</a></td>
|
|
985
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_n82" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n82">82</a></td>
|
|
985
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_n82" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n82">82</a></td>
|
|
986
|
<td class="code ">
|
|
986
|
<td class="code ">
|
|
987
|
<pre> revisions[backend.alias]['branch']))
|
|
987
|
<pre> revisions[backend.alias]['branch']))
|
|
988
|
</pre>
|
|
988
|
</pre>
|
|
989
|
</td>
|
|
989
|
</td>
|
|
990
|
</tr>
|
|
990
|
</tr>
|
|
991
|
<tr class="line del">
|
|
991
|
<tr class="line del">
|
|
992
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_o82" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o82">82</a></td>
|
|
992
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_o82" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o82">82</a></td>
|
|
993
|
<td class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n"></a></td>
|
|
993
|
<td class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n"></a></td>
|
|
994
|
<td class="code ">
|
|
994
|
<td class="code ">
|
|
995
|
<pre> response.mustcontain('%s@%s' % (<del>backend.repo_name,</del>
|
|
995
|
<pre> response.mustcontain('%s@%s' % (<del>backend.repo_name,</del>
|
|
996
|
</pre>
|
|
996
|
</pre>
|
|
997
|
</td>
|
|
997
|
</td>
|
|
998
|
</tr>
|
|
998
|
</tr>
|
|
999
|
<tr class="line add">
|
|
999
|
<tr class="line add">
|
|
1000
|
<td class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o"></a></td>
|
|
1000
|
<td class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o"></a></td>
|
|
1001
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_n83" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n83">83</a></td>
|
|
1001
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_n83" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n83">83</a></td>
|
|
1002
|
<td class="code ">
|
|
1002
|
<td class="code ">
|
|
1003
|
<pre> response.mustcontain('%s@%s' % (
|
|
1003
|
<pre> response.mustcontain('%s@%s' % (
|
|
1004
|
</pre>
|
|
1004
|
</pre>
|
|
1005
|
</td>
|
|
1005
|
</td>
|
|
1006
|
</tr>
|
|
1006
|
</tr>
|
|
1007
|
<tr class="line add">
|
|
1007
|
<tr class="line add">
|
|
1008
|
<td class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o"></a></td>
|
|
1008
|
<td class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o"></a></td>
|
|
1009
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_n84" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n84">84</a></td>
|
|
1009
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_n84" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n84">84</a></td>
|
|
1010
|
<td class="code ">
|
|
1010
|
<td class="code ">
|
|
1011
|
<pre> backend.repo_name,
|
|
1011
|
<pre> backend.repo_name,
|
|
1012
|
</pre>
|
|
1012
|
</pre>
|
|
1013
|
</td>
|
|
1013
|
</td>
|
|
1014
|
</tr>
|
|
1014
|
</tr>
|
|
1015
|
<tr class="line unmod">
|
|
1015
|
<tr class="line unmod">
|
|
1016
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_o83" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o83">83</a></td>
|
|
1016
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_o83" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o83">83</a></td>
|
|
1017
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_n85" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n85">85</a></td>
|
|
1017
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_n85" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n85">85</a></td>
|
|
1018
|
<td class="code ">
|
|
1018
|
<td class="code ">
|
|
1019
|
<pre> revisions[backend.alias]['tag']))
|
|
1019
|
<pre> revisions[backend.alias]['tag']))
|
|
1020
|
</pre>
|
|
1020
|
</pre>
|
|
1021
|
</td>
|
|
1021
|
</td>
|
|
1022
|
</tr>
|
|
1022
|
</tr>
|
|
1023
|
<tr class="line unmod">
|
|
1023
|
<tr class="line unmod">
|
|
1024
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_o84" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o84">84</a></td>
|
|
1024
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_o84" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o84">84</a></td>
|
|
1025
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_n86" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n86">86</a></td>
|
|
1025
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_n86" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n86">86</a></td>
|
|
1026
|
<td class="code ">
|
|
1026
|
<td class="code ">
|
|
1027
|
<pre> response.mustcontain(revisions[backend.alias]['response'])
|
|
1027
|
<pre> response.mustcontain(revisions[backend.alias]['response'])
|
|
1028
|
</pre>
|
|
1028
|
</pre>
|
|
1029
|
</td>
|
|
1029
|
</td>
|
|
1030
|
</tr>
|
|
1030
|
</tr>
|
|
1031
|
<tr class="line unmod">
|
|
1031
|
<tr class="line unmod">
|
|
1032
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_o85" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o85">85</a></td>
|
|
1032
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_o85" class="lineno old"><a href="#rhodecodetestsfunctionaltest_compare_localpy_o85">85</a></td>
|
|
1033
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_n87" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n87">87</a></td>
|
|
1033
|
<td id="rhodecodetestsfunctionaltest_compare_localpy_n87" class="lineno new"><a href="#rhodecodetestsfunctionaltest_compare_localpy_n87">87</a></td>
|
|
1034
|
<td class="code ">
|
|
1034
|
<td class="code ">
|
|
1035
|
<pre></pre>
|
|
1035
|
<pre></pre>
|
|
1036
|
</td>
|
|
1036
|
</td>
|
|
1037
|
</tr>
|
|
1037
|
</tr>
|
|
1038
|
</tbody></table>
|
|
1038
|
</tbody></table>
|
|
1039
|
</div>
|
|
1039
|
</div>
|
|
1040
|
</div>
|
|
1040
|
</div>
|
|
1041
|
</div>
|
|
1041
|
</div>
|
|
1042
|
|
|
1042
|
|
|
1043
|
|
|
1043
|
|
|
1044
|
|
|
1044
|
|
|
1045
|
<!--
|
|
1045
|
<!--
|
|
1046
|
Side-by-side diff
|
|
1046
|
Side-by-side diff
|
|
1047
|
-->
|
|
1047
|
-->
|
|
1048
|
|
|
1048
|
|
|
1049
|
<h2>Side-by-side diff</h2>
|
|
1049
|
<h2>Side-by-side diff</h2>
|
|
1050
|
|
|
1050
|
|
|
1051
|
<div class="box">
|
|
1051
|
<div class="box">
|
|
1052
|
<div class="diff-container" style="overflow-x: hidden">
|
|
1052
|
<div class="diff-container" style="overflow-x: hidden">
|
|
1053
|
<div class="diffblock comm" style="margin:3px; padding:1px">
|
|
1053
|
<div class="diffblock comm" style="margin:3px; padding:1px">
|
|
1054
|
<div class="code-header">
|
|
1054
|
<div class="code-header">
|
|
1055
|
<div class="changeset_header">
|
|
1055
|
<div class="changeset_header">
|
|
1056
|
<div class="changeset_file">
|
|
1056
|
<div class="changeset_file">
|
|
1057
|
<i class="icon-file"></i>
|
|
1057
|
<i class="icon-file"></i>
|
|
1058
|
<a href="/pygments/files/ea295cfb622620f5ba13e226ec531e3fe5296399/tests/test_basic_api.py">tests/test_basic_api.py</a>
|
|
1058
|
<a href="/pygments/files/ea295cfb622620f5ba13e226ec531e3fe5296399/tests/test_basic_api.py">tests/test_basic_api.py</a>
|
|
1059
|
[mode: <span id="selected_mode">python</span>]
|
|
1059
|
[mode: <span id="selected_mode">python</span>]
|
|
1060
|
</div>
|
|
1060
|
</div>
|
|
1061
|
<div class="diff-actions">
|
|
1061
|
<div class="diff-actions">
|
|
1062
|
<a href="/pygments/diff/tests/test_basic_api.py?diff2=ea295cfb622620f5ba13e226ec531e3fe5296399&diff=diff&diff1=de45f950b669e2d991c4ba512fa6fe450c6616db&fulldiff=1" class="tooltip" title="Show full diff for this file">
|
|
1062
|
<a href="/pygments/diff/tests/test_basic_api.py?diff2=ea295cfb622620f5ba13e226ec531e3fe5296399&diff=diff&diff1=de45f950b669e2d991c4ba512fa6fe450c6616db&fulldiff=1" class="tooltip" title="Show full diff for this file">
|
|
1063
|
<img class="icon" src="/images/icons/page_white_go.png">
|
|
1063
|
<img class="icon" src="/images/icons/page_white_go.png">
|
|
1064
|
</a>
|
|
1064
|
</a>
|
|
1065
|
<a href="/pygments/diff-2way/tests/test_basic_api.py?diff2=ea295cfb622620f5ba13e226ec531e3fe5296399&diff=diff&diff1=de45f950b669e2d991c4ba512fa6fe450c6616db&fulldiff=1" class="tooltip" title="Show full side-by-side diff for this file" tt_title="Show full side-by-side diff for this file">
|
|
1065
|
<a href="/pygments/diff-2way/tests/test_basic_api.py?diff2=ea295cfb622620f5ba13e226ec531e3fe5296399&diff=diff&diff1=de45f950b669e2d991c4ba512fa6fe450c6616db&fulldiff=1" class="tooltip" title="Show full side-by-side diff for this file" tt_title="Show full side-by-side diff for this file">
|
|
1066
|
<img class="icon" src="/images/icons/application_double.png">
|
|
1066
|
<img class="icon" src="/images/icons/application_double.png">
|
|
1067
|
</a>
|
|
1067
|
</a>
|
|
1068
|
<a href="/pygments/diff/tests/test_basic_api.py?diff2=ea295cfb622620f5ba13e226ec531e3fe5296399&diff1=de45f950b669e2d991c4ba512fa6fe450c6616db&diff=raw" class="tooltip" title="Raw diff">
|
|
1068
|
<a href="/pygments/diff/tests/test_basic_api.py?diff2=ea295cfb622620f5ba13e226ec531e3fe5296399&diff1=de45f950b669e2d991c4ba512fa6fe450c6616db&diff=raw" class="tooltip" title="Raw diff">
|
|
1069
|
<img class="icon" src="/images/icons/page_white.png">
|
|
1069
|
<img class="icon" src="/images/icons/page_white.png">
|
|
1070
|
</a>
|
|
1070
|
</a>
|
|
1071
|
<a href="/pygments/diff/tests/test_basic_api.py?diff2=ea295cfb622620f5ba13e226ec531e3fe5296399&diff1=de45f950b669e2d991c4ba512fa6fe450c6616db&diff=download" class="tooltip" title="Download diff">
|
|
1071
|
<a href="/pygments/diff/tests/test_basic_api.py?diff2=ea295cfb622620f5ba13e226ec531e3fe5296399&diff1=de45f950b669e2d991c4ba512fa6fe450c6616db&diff=download" class="tooltip" title="Download diff">
|
|
1072
|
<img class="icon" src="/images/icons/page_save.png">
|
|
1072
|
<img class="icon" src="/images/icons/page_save.png">
|
|
1073
|
</a>
|
|
1073
|
</a>
|
|
1074
|
<label><input id="ignorews" name="ignorews" type="checkbox" value="1">ignore white space</label>
|
|
1074
|
<label><input id="ignorews" name="ignorews" type="checkbox" value="1">ignore white space</label>
|
|
1075
|
<label><input id="edit_mode" name="edit_mode" type="checkbox" value="1">turn on edit mode</label>
|
|
1075
|
<label><input id="edit_mode" name="edit_mode" type="checkbox" value="1">turn on edit mode</label>
|
|
1076
|
|
|
1076
|
|
|
1077
|
</div>
|
|
1077
|
</div>
|
|
1078
|
<div style="float: right; padding: 0px 10px 0px 0px">
|
|
1078
|
<div style="float: right; padding: 0px 10px 0px 0px">
|
|
1079
|
r1538:de45f950b669 ... r1539:ea295cfb6226
|
|
1079
|
r1538:de45f950b669 ... r1539:ea295cfb6226
|
|
1080
|
</div>
|
|
1080
|
</div>
|
|
1081
|
</div>
|
|
1081
|
</div>
|
|
1082
|
</div>
|
|
1082
|
</div>
|
|
1083
|
<div id="compare"></div>
|
|
1083
|
<div id="compare"></div>
|
|
1084
|
</div>
|
|
1084
|
</div>
|
|
1085
|
</div>
|
|
1085
|
</div>
|
|
1086
|
|
|
1086
|
|
|
1087
|
<script>
|
|
1087
|
<script>
|
|
1088
|
$(document).ready(function () {
|
|
1088
|
$(document).ready(function () {
|
|
1089
|
var example_lines = '1\n2\n3\n4\n5\n6\n7\n8\n9\n \n';
|
|
1089
|
var example_lines = '1\n2\n3\n4\n5\n6\n7\n8\n9\n \n';
|
|
1090
|
|
|
1090
|
|
|
1091
|
$('#compare').mergely({
|
|
1091
|
$('#compare').mergely({
|
|
1092
|
width: 'auto',
|
|
1092
|
width: 'auto',
|
|
1093
|
height: '600',
|
|
1093
|
height: '600',
|
|
1094
|
fgcolor: {a:'#ddffdd',c:'#cccccc',d:'#ffdddd'},
|
|
1094
|
fgcolor: {a:'#ddffdd',c:'#cccccc',d:'#ffdddd'},
|
|
1095
|
bgcolor: '#fff',
|
|
1095
|
bgcolor: '#fff',
|
|
1096
|
viewport: true,
|
|
1096
|
viewport: true,
|
|
1097
|
cmsettings: {mode: 'text/plain', readOnly: true, lineWrapping: false, lineNumbers: true},
|
|
1097
|
cmsettings: {mode: 'text/plain', readOnly: true, lineWrapping: false, lineNumbers: true},
|
|
1098
|
lhs: function(setValue) {
|
|
1098
|
lhs: function(setValue) {
|
|
1099
|
if("False" == "True"){
|
|
1099
|
if("False" == "True"){
|
|
1100
|
setValue('Binary file')
|
|
1100
|
setValue('Binary file')
|
|
1101
|
}
|
|
1101
|
}
|
|
1102
|
else if("MercurialCommit" == "EmptyCommit"){
|
|
1102
|
else if("MercurialCommit" == "EmptyCommit"){
|
|
1103
|
setValue('');
|
|
1103
|
setValue('');
|
|
1104
|
}
|
|
1104
|
}
|
|
1105
|
else{
|
|
1105
|
else{
|
|
1106
|
var left_value = example_lines.slice(0, 10) +
|
|
1106
|
var left_value = example_lines.slice(0, 10) +
|
|
1107
|
'123456789 '.repeat(10) +
|
|
1107
|
'123456789 '.repeat(10) +
|
|
1108
|
'\n'+
|
|
1108
|
'\n'+
|
|
1109
|
example_lines.slice(10, 20);
|
|
1109
|
example_lines.slice(10, 20);
|
|
1110
|
setValue(left_value + example_lines.repeat(9));
|
|
1110
|
setValue(left_value + example_lines.repeat(9));
|
|
1111
|
}
|
|
1111
|
}
|
|
1112
|
|
|
1112
|
|
|
1113
|
},
|
|
1113
|
},
|
|
1114
|
rhs: function(setValue) {
|
|
1114
|
rhs: function(setValue) {
|
|
1115
|
if("False" == "True"){
|
|
1115
|
if("False" == "True"){
|
|
1116
|
setValue('Binary file')
|
|
1116
|
setValue('Binary file')
|
|
1117
|
}
|
|
1117
|
}
|
|
1118
|
else if("MercurialCommit" == "EmptyCommit"){
|
|
1118
|
else if("MercurialCommit" == "EmptyCommit"){
|
|
1119
|
setValue('');
|
|
1119
|
setValue('');
|
|
1120
|
}
|
|
1120
|
}
|
|
1121
|
else{
|
|
1121
|
else{
|
|
1122
|
var right_value = example_lines +
|
|
1122
|
var right_value = example_lines +
|
|
1123
|
example_lines.slice(0, 8) +
|
|
1123
|
example_lines.slice(0, 8) +
|
|
1124
|
'abcdefghi '.repeat(10) +
|
|
1124
|
'abcdefghi '.repeat(10) +
|
|
1125
|
'\n'+
|
|
1125
|
'\n'+
|
|
1126
|
example_lines.slice(8, 20);
|
|
1126
|
example_lines.slice(8, 20);
|
|
1127
|
setValue(right_value + example_lines.repeat(9));
|
|
1127
|
setValue(right_value + example_lines.repeat(9));
|
|
1128
|
}
|
|
1128
|
}
|
|
1129
|
},
|
|
1129
|
},
|
|
1130
|
});
|
|
1130
|
});
|
|
1131
|
|
|
1131
|
|
|
1132
|
var detected_mode = detectCodeMirrorModeFromExt('test_basic_api.py', true);
|
|
1132
|
var detected_mode = detectCodeMirrorModeFromExt('test_basic_api.py', true);
|
|
1133
|
if(detected_mode){
|
|
1133
|
if(detected_mode){
|
|
1134
|
setCodeMirrorMode($('#compare').mergely('cm', 'lhs'), detected_mode);
|
|
1134
|
setCodeMirrorMode($('#compare').mergely('cm', 'lhs'), detected_mode);
|
|
1135
|
setCodeMirrorMode($('#compare').mergely('cm', 'rhs'), detected_mode);
|
|
1135
|
setCodeMirrorMode($('#compare').mergely('cm', 'rhs'), detected_mode);
|
|
1136
|
$('#selected_mode').html(detected_mode);
|
|
1136
|
$('#selected_mode').html(detected_mode);
|
|
1137
|
}
|
|
1137
|
}
|
|
1138
|
|
|
1138
|
|
|
1139
|
$('#ignorews').change(function(e){
|
|
1139
|
$('#ignorews').change(function(e){
|
|
1140
|
var val = e.currentTarget.checked;
|
|
1140
|
var val = e.currentTarget.checked;
|
|
1141
|
$('#compare').mergely('options', {ignorews: val});
|
|
1141
|
$('#compare').mergely('options', {ignorews: val});
|
|
1142
|
$('#compare').mergely('update');
|
|
1142
|
$('#compare').mergely('update');
|
|
1143
|
});
|
|
1143
|
});
|
|
1144
|
$('#edit_mode').change(function(e){
|
|
1144
|
$('#edit_mode').change(function(e){
|
|
1145
|
var val = !e.currentTarget.checked;
|
|
1145
|
var val = !e.currentTarget.checked;
|
|
1146
|
$('#compare').mergely('cm', 'lhs').setOption('readOnly', val);
|
|
1146
|
$('#compare').mergely('cm', 'lhs').setOption('readOnly', val);
|
|
1147
|
$('#compare').mergely('cm', 'rhs').setOption('readOnly', val);
|
|
1147
|
$('#compare').mergely('cm', 'rhs').setOption('readOnly', val);
|
|
1148
|
$('#compare').mergely('update');
|
|
1148
|
$('#compare').mergely('update');
|
|
1149
|
})
|
|
1149
|
})
|
|
1150
|
});
|
|
1150
|
});
|
|
1151
|
</script>
|
|
1151
|
</script>
|
|
1152
|
|
|
1152
|
|
|
1153
|
</div>
|
|
1153
|
</div>
|
|
1154
|
|
|
1154
|
|
|
1155
|
<!-- end examples -->
|
|
1155
|
<!-- end examples -->
|
|
1156
|
|
|
1156
|
|
|
1157
|
</div>
|
|
1157
|
</div>
|
|
1158
|
</div>
|
|
1158
|
</div>
|
|
1159
|
</div>
|
|
1159
|
</div>
|
|
1160
|
</%def>
|
|
1160
|
</%def>
|