/venus

To download this project, use:
bzr branch http://golem.ph.utexas.edu/~distler/code/venus/

« back to all changes in this revision

Viewing changes to filters/mememe.plugin

  • Committer: Sam Ruby
  • Date: 2008-09-14 02:52:59 UTC
  • Revision ID: rubys@intertwingly.net-20080914025259-10zjbov393yu41h5
Choose last instead

Show diffs side-by-side

added added

removed removed

329
329
if not hasattr(footer,'__len__') or len(footer) == 0:
330
330
  raise Exception(sidebar + ' not found')
331
331
if len(footer) > 1:
332
 
  log.info("%d occurrences of %s found, taking first" % (len(footer),sidebar))
333
 
footer = footer[0]
 
332
  log.info("%d occurrences of %s found, taking last" % (len(footer),sidebar))
 
333
  if '@id' in sidebar:
 
334
    for element in footer[:-1]:
 
335
      element.unsetProp('id')
 
336
footer = footer[-1]
334
337
 
335
338
# add up to 10 entry links to each subscription
336
339
subs_ul = footer.children