Tuesday, February 15, 2011 at 1:05 AM.
river2Suite.initBeautifulRiverPrefs
on initBeautifulRiverPrefs (adrdata) { <<Changes <<2/12/11; 9:49:50 PM by DW <<The jsonUrl pref is not needed, it's set by the code that builds the beautiful river. <<2/8/11; 8:24:11 AM by DW <<Init flBeautifulIsIndex. If true, the beautiful view is the index file. <<2/7/11; 10:49:00 PM by DW <<Init the jsonUrl to river3.js instead of river.js. <<2/4/11; 4:16:40 PM by DW <<This prefs table can appear either in the main prefs or in a user's prefs. So the code was factored right from the start. if not defined (adrdata^.prefs.beautifulRiver) { new (tabletype, @adrdata^.prefs.beautifulRiver)}; if not defined (adrdata^.prefs.beautifulRiver.enabled) { adrdata^.prefs.beautifulRiver.enabled = true}; if not defined (adrdata^.prefs.beautifulRiver.description) { adrdata^.prefs.beautifulRiver.description = "All my news in one place, updated in real time."}; if not defined (adrdata^.prefs.beautifulRiver.title) { adrdata^.prefs.beautifulRiver.title = "My Beautiful River"}; if not defined (adrdata^.prefs.beautifulRiver.pleaseWaitMessage) { adrdata^.prefs.beautifulRiver.pleaseWaitMessage = "Loading news from the server."}; bundle { //jsonUrl, 2/12/11 by DW if defined (adrdata^.prefs.beautifulRiver.jsonUrl) { delete (@adrdata^.prefs.beautifulRiver.jsonUrl)}}; <<if not defined (adrdata^.prefs.beautifulRiver.jsonUrl) <<adrdata^.prefs.beautifulRiver.jsonUrl = "river3.js?callback=" if not defined (adrdata^.prefs.beautifulRiver.flBeautifulIsIndex) { //2/8/11 by DW adrdata^.prefs.beautifulRiver.flBeautifulIsIndex = false}}
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.