comparison MoinMoin/apps/frontend/views.py @ 2749:53d6f0ec8073

merged
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 18 Aug 2014 13:59:14 +0200
parents bac6217594a0 122424b4bc22
children 5762664a2887
comparison
equal deleted inserted replaced
2739:58baea76af1e 2749:53d6f0ec8073
2273 query = request.form['q'] 2273 query = request.form['q']
2274 status = request.form['status'] 2274 status = request.form['status']
2275 else: 2275 else:
2276 query = None 2276 query = None
2277 status = u'open' 2277 status = u'open'
2278
2279 current_timestamp = datetime.now().strftime("%Y_%m_%d-%H_%M_%S")
2278 idx_name = ALL_REVS 2280 idx_name = ALL_REVS
2279 qp = flaskg.storage.query_parser([TAGS, SUMMARY, CONTENT, ITEMID], idx_name=idx_name) 2281 qp = flaskg.storage.query_parser([TAGS, SUMMARY, CONTENT, ITEMID], idx_name=idx_name)
2280 terms = [Term(ITEMTYPE, ITEMTYPE_TICKET)] 2282 terms = [Term(ITEMTYPE, ITEMTYPE_TICKET)]
2281 if query: 2283 if query:
2282 terms.append(qp.parse(query)) 2284 terms.append(qp.parse(query))
2317 query=query, 2319 query=query,
2318 status=status, 2320 status=status,
2319 tags=tags, 2321 tags=tags,
2320 selected_tags=selected_tags, 2322 selected_tags=selected_tags,
2321 time_sorting=time_sorting, 2323 time_sorting=time_sorting,
2324 current_timestamp=current_timestamp,
2322 ) 2325 )
2323 2326
2324 2327
2325 @frontend.route('/+new', methods=['GET', 'POST']) 2328 @frontend.route('/+new', methods=['GET', 'POST'])
2326 def new(): 2329 def new():