diff options
author | Six <unknown> | 2011-05-20 00:55:53 -0400 |
---|---|---|
committer | Six <unknown> | 2011-05-20 00:55:53 -0400 |
commit | 761f432831b728578a6e474aa6dd4f9a5e12dde2 (patch) | |
tree | 2d3ff8f06dac70a2e165454373c067ce8f8cfc1f | |
parent | 2c20b392580c514ec72c0c01b382955748b73036 (diff) | |
download | d2-761f432831b728578a6e474aa6dd4f9a5e12dde2.tar.bz2 d2-761f432831b728578a6e474aa6dd4f9a5e12dde2.tar.xz d2-761f432831b728578a6e474aa6dd4f9a5e12dde2.zip |
description changes
-rw-r--r-- | lib/d2/app/adapters/search.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/d2/app/adapters/search.py b/lib/d2/app/adapters/search.py index bb40c52..46fa989 100644 --- a/lib/d2/app/adapters/search.py +++ b/lib/d2/app/adapters/search.py | |||
@@ -187,17 +187,21 @@ class SearchAdapter(BaseAdapter): | |||
187 | plot_dict = self._detail_adapter.plot_dict(details[u'plot_id']) | 187 | plot_dict = self._detail_adapter.plot_dict(details[u'plot_id']) |
188 | out.append(u'Plot: {0}'.format(plot_dict[u'label'])) | 188 | out.append(u'Plot: {0}'.format(plot_dict[u'label'])) |
189 | if u'title' in details: | 189 | if u'title' in details: |
190 | out.append(details[u'title'][u'data']) | 190 | hold = u'Title: {0}' |
191 | out.append(hold.format(details[u'title'][u'data'])) | ||
191 | if u'department' in details: | 192 | if u'department' in details: |
192 | out.append(details[u'department'][u'data']) | 193 | hold = u'Department: {0}' |
194 | out.append(hold.format(details[u'department'][u'data'])) | ||
193 | return u' '.join(out) | 195 | return u' '.join(out) |
194 | 196 | ||
195 | def _build_occupant_decription(self, details): | 197 | def _build_occupant_decription(self, details): |
196 | out = [] | 198 | out = [] |
197 | if u'title' in details: | 199 | if u'title' in details: |
198 | out.append(details[u'title'][u'data']) | 200 | hold = u'Title: {0}' |
201 | out.append(hold.format(details[u'title'][u'data'])) | ||
199 | if u'department' in details: | 202 | if u'department' in details: |
200 | out.append(details[u'department'][u'data']) | 203 | hold = u'Department: {0}' |
204 | out.append(hold.format(details[u'department'][u'data'])) | ||
201 | return u' '.join(out) | 205 | return u' '.join(out) |
202 | 206 | ||
203 | def _build_plot_description(self, details, occupants): | 207 | def _build_plot_description(self, details, occupants): |