Changeset 7245
- Timestamp:
- Dec 11, 2009, 3:47:44 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trachacksplugin/0.11/trachacks/web_ui.py
r7244 r7245 426 426 supported Trac releases. 427 427 428 Other tags may be passed as well. They will be used as additional filter 429 for displayed hacks, but - other than types and releases - have no 430 side-effects otherwise. 431 428 432 For example, the following shows hacks of type `integration` and 429 433 `plugin` for Trac `0.12`: … … 448 452 hide_fieldset_description = False 449 453 if args: 450 hide_fieldset_description = True451 454 categories = [] 452 455 releases = [] 456 other = [] 453 457 for arg in args.split(): 454 458 if arg in all_releases: … … 457 461 elif arg in all_categories: 458 462 categories.append(arg) 463 else: 464 other.append(arg) 465 466 if len(categories) or len(releases): 467 hide_fieldset_description = True 459 468 460 469 if not len(categories): … … 524 533 525 534 ul = builder.ul('\n', class_="listtagged") 526 query = 'realm:wiki (%s) %s ' % \527 (' or '.join(show_releases), category )535 query = 'realm:wiki (%s) %s %s' % \ 536 (' or '.join(show_releases), category, ' '.join(other)) 528 537 529 538 lines = 0 … … 548 557 if hide_fieldset_legend == False and category in tags: 549 558 tags.remove(category) 559 self.log.debug("hide %s: no legend" % category) 560 for o in other: 561 if o in tags: tags.remove(o) 550 562 rendered_tags = [ link(resource('tag', tag)) 551 563 for tag in natural_sort(tags) ]
Note: See TracChangeset
for help on using the changeset viewer.