add export_thread

add export_thread to boobmsg

working show_thread
This commit is contained in:
Juke 2011-02-11 00:06:35 +01:00
commit fe7b8d082c
3 changed files with 29 additions and 5 deletions

View file

@ -33,5 +33,17 @@ class Newspaper20minutesBrowser(BaseBrowser):
return False
def get_content(self, _id):
self.location(id2url(_id))
try :
url = id2url(_id)
except ValueError:
url = _id
try:
self.location(url)
except IndexError:
if _id == '':
raise ValueError("thread id is empty")
else:
raise
except AttributeError:
raise ValueError("cant go on url")
return self.page.article