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

system.verbs.apps.WebStar.root.test1

local (server = webstar.id, i);
on getpagename (i) {
	return (string.lower (states.nthState (i) - " "))};
webstar.root.newTable (server, "odb.test");
for i = 1 to 50 {
	local (name = getpagename (i));
	local (pagepath = "odb.test." + name);
	webstar.root.newObject (server, pagepath, string.filledstring (name + "<br>", 50), "text/html");
	msg (pagepath)};
webstar.root.save (server);
webstar.root.close (server);
for i = 1 to 50 {
	webbrowser.openurl ("http://scripting.com/test." + getpagename (i) + ".odb");
	clock.waitseconds (1)}



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.