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

system.verbs.builtins.radio.outliner.initSubscription

on initSubscription (adrsub) {
	<<Changes
		<<5/12/02; 5:22:02 PM by DW
			<<Init two new fields, ctSecondsBetweenPolls and ctConsecPollsWithNoChange.
		<<4/26/02; 12:51:20 PM by DW
			<<Init new field, enabled.
		<<3/22/02; 7:01:07 PM by JES
			<<Make sure the outline exists.
	if not defined (adrsub^) {
		new (tabletype, adrsub)};
	if not defined (adrsub^.ctXmlBytes) {
		adrsub^.ctXmlBytes = 0};
	if not defined (adrsub^.whenLastPoll) {
		adrsub^.whenLastPoll = date (0)};
	if not defined (adrsub^.ctPolls) {
		adrsub^.ctPolls = 0};
	if not defined (adrsub^.enabled) {
		adrsub^.enabled = true};
	if not defined (adrsub^.ctSecondsBetweenPolls) {
		adrsub^.ctSecondsBetweenPolls = user.radio.outliner.prefs.ctSecsBetweenPolls};
	if not defined (adrsub^.ctConsecPollsWithNoChange) {
		adrsub^.ctConsecPollsWithNoChange = 0}}
	<<if not defined (adrsub^.outline)
		<<new (outlineType, @adrsub^.outline)
<<bundle //test code
	<<initSubscription (@user.radio.outliner.subscriptions.["http://radio.weblogs.com/0001000/instantOutliner/jakeSavin.opml"])



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.