Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#1 isPermaLink

open
nobody
None
5
2004-01-20
2004-01-20
Chaz Meyers
No

Right now, the data in a guid element is stored in the
appropriate item's hash. However, the isPermaLink
attribute is not stored.

This patch sets a 'permaLink' key to each element that
has a guid. If the isPermaLink attribute is set to 'false',
permaLink is set to 0. If it's absent or set to something
besides false, permaLink is set to 1.

permaLink is used instead of a different name because
that's what's referred to on line 1225 of the unpatched
version 1.22, in &as_rss_2_0.

Discussion

  • Chaz Meyers
    Chaz Meyers
    2004-01-20

    Add permaLink patch.

     
    Attachments
  • Ben Hammersley
    Ben Hammersley
    2004-10-09

    Logged In: YES
    user_id=331995

    Not necessary - use the permaLink=>"foo", or the guid=>"bar" method
    instead, as documented in the POD.

     
  • Chaz Meyers
    Chaz Meyers
    2005-06-10

    Logged In: YES
    user_id=956126

    As far as I can tell, permaLink and guid can be set for
    generating RSS, but only guid is set when parsing a feed.
    The patch sets permaLink when parsing a feed.

     
  • Logged In: YES
    user_id=23850

    The problem is that the permalinkness of guids is not
    preserved when parsing rss files with ->parse() or
    ->parse_file(). This breaks adding new items to an existing
    rss file.