/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 planet/shell/tmpl.py

  • Committer: Sam Ruby
  • Date: 2008-10-11 15:21:25 UTC
  • Revision ID: rubys@intertwingly.net-20081011152125-rgtrzh3p5xujp4hh
Handle markup and unicode in titles as channel names

Show diffs side-by-side

added added

removed removed

167
167
        for name,value in source.source.items():
168
168
            if name.startswith('planet_'):
169
169
                output['channel_' + name[7:]] = String(value)
170
 
            if not output.get('channel_name'):
171
 
                output['channel_name'] = source.source.get('title', '')
 
170
            if not output.get('channel_name') and \
 
171
                source.source.has_key('title_detail'):
 
172
                output['channel_name'] = Plain(source.source.title_detail.value)
172
173
 
173
174
    return output
174
175