Monday, April 04, 2011 at 1:06 AM.

river2Suite.utilities.addFeedForAllUsers

on addFeedForAllUsers (url) {
	<<Changes
		<<4/2/11; 1:58:18 PM by DW
			<<This script loops over all your users and subscribes each of them to a feed. 
	local (adrdata = river2suite.init (), adruser);
	try {river2Suite.subscribeFeed (url)};
	for adruser in @adrdata^.users {
		local (adrfeed = @adruser^.feeds.[url]);
		if not defined (adrfeed^) {
			new (tabletype, adrfeed);
			river2suite.inituser (adruser)}}};
bundle { //test code
	addFeedForAllUsers ("http://scripting.com/rss.xml")}



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.