Saturday, April 02, 2011 at 9:17 PM.
beautSuite.init
on init () {
<<Changes
<<3/20/11; 12:36:08 PM by DW
<<Created.
local (adrdata = @config.beaut);
if not defined (adrdata^) {
new (tabletype, adrdata)};
bundle { //prefs
if not defined (adrdata^.prefs) {
new (tabletype, @adrdata^.prefs)};
if not defined (adrdata^.prefs.maxCacheSecs) {
adrdata^.prefs.maxCacheSecs = 300};
if not defined (adrdata^.prefs.s3Path) {
adrdata^.prefs.s3Path = ""};
if not defined (adrdata^.prefs.s3Url) {
adrdata^.prefs.s3Url = ""}};
bundle { //stats
if not defined (adrdata^.stats) {
new (tabletype, @adrdata^.stats)};
if not defined (adrdata^.stats.ctJsonGets) {
adrdata^.stats.ctJsonGets = 0};
if not defined (adrdata^.stats.ctCacheClears) {
adrdata^.stats.ctCacheClears = 0};
if not defined (adrdata^.stats.ctFeedUpdates) {
adrdata^.stats.ctFeedUpdates = 0}};
bundle { //misc
if not defined (config.river2.callbacks.afterScan.beautSuite) {
config.river2.callbacks.afterScan.beautSuite = @beautSuite.afterScanCallback};
if not defined (config.river2.callbacks.feedUpdated.beautSuite) {
config.river2.callbacks.feedUpdated.beautSuite = @beautSuite.feedUpdatedCallback}};
bundle { //temp table
if not defined (system.temp.beaut) {
new (tabletype, @system.temp.beaut)};
if not defined (system.temp.beaut.cache) {
new (tabletype, @system.temp.beaut.cache)}};
return (adrdata)};
bundle { //test code
init ()}
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.