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


on deleteAttribute (domain, itemName, attName, attValue=nil, adrerrorstring=nil) {
		<<1/12/08; 10:29:12 AM by DW
			<<Created. A very simple interface, there's a lot more power here, but it's not clear how we'll use that power.  
			<<We delete an attribute for a given item in a given domain. Multiple items with the same name can exist so you can say delete the orange color by setting attValue to orange, and attName to color.
	local (t, ct=0);
	new (tabletype, @t);
	t.DomainName = domain;
	t.ItemName = itemName;
	t.["Attribute.1.Name"] = attName;
	if attValue != nil {
		t.["Attribute.1.Value"] = attValue};
	return (s3.simpleDb.httpClient ("DeleteAttributes", @t, adrerrorstring))};
bundle { //test code
	local (es);
	if not deleteAttribute ("flickrFanData", "Dave Winer", "urlMyFeed", nil, @es) {
		dialog.alert (es)}}

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.