Tuesday, August 18, 2009 at 7:54 PM.
howtoSuite.openDocument
on openDocument (path) { <<Changes <<8/1/08; 10:42:28 AM by DW <<Set a window attribute named "lastOpened" as respected by Frontier.tools.windowTypes.isWindowDirty. <<12/24/07; 12:41:00 PM by DW <<Created. local (username = user.identica.prefs.username, password = user.identica.prefs.password); howtoSuite.init (); local (atts = [user.howto.prefs.client.serverUrl].howto.getOutline (username, password, path)); local (adrwindow = Frontier.tools.windowTypes.newWindow ("howtoWindow", flHidden:true)); if atts.flnew { new (outlinetype, adrwindow)} else { op.xmlToOutline (atts.opmltext, adrwindow)}; delete (@atts.opmltext); //don't want to save it as an attribute edit (adrwindow, windowtitle: path, adrButtonTable:@howtoSuite.buttons); editmenu.setfont (user.howto.prefs.client.font); editmenu.setfontsize (user.howto.prefs.client.fontSize); window.attributes.setone ("outlineDocumentPath", path, adrwindow); local (adratt); for adratt in @atts { window.attributes.setone (nameof (adratt^) + "OnServer", adratt^, adrwindow)}; window.attributes.setone ("lastOpened", clock.now (), adrwindow)}; bundle { //test code openDocument ("/testing/test.opml")}
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.