[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [syndication] Syndication Subscription
Dan Lyke <danlyke@flutterby.com> wrote:
> Whoops. I implemented the Publisher functions, the same stuff you did,
> albeit a little bit differently. Maybe later this evening I'll try to
> implement the other side so I can test against your implementation.
No you didn't -- I just wrote some stuff that goes and calls the Publisher
functions.
> You can play with
> http://www.flutterby.com/archives/syndicatorpublisher.cgi in which I've
> tested the "changedPage.getPublications" function with the Perl code at
> the end of this message. subscribe and unsubscribe should work but I
> haven't tested 'em yet, and I'm waiting for some data to build up in my
> change logs before I unleash the job which'll call the notify functions.
Here's what I get when my program calls subscribe:
You have an error in your SQL syntax near '
url='http://my.theinfo.org/changed/notify.tcl'' at line 1
SELECT id FROM syndicatedpublicationsubscribed WHERE publication_id='12',
url='http://my.theinfo.org/changed/notify.tcl'
getPublications works fine. To see what I get, visit:
http://my.theinfo.org/changed/publications.tcl?url=YOUR_URL_HERE
with YOUR_URL_HERE obviously replaced by the URL you want to test.
> Any chance we can renegotiate on the subscription ID? right now it's a 32
> char string in my implementation because...
If we want to use a char, I'd have it be something more meaningful like a
URL than a random string. As I've said, my code doesn't do anything yet so
it's trivial to change things.
> Perl code to call my changedPage.getPublications function follows, right
> now it returns a two dimensional array which we probably wanna change to
> an array of structs.
Tcl code is at:
http://source.theinfo.org/myinfo/changed/publications.tcl
--
Aaron Swartz |"This information is top security.
<http://swartzfam.com/aaron/>| When you have read it, destroy yourself."
<http://www.theinfo.org/> | - Marshall McLuhan