Monday, November 08, 2010 at 12:05 AM.
system.verbs.builtins.radio.weblog.getThemePref
on getThemePref (prefName, adrdata=radio.weblog.init ()) { <<Changes <<2/13/02; 1:00:08 PM by JES <<Created. Return the value of a theme preference, given its dot-delimited path. Checks for pta^.categoryName, and if present, gets the pref from the category's theme sub-table instead of from weblogData.prefs. local (adrprefs = @adrdata^.prefs); local (adrpref = address (string.popFileFromAddress (adrprefs) + "." + prefName)); try { local (pta = html.getPageTableAddress ()); if defined (pta^.categoryName) { local (adrcatprefs = @adrdata^.categories.[pta^.categoryName].theme); local (adrcatpref = address (string.popFileFromAddress (adrcatprefs) + "." + prefname)); if defined (adrcatpref^) { adrpref = adrcatpref}}}; return (adrpref^)}
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.