"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "roundup/cgi/KeywordsExpr.py" between
roundup-1.6.1.tar.gz and roundup-2.0.0.tar.gz

About: Roundup is an highly customisable issue-tracking system with command-line, web and e-mail interfaces (written in Python).

KeywordsExpr.py  (roundup-1.6.1):KeywordsExpr.py  (roundup-2.0.0)
# This module is free software, you may redistribute it # This module is free software, you may redistribute it
# and/or modify under the same terms as Python. # and/or modify under the same terms as Python.
WINDOW_CONTENT = '''\ WINDOW_CONTENT = r'''\
<h3>Keyword Expression Editor:</h3> <h3>Keyword Expression Editor:</h3>
<hr/> <hr/>
<div id="content"></div> <div id="content"></div>
<script nonce="%(nonce)s" type="text/javascript"> <script nonce="%(nonce)s" type="text/javascript">
<!-- <!--
var NOT_OP = "-2"; var NOT_OP = "-2";
var AND_OP = "-3"; var AND_OP = "-3";
var OR_OP = "-4"; var OR_OP = "-4";
skipping to change at line 265 skipping to change at line 265
items.sort(key=lambda x: int(x[0])) items.sort(key=lambda x: int(x[0]))
return items return items
def items_to_keywords(items): def items_to_keywords(items):
return ',\n '.join(['["%s", "%s"]' % x for x in items]) return ',\n '.join(['["%s", "%s"]' % x for x in items])
def render_keywords_expression_editor(request): def render_keywords_expression_editor(request):
prop = request.form.getfirst("property") prop = request.form.getfirst("property")
window_content = WINDOW_CONTENT % { window_content = WINDOW_CONTENT % {
'prop' : prop, 'prop': prop,
'keywords': items_to_keywords(list_nodes(request)), 'keywords': items_to_keywords(list_nodes(request)),
'original': '', 'original': '',
'nonce': request.client.client_nonce 'nonce': request.client.client_nonce
} }
return window_content return window_content
# vim: set et sts=4 sw=4 : # vim: set et sts=4 sw=4 :
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)