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

system.verbs.builtins.io.client.getAllOutlines

on getAllOutlines () {
	<<Changes
		<<8/18/10; 7:11:24 PM by DW
			<<Offset the times by date.getcurrenttimezone ().
		<<8/8/10; 11:43:49 AM by DW
			<<The remote call was wrong.
		<<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 = io.init (), username, password, server, updatestruct);
	username = adrdata^.client.prefs.username;
	password = string (adrdata^.client.prefs.password);
	server = string (adrdata^.client.prefs.server);
	bundle { //fill updatestruct, 7/26/10 by DW
		local (adruser);
		new (tabletype, @updatestruct);
		for adruser in @adrdata^.client.buddies.users {
			updatestruct.[nameof (adruser^)] = adruser^.stats.whenLastUpdate - date.getcurrenttimezone ()}};
	return ([server].io.getoutlines (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.