fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reject interrupted requests.
[redakcja.git]
/
src
/
catalogue
/
wikimedia.py
diff --git
a/src/catalogue/wikimedia.py
b/src/catalogue/wikimedia.py
index
534ca17
..
fe6b1c6
100644
(file)
--- a/
src/catalogue/wikimedia.py
+++ b/
src/catalogue/wikimedia.py
@@
-50,7
+50,21
@@
class WikiMedia:
return Downloadable(download_url)
return transform
return Downloadable(download_url)
return transform
+ @classmethod
+ def append(cls, arg):
+ def transform(get_value):
+ value = get_value(arg)
+ return Appendable(value)
+ return transform
+
+class Appendable(str):
+ def as_hint_json(self):
+ return {
+ 'value': self,
+ 'action': 'append',
+ }
+
class Downloadable:
def __init__(self, url):
self.url = url
class Downloadable:
def __init__(self, url):
self.url = url