List Info

Thread: Custom feed attributes in FOAF or OPML




Custom feed attributes in FOAF or OPML
user name
2007-05-28 16:36:43
Hi all,

I have a list of subscriptions that I want to use on
multiple Planet
installs. The recommended way of doing this is with a FOAF
or OPML
file, but as far as I can tell there's no way to add custom
attributes
to those formats. My feed entries look like this:

[http://
feeds.simonwillison.net/swn-everything]
name = Simon Willison
face = simonwillison.jpg

Since OPML encourages inventing abritrary attributes, how
about having
it so that any unrecognised attributes on <outline />
elements in an
OPML reading list are treated the same way as unknown
attributes in a
regular config file?

Cheers,

Simon
-- 
devel mailing list
devellists.planetplanet.org

http://lists.planetplanet.org/mailman/listinfo/devel

Re: Custom feed attributes in FOAF or OPML
country flaguser name
United States
2007-05-28 19:06:20
Simon Willison wrote:
> Hi all,
> 
> I have a list of subscriptions that I want to use on
multiple Planet
> installs. The recommended way of doing this is with a
FOAF or OPML
> file, but as far as I can tell there's no way to add
custom attributes
> to those formats. My feed entries look like this:
> 
> [http://
feeds.simonwillison.net/swn-everything]
> name = Simon Willison
> face = simonwillison.jpg
> 
> Since OPML encourages inventing abritrary attributes,
how about having
> it so that any unrecognised attributes on <outline
/> elements in an
> OPML reading list are treated the same way as unknown
attributes in a
> regular config file?

Hi Simon.  Do you happen to know any Python?  :-P

http://intertwingly.net/code/venus/docs/contributing.ht
ml
htt
p://intertwingly.net/code/venus/planet/opml.py
http://intertwingly.net/code/venus/tests/test_opml.py

- Sam Ruby
-- 
devel mailing list
devellists.planetplanet.org

http://lists.planetplanet.org/mailman/listinfo/devel

Re: Custom feed attributes in FOAF or OPML
country flaguser name
United Kingdom
2007-05-28 19:08:41
Sam Ruby wrote:
> Simon Willison wrote:
>> Hi all,
>>
>> I have a list of subscriptions that I want to use
on multiple Planet
>> installs. The recommended way of doing this is with
a FOAF or OPML
>> file, but as far as I can tell there's no way to
add custom attributes
>> to those formats. My feed entries look like this:
>>
>> [http://
feeds.simonwillison.net/swn-everything]
>> name = Simon Willison
>> face = simonwillison.jpg
>>
>> Since OPML encourages inventing abritrary
attributes, how about having
>> it so that any unrecognised attributes on
<outline /> elements in an
>> OPML reading list are treated the same way as
unknown attributes in a
>> regular config file?
>
> Hi Simon.  Do you happen to know any Python?  :-P
>
> http://intertwingly.net/code/venus/docs/contributing.ht
ml
> htt
p://intertwingly.net/code/venus/planet/opml.py
> http://intertwingly.net/code/venus/tests/test_opml.py
>

I've heard he knows a bit. 

Michael Foord
ht
tp://www.voidspace.org.uk/ironpython/index.shtml



> - Sam Ruby

-- 
devel mailing list
devellists.planetplanet.org

http://lists.planetplanet.org/mailman/listinfo/devel

Re: Custom feed attributes in FOAF or OPML
user name
2007-05-31 04:32:01
<quote who="Simon Willison">

> I have a list of subscriptions that I want to use on
multiple Planet
> installs. The recommended way of doing this is with a
FOAF or OPML
> file, but as far as I can tell there's no way to add
custom attributes
> to those formats. My feed entries look like this:
>
> [http://
feeds.simonwillison.net/swn-everything]
> name = Simon Willison
> face = simonwillison.jpg

Might sound a touch medieval, but I've used a quick Makefile
to cat Planet
configs together in the past. 

(Would be sweet if ConfigParser had very simple Include
functionality...)

- Jeff

-- 
OSCON 2007: Portland OR, USA        http://confe
rences.oreillynet.com/oscon/
 
   "I would hack on the file selector. But I think I
would write like, 3
   LOC for every 100 lines of mail I had to
read/write." - James Willcox
-- 
devel mailing list
devellists.planetplanet.org

http://lists.planetplanet.org/mailman/listinfo/devel

Re: Custom feed attributes in FOAF or OPML
user name
2007-05-31 12:16:30
On 5/31/07, Jeff Waugh <jdubperkypants.org> wrote:
> Might sound a touch medieval, but I've used a quick
Makefile to cat Planet
> configs together in the past. 

That's almost exactly what I'm doing  Here's the
site:

http://oxfordgeeks.net/

I'm sharing the subscription list between the "5 most
recently updated
blogs" on the homepage and a full Planet at
http://planet.oxfordge
eks.net/

I'll have a go at hacking the OPML feature some time soon.

Cheers,

Simon
-- 
devel mailing list
devellists.planetplanet.org

http://lists.planetplanet.org/mailman/listinfo/devel

Re: Custom feed attributes in FOAF or OPML
user name
2007-05-31 22:53:47
<quote who="Simon Willison">

> On 5/31/07, Jeff Waugh <jdubperkypants.org> wrote:
>> Might sound a touch medieval, but I've used a quick
Makefile to cat Planet
>> configs together in the past. 
>
> That's almost exactly what I'm doing  Here's the
site:
>
> http://oxfordgeeks.net/
>
> I'm sharing the subscription list between the "5
most recently updated
> blogs" on the homepage and a full Planet at
> http://planet.oxfordge
eks.net/

Ah, there's a better way of doing this: Create a new output
template for
your Planet, and include it in the front page. No need to
share lists or
bother with two Planet runs. Snippets of config as an
example:

[Planet]
template_files = index.html five.inc.tmpl [...]

[five.inc.tmpl]
items_per_page = 5

five.inc.tmpl should be a very minimal template, which you
can include on
your main page. I imagine you already have this bit, though.
 I
use this
often to share simple sidebar lists of recent posts among
related Planets.

Thanks,

- Jeff

-- 
GUADEC 2007 in Beautiful Birmingham                   http://www.guadec.org/
 
   "I think it will be admitted by all that to have
exploited so great a
     scientific invention for the purpose and pursuit of
entertainment
    alone would have been a prostitution of its powers and
an insult to
        the character and intelligence of the people."
- John Reith
-- 
devel mailing list
devellists.planetplanet.org

http://lists.planetplanet.org/mailman/listinfo/devel

Re: Custom feed attributes in FOAF or OPML
user name
2007-06-01 19:09:54
On 6/1/07, Jeff Waugh <jdubperkypants.org> wrote:
> Ah, there's a better way of doing this: Create a new
output template for
> your Planet, and include it in the front page.

Brilliant, thanks. I hunted around in the documentation for
a way of
spitting out two different templates from one config but
managed to
miss this.

Cheers,

Simon
-- 
devel mailing list
devellists.planetplanet.org

http://lists.planetplanet.org/mailman/listinfo/devel

[1-7]

about | contact  Other archives ( Real Estate discussion Medical topics )