Commit dc8d6f65c4d060201b45db609d05529a77fd9874
- Diff rendering mode:
- inline
- side by side
entry.py
(4 / 1)
|   | |||
| 1 | 1 | #!/bin/python | |
| 2 | 2 | # coding: utf-8 | |
| 3 | 3 | ||
| 4 | #TODO: Check number of comments, if a comments feed exists (Techdirt like) | ||
| 4 | #TODO: Check number of comments, if a comments feed exists | ||
| 5 | 5 | ||
| 6 | 6 | import time | |
| 7 | 7 | import re | |
| … | … | ||
| 358 | 358 | # Third paragraph is description (optional) | |
| 359 | 359 | if len(x.childNodes[0].childNodes) >= 3: | |
| 360 | 360 | self.summary = x.childNodes[0].childNodes[2].childNodes[0].toxml() | |
| 361 | |||
| 362 | class GitoriousUpdate(Entry): | ||
| 363 | pass | ||
| 361 | 364 | ||
| 362 | 365 | class GoogleReaderSharedItem(SharedItem): | |
| 363 | 366 | """Don't want tags because I didn't create them.""" |
feed.py
(3 / 0)
|   | |||
| 217 | 217 | Multimedia.parse(self) | |
| 218 | 218 | self.title = 'Flickr ' + self.title | |
| 219 | 219 | ||
| 220 | class Gitorious(Feed): | ||
| 221 | entryClass = entry.GitoriousUpdate | ||
| 222 | |||
| 220 | 223 | class GoogleReaderSharedItems(SharedItems): | |
| 221 | 224 | entryClass = entry.GoogleReaderSharedItem | |
| 222 | 225 | def get_timestamp(self): |

