Monday, November 08, 2010 at 12:04 AM.
system.verbs.builtins.op.attributes.setOne
on setOne (attname, attval) { <<Changes <<Thursday, August 03, 2000 at 1:56:15 PM by DW <<New routine. <<Monday, August 07, 2000 at 9:21:44 AM by DW <<Moved from playlist.setHeadlineAttribute. local (attstable, data = op.getrefcon ()); if typeof (data) != binarytype { //has no attributes new (tabletype, @attstable)} else { unpack (@data, @attstable)}; attstable.[attname] = attval; pack (attstable, @packeddata); op.setrefcon (packeddata); return (true)} <<bundle //test code <<setHeadlineAttribute ("time", clock.now ())
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.