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

scripting2Suite.utilities.loadIOpmlFromFolder

<<Changes
	<<6/2/10; 4:32:18 PM by DW
		<<Take the folder created by scripting2Suite.utilities.createInputFolder and load each story into the database. We don't do the rendering at this time. The goal is just to get some stories in the database so I can develop the code to generate the various archive pages.
local (folder = "Macintosh HD:Users:davewiner:Desktop:intoScripting2:storyArchive:", f, atts);
folder = "C:\\Documents and Settings\\Administrator\\My Documents\\My Dropbox\\intoScripting2\\storyArchive\\";
bundle { //cleanup
	try {delete (@scripting2Data.server.users.davewiner.calendar)};
	scripting2Data.server.users.davewiner.stats.storySerialNum = 1;
	try {file.deletefolder (frontier.pathstring + "scripting2:server:davewiner:")}};
fileloop (f in folder, infinity) {
	if f endswith ".opml" {
		local (s = file.readwholefile (f));
		msg (f);
		scripting2Suite.server.savePost ("davewiner", s, @atts, false)}}



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.