Monday, November 08, 2010 at 12:00 AM.
scripting2Suite.server.buildThisMonthsStories
on buildThisMonthsStories (username, theMonth=clock.now ()) { <<Changes <<6/25/10; 8:25:31 PM by DW <<Use our visitReverseChronologic routine to exclude stories that aren't in the chronology. <<6/12/10; 8:13:01 AM by DW <<Created. The first time you update in a day, all the other pages in the month must be rebuilt because their calendars have a new day. local (adrdata = scripting2suite.inituser (username)); on visit (adrstory) { if not date.sameMonth (theMonth, adrstory^.postdate) { return (false)}; scripting2Suite.server.buildStoryPage (username, adrstory); return (true)}; scripting2Suite.server.visitReverseChronologic (@adrdata^.calendar, @visit)}; bundle { //test code buildThisMonthsStories ("davewiner")}
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.