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


on initPageTable (pta) {
		<<6/1/10; 9:21:55 AM by DW
			<<Created. Set up a pagetable for scripting2. 
	if not defined (pta^.scripting2) {
		new (tabletype, @pta^.scripting2)};
	if not defined (pta^.scripting2.flStoryPage) {
		pta^.scripting2.flStoryPage = false};
	bundle { //crumbTrailInfo
		if not defined (pta^.scripting2.crumbTrailInfo) {
			new (tabletype, @pta^.scripting2.crumbTrailInfo)};
		if not defined (pta^.scripting2.crumbTrailInfo.d) {
			pta^.scripting2.crumbTrailInfo.d = ()};
		if not defined (pta^.scripting2.crumbTrailInfo.flMonth) {
			pta^.scripting2.crumbTrailInfo.flMonth = false};
		if not defined (pta^.scripting2.crumbTrailInfo.flDay) {
			pta^.scripting2.crumbTrailInfo.flDay = false}}};
bundle { //test code
	local (pta = @scratchpad.testpagetable);
	new (tabletype, pta);
	initPageTable (pta);
	edit (pta)}

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.