Monday, November 08, 2010 at 12:07 AM.


on getSubs (username, password) {
		<<1/11/06; 5:29:08 AM by DW
			<<Put the call to getSubInfo in a try, because it's possible one of the services is malformed.
		<<11/6/02; 1:49:30 PM by JES
			<<Created. Return an array of structs for all the channels we're subscribed to.
	xml.aggregator.securityForRpc (client, username, password);
	local (adrdata = xml.aggregator.init ());
	local (adrservices = @adrdata^.services);
	local (returnStruct); new (tableType, @returnStruct);
	local (adrservice);
	for adrservice in adrservices {
		local (url = nameOf (adrservice^));
		try {
			returnStruct.[url] = xml.aggregator.rpcHandlers.getSubInfo (url, username, password)}};
	return (returnStruct)}
<<bundle //testing
	<<root.client = ""
	<<scratchpad.subs = getSubs (,
	<<delete (@root.client)

This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.