Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F18602964
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
Dzahn
May 29 2018, 9:35 PM
2018-05-29 21:35:22 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
[boron:~/rawdog] $ diff rawdog-2.22/rawdoglib/rawdog.py rawdog-2.22/rawdoglib/rawdog.py.orig
19c19
< VERSION = "2.22-wmf1"
---
> VERSION = "2.22"
901d900
< "oldpages" : 7,
1015,1016d1013
< elif l[0] == "oldpages":
< self["oldpages"] = l[1]
1742c1739
< def write_output_file(self, articles, article_dates, config, oldpage=0):
---
> def write_output_file(self, articles, article_dates, config):
1757,1763d1753
< if oldpage != config["oldpages"]:
< filename = config["outputfile"].split("/")[-1:][0] # get the filename only
< filename = filename.split(".html")
< outputfile = filename[0] + str(oldpage+1) + ".html"
< f.write('<p><a class="btn btn-mat" href="'+outputfile+'">Older blog entries</a></p>')
<
<
1770,1774c1760
< if oldpage > 0:
< filename = config["outputfile"].split(".html")
< outputfile = filename[0] + str(oldpage) + ".html"
< else:
< outputfile = config["outputfile"]
---
> outputfile = config["outputfile"]
1804,1805c1790,1791
< # if config["maxarticles"] != 0:
< # article_list = article_list[:config["maxarticles"]]
---
> if config["maxarticles"] != 0:
> article_list = article_list[:config["maxarticles"]]
1845,1851c1831,1832
< for page in range(0, config["oldpages"]+1):
< print "on page: " + str(page)
< if config["maxarticles"] != 0:
< pageArticles = articles[config["maxarticles"]*page:config["maxarticles"]*(page+1)]
<
< if not call_hook("output_write_files", self, config, pageArticles, article_dates):
< self.write_output_file(pageArticles, article_dates, config, page)
---
> if not call_hook("output_write_files", self, config, articles, article_dates):
> self.write_output_file(articles, article_dates, config)
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5853268
Default Alt Text
(1 KB)
Attached To
Mode
P7178 (An Untitled Masterwork)
Attached
Detach File
Event Timeline
Log In to Comment