/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-10 12:52:59 UTC
  • Revision ID: rubys@intertwingly.net-20081010125259-pe3j3prxucai2q52
Default channel_name to source title

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
172
 
171
173
    return output
172
174