sincfg.pt
sincfg.pt
—
HTML,
2Kb
File contents
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"
lang="en-US"
metal:use-macro="here/main_template/macros/master"
i18n:domain="plone">
<body>
<div metal:fill-slot="main"
tal:define="rejection here/rejectAnonymous;
sin here/sin_tool;
cfg request/config | sin/config | nothing;
Iterator python:modules['Products.CMFPlone'].IndexIterator;
tabindex python:Iterator();">
<form action="updateConfig" method="POST">
<div class="form-help">
The config file for the Sin Tool
</div>
<div class="form-label">
Config
</div>
<textarea name="config:text" cols=80 rows=20 tal:content="cfg"></textarea>
<div class="form-element">
<input class="form-element" type="submit" name="submit"
value="Set Config"/>
</div>
</form>
<pre>
Currently we use a very simple config file: This will have to change
as we really want to be able to talk about thigns like manually
controlled syn intervals and such.
---------
[channels]
crackbaby=http://www.crackbaby.com/backend.php
top=http://headlines.internet.com/internetnews/top-news/news.rss
web=http://headlines.internet.com/internetnews/wd-news/news.rss
slashdot=1h:http://slashdot.org/slashdot.rdf
freshmeat=http://freshmeat.net/backend/fm-releases-software.rdf
[maps]
humor=crackbaby
internet=top,web
geek=random:slashdot,freshmeat
---------
channels are the real news feeds, these map to Channel objects.
channels are
NAME=[time]URI
where the optional time spec is
\d+[hdwmy]:
for example 1d for once a day, or 4h for every 4 hours and then the trailing colon
maps hold n channels where n is 0+ they are a comma delimited list of
channel names. If you start the list with a name followed by a ':'
then you can specify a policy for ordering the data in the channel. At
the time of this writing 'simple' and 'random' are provided as examples.
</pre>
</div>
</body>
</html>

