Changeset 3358 for checklistplugin
- Timestamp:
- 03/13/08 18:39:56 (10 months ago)
- Files:
-
- checklistplugin/0.11/tags/v1.0 (deleted)
- checklistplugin/0.11/tags/v1.01 (copied) (copied from checklistplugin/0.11/trunk)
- checklistplugin/0.11/tags/v1.01/CHANGELOG (added)
- checklistplugin/0.11/tags/v1.01/setup.py (copied) (copied from checklistplugin/0.11/trunk/setup.py)
- checklistplugin/0.11/tags/v1.01/trac_checklist/macros.py (modified) (2 diffs)
- checklistplugin/0.11/trunk/CHANGELOG (added)
- checklistplugin/0.11/trunk/trac_checklist/macros.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
checklistplugin/0.11/tags/v1.01/trac_checklist/macros.py
r3345 r3358 22 22 lines = iter(args.split('\n')) 23 23 flags = {} 24 header = '' 24 25 for line in lines: 25 26 line = line.strip() … … 31 32 isinstance(value, basestring) and value.strip() or value 32 33 else: 34 header = line + '\n' 33 35 break 34 text = '\n'.join(lines)36 text = header + '\n'.join(lines) 35 37 context = flags.get('context', formatter.req.path_info) 36 # There MUST be an easier way...37 link = extract_link(formatter.env, formatter.context, context)38 if link is not None:39 for op in link.generate():40 self.log.debug('HERE >>>>>>>>>>>>>> ', str(op))41 if isinstance(op, tuple):42 if op[0] == 'a':43 for name, value in op[1]:44 if name == 'href':45 context = value46 break47 38 section = flags.get('section') 48 39 can_set = str(flags.get('can-set', '')) checklistplugin/0.11/trunk/trac_checklist/macros.py
r3345 r3358 22 22 lines = iter(args.split('\n')) 23 23 flags = {} 24 header = '' 24 25 for line in lines: 25 26 line = line.strip() … … 31 32 isinstance(value, basestring) and value.strip() or value 32 33 else: 34 header = line + '\n' 33 35 break 34 text = '\n'.join(lines)36 text = header + '\n'.join(lines) 35 37 context = flags.get('context', formatter.req.path_info) 36 # There MUST be an easier way...37 link = extract_link(formatter.env, formatter.context, context)38 if link is not None:39 for op in link.generate():40 self.log.debug('HERE >>>>>>>>>>>>>> ', str(op))41 if isinstance(op, tuple):42 if op[0] == 'a':43 for name, value in op[1]:44 if name == 'href':45 context = value46 break47 38 section = flags.get('section') 48 39 can_set = str(flags.get('can-set', ''))
