Forum OpenACS Development: rss-support

Collapse
Posted by Chris Davies on
As defined in the documentation, I did the following:

select acs_sc_impl__new(
      'RssGenerationSubscriber',        -- impl_contract_name
      'todip_rss',                -- impl_name
      'todip'                    -- impl_owner_name
);

select acs_sc_impl_alias__new(
      'RssGenerationSubscriber',        -- impl_contract_name
      'todip_rss',                -- impl_name
      'datasource',                -- impl_operation_name
      'todip__rss_datasource',            -- impl_alias
      'TCL'                    -- impl_pl
);

select acs_sc_impl_alias__new(
      'RssGenerationSubscriber',        -- impl_contract_name
      'todip_forum',                -- impl_name
      'lastUpdated',                -- impl_operation_name
      'todip__rss_lastUpdated',        -- impl_alias
      'TCL'                    -- impl_pl
);

I created my .tcl file to return the xml, however, when I go to:

/rss-support/admin/subscrs

it reports

Main Site : RSS Support : Administration : Subscriptions
Name     Timeout     Last Built     Last Time To Build     Created By     Actions

and has no subscriptions listed.

select acs_sc_impl__get_id('RssGenerationSubscriber','todip_forum');
acs_sc_impl__get_id
---------------------

(1 row)

seems to return a row, but an empty row.

I think what I am missing is where to implement the contracted procs.  Does this go in the nsd.tcl startup file or 0-acs-init.tcl?

I believe the tcl that I wrote returns the structure correctly, but calling the url as documented, returns an error which leads me to believe I am not doing something correctly.

Thanks to anyone that can set me on the right path.

Collapse
2: Re: rss-support (response to 1)
Posted by Dave Bauer on
Chris,

Just put them in your package tcl library. Most of the rss supported packges have a package-key-rss-procs.tcl.

Collapse
3: Re: rss-support (response to 1)
Posted by Chris Davies on
ERROR:  Binding of RssGenerationSubscriber to todip_rss failed since certain operations are not implemented.

what does this mean?

I have used the larsblogger rss procs, the one in the example, and none give me any other message.

Main Site : RSS Support : Administration : Subscriptions
Name     Timeout     Last Built     Last Time To Build     Created By     Actions

is empty even after multiple executions of

select acs_sc_impl__get_id('RssGenerationSubscriber','todip');

which returns an empty row

making it difficult to figure out what should go in:

http://host:81/rss-support/subscr-ae?impl_id=519&summary_context_id=601

if I reverse those numbers, I get a lot of error output rather than

No implementation found for this id.

Any pointers in the right direction would be greatly appreciated.

Thanks.