• Publicity: Public Only All

rss-generation-procs.tcl

RSS feed generation procs generates an rss feed given channel information and item information

Location:
packages/rss-support/tcl/rss-generation-procs.tcl
Created:
Fri Oct 26 11:43:26 2001
Authors:
jerry@theashergroup.com <jerry@theashergroup.com>
aegrumet@alum.mit.edu
CVS Identification:
$Id: rss-generation-procs.tcl,v 1.21.2.1 2021/10/21 11:56:57 antoniop Exp $

Procedures in this file

Detailed information

rss_gen (public)

 rss_gen [ -version version ] [ -channel_title channel_title ] \
    [ -channel_link channel_link ] \
    [ -channel_description channel_description ] [ -image image ] \
    [ -items items ] [ -channel_language channel_language ] \
    [ -channel_copyright channel_copyright ] \
    [ -channel_managingEditor channel_managingEditor ] \
    [ -channel_webMaster channel_webMaster ] \
    [ -channel_rating channel_rating ] \
    [ -channel_pubDate channel_pubDate ] \
    [ -channel_lastBuildDate channel_lastBuildDate ] \
    [ -channel_skipDays channel_skipDays ] \
    [ -channel_skipHours channel_skipHours ]

    Generates an RSS XML doc given channel information and item
    information.  Supports versions .91 and 1.0.

    Does not determine if field lengths are valid, nor does it
    determine if field values are of the proper type.

    Doesn't support textInput forms

    Merely creates the XML doc.  GIGO and caveat emptor.

    version is 0.91 or 1.0.  If not present, defaults to 0.91

    the default image is openacs/www/graphics/openacs_logo_rss.gif

    For 0.91,
    pubdate, copyright, lastbuildate, skipdays, skiphours,
    webmaster, managingeditor fields,
    if not specified are not included in the xml.

    the image parameter is a property list of:
      url $url title $title link $link
          [width $width] [height $height] [description $description]
      where the elements within brackets are optional

    items are a list of property lists, one for each item
      title $title link $link description $description

    Spec/channel docs url for 0.91 is
    http://backend.userland.com/stories/rss091

    For 1.0
    Spec can be found at
    http://groups.yahoo.com/group/rss-dev/files/specification.html
    The 1.0 spec is very primitive: my needs are primitive as of yet,
    and I don't grok the rss 1.0 modules stuff as yet.  Whoops p'gazonga.

    For 2.0, the spec is at
    http://blogs.law.harvard.edu/tech/rss

    

Switches:
-version
(defaults to "2.0") (optional)
-channel_title
(optional)
-channel_link
(optional)
-channel_description
(optional)
-image
(optional)
-items
(optional)
-channel_language
(defaults to "en-us") (optional)
-channel_copyright
(optional)
-channel_managingEditor
(optional)
-channel_webMaster
(optional)
-channel_rating
(optional)
-channel_pubDate
(optional)
-channel_lastBuildDate
(optional)
-channel_skipDays
(optional)
-channel_skipHours
(optional)

Partial Call Graph (max 5 caller/called nodes):
%3 packages/bug-tracker/www/old.rss.tcl packages/bug-tracker/ www/old.rss.tcl rss_gen rss_gen packages/bug-tracker/www/old.rss.tcl->rss_gen rss_gen_report rss_gen_report (public) rss_gen_report->rss_gen rss_gen_091 rss_gen_091 (public) rss_gen->rss_gen_091 rss_gen_100 rss_gen_100 (public) rss_gen->rss_gen_100 rss_gen_200 rss_gen_200 (public) rss_gen->rss_gen_200

Testcases:
No testcase defined.

rss_gen_091 (public)

 rss_gen_091 [ -channel_title channel_title ] \
    [ -channel_link channel_link ] \
    [ -channel_description channel_description ] \
    [ -channel_language channel_language ] \
    [ -channel_copyright channel_copyright ] \
    [ -channel_managingEditor channel_managingEditor ] \
    [ -channel_webMaster channel_webMaster ] \
    [ -channel_rating channel_rating ] \
    [ -channel_pubDate channel_pubDate ] \
    [ -channel_lastBuildDate channel_lastBuildDate ] \
    [ -channel_skipDays channel_skipDays ] \
    [ -channel_skipHours channel_skipHours ] [ -image image ] \
    [ -items items ]

generate an rss 0.91 xml feed

Switches:
-channel_title
(optional)
-channel_link
(optional)
-channel_description
(optional)
-channel_language
(defaults to "en-us") (optional)
-channel_copyright
(optional)
-channel_managingEditor
(optional)
-channel_webMaster
(optional)
-channel_rating
(optional)
-channel_pubDate
(optional)
-channel_lastBuildDate
(optional)
-channel_skipDays
(optional)
-channel_skipHours
(optional)
-image
(optional)
-items
(optional)

Partial Call Graph (max 5 caller/called nodes):
%3 rss_gen rss_gen (public) rss_gen_091 rss_gen_091 rss_gen->rss_gen_091 acs_root_dir acs_root_dir (public) rss_gen_091->acs_root_dir ad_url ad_url (public) rss_gen_091->ad_url rss_package_url rss_package_url (public) rss_gen_091->rss_package_url

Testcases:
No testcase defined.

rss_gen_100 (public)

 rss_gen_100 [ -channel_title channel_title ] \
    [ -channel_link channel_link ] \
    [ -channel_description channel_description ] [ -image image ] \
    [ -items items ] [ -channel_copyright channel_copyright ] \
    [ -channel_managingEditor channel_managingEditor ] \
    [ -channel_webMaster channel_webMaster ] \
    [ -channel_pubDate channel_pubDate ]

generate an rss 1.0 xml feed very basic rss 1.0, with no modules implemented....

Switches:
-channel_title
(optional)
-channel_link
(optional)
-channel_description
(optional)
-image
(optional)
-items
(optional)
-channel_copyright
(optional)
-channel_managingEditor
(optional)
-channel_webMaster
(optional)
-channel_pubDate
(optional)

Partial Call Graph (max 5 caller/called nodes):
%3 rss_gen rss_gen (public) rss_gen_100 rss_gen_100 rss_gen->rss_gen_100 acs_root_dir acs_root_dir (public) rss_gen_100->acs_root_dir ad_url ad_url (public) rss_gen_100->ad_url rss_package_url rss_package_url (public) rss_gen_100->rss_package_url

Testcases:
No testcase defined.

rss_gen_200 (public)

 rss_gen_200 [ -channel_title channel_title ] \
    [ -channel_link channel_link ] \
    [ -channel_description channel_description ] [ -image image ] \
    [ -items items ] [ -channel_language channel_language ] \
    [ -channel_copyright channel_copyright ] \
    [ -channel_managingEditor channel_managingEditor ] \
    [ -channel_webMaster channel_webMaster ] \
    [ -channel_rating channel_rating ] \
    [ -channel_pubDate channel_pubDate ] \
    [ -channel_lastBuildDate channel_lastBuildDate ] \
    [ -channel_skipDays channel_skipDays ] \
    [ -channel_skipHours channel_skipHours ]

generate an rss 2.0 xml feed

Switches:
-channel_title
(optional)
-channel_link
(optional)
-channel_description
(optional)
-image
(optional)
-items
(optional)
-channel_language
(defaults to "en-us") (optional)
-channel_copyright
(optional)
-channel_managingEditor
(optional)
-channel_webMaster
(optional)
-channel_rating
(optional)
-channel_pubDate
(optional)
-channel_lastBuildDate
(optional)
-channel_skipDays
(optional)
-channel_skipHours
(optional)

Partial Call Graph (max 5 caller/called nodes):
%3 rss_gen rss_gen (public) rss_gen_200 rss_gen_200 rss_gen->rss_gen_200 acs_root_dir acs_root_dir (public) rss_gen_200->acs_root_dir ad_url ad_url (public) rss_gen_200->ad_url lang::system::timezone lang::system::timezone (public) rss_gen_200->lang::system::timezone lc_time_tz_convert lc_time_tz_convert (public) rss_gen_200->lc_time_tz_convert rss_package_url rss_package_url (public) rss_gen_200->rss_package_url

Testcases:
No testcase defined.
[ show source ]