parent
8cb1e8bbb9
commit
c52122800a
1 changed files with 8 additions and 6 deletions
|
|
@ -235,15 +235,17 @@ class DLFPBackend(BaseBackend, ICapMessages, ICapMessagesPost, ICapContent):
|
||||||
message.content)
|
message.content)
|
||||||
|
|
||||||
#### ICapContent ###############################################
|
#### ICapContent ###############################################
|
||||||
def get_content(self, id):
|
def get_content(self, _id, revision=None):
|
||||||
if isinstance(id, basestring):
|
if isinstance(_id, basestring):
|
||||||
content = Content(id)
|
content = Content(_id)
|
||||||
else:
|
else:
|
||||||
content = id
|
content = _id
|
||||||
id = content.id
|
_id = content.id
|
||||||
|
|
||||||
|
if revision:
|
||||||
|
raise NotImplementedError('Website does not provide access to older revisions sources.')
|
||||||
with self.browser:
|
with self.browser:
|
||||||
data = self.browser.get_wiki_content(id)
|
data = self.browser.get_wiki_content(_id)
|
||||||
|
|
||||||
if data is None:
|
if data is None:
|
||||||
return None
|
return None
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue