We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3c29b3 commit 1c64580Copy full SHA for 1c64580
roundup/cgi/KeywordsExpr.py
@@ -241,6 +241,7 @@
241
</script>
242
'''
243
244
+
245
def list_nodes(request):
246
prop = request.form.getfirst("property")
247
cls = request.client.db.getclass(prop)
@@ -255,15 +256,16 @@ def list_nodes(request):
255
256
items.sort(key=lambda x: int(x[0]))
257
return items
258
259
260
def items_to_keywords(items):
261
return ',\n '.join(['["%s", "%s"]' % x for x in items])
-
262
263
264
def render_keywords_expression_editor(request):
265
266
267
window_content = WINDOW_CONTENT % {
- 'prop' : prop,
268
+ 'prop': prop,
269
'keywords': items_to_keywords(list_nodes(request)),
270
'original': '',
271
'nonce': request.client.client_nonce
0 commit comments