Monday, November 08, 2010 at 12:00 AM.
scripting2Suite.editor.io.getAllOutlines
on getAllOutlines () { <<Changes <<7/26/10; 3:36:45 PM by DW <<Add parameter, a struct with an entry for each user saying when they last updated (as far as we know). <<7/17/10; 2:07:21 PM by DW <<Created. local (adrdata = scripting2suite.init (), username, password, server, updatestruct); username = adrdata^.editor.prefs.username; password = string (adrdata^.editor.prefs.password); server = string (adrdata^.editor.prefs.server); bundle { //fill updatestruct, 7/26/10 by DW local (adruser); new (tabletype, @updatestruct); for adruser in @adrdata^.editor.buddies.users { updatestruct.[nameof (adruser^)] = adruser^.stats.whenLastUpdate}}; return ([server].scripting2.getallinstantoutlines (username, password, updatestruct))}; bundle { //test code local (tc = clock.ticks ()); scratchpad.texttable = getAllOutlines (); dialog.notify (clock.ticks () - tc)}
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.