you can customise it yourself), and "template" config option to allow
the user to specify their own template.
+Added "statefile" config option to allow use of multiple state files.
+
- rawdog 1.2
Updated feedparser to 2.5.2, which fixes a bug that was making rawdog
# Sample rawdog config file. Copy this into your ~/.rawdog/ directory, and edit
# it to suit your preferences.
+# All paths in this file should be either absolute, or relative to your .rawdog
+# directory.
# The maximum number of articles to show on the generated page.
maxarticles 200
# a 12-hour clock.
timeformat %H:%M
+# The file that rawdog will store its internal state in. Most users
+# won't need to change this; it's only useful if you want to have
+# multiple sets of feeds.
+statefile state
+
# The template file to use, or "default" to use the built-in template
# (which is probably sufficient for most users). Use "rawdog -t" to show
# the template currently in use as a starting-point for customisation.
"showfeeds" : 1,
"timeout" : 30,
"template" : "default",
+ "statefile" : "state",
}
def __getitem__(self, key): return self.config[key]
self["timeout"] = int(l[1])
elif l[0] == "template":
self["template"] = l[1]
+ elif l[0] == "statefile":
+ self["statefile"] = l[1]
else:
raise ConfigError("Unknown config command: " + l[0])
print >>sys.stderr, err
return 1
- persister = Persister("state", Rawdog)
+ persister = Persister(config["statefile"], Rawdog)
rawdog = persister.load()
for o, a in optlist: