#!/usr/bin/env python """ This script is intended to be run as an SSI exec. It will print out the current month of entries for the specified notebook in reverse chronological order. If a second argument is specified, will print out the current month in chronological order. Sample invocation: (Will print out the current month's entries for the mynotebook notebook) (Will print out the current month's entries for the mynotebook notebook, in chronological order) """ import __builtin__ __builtin__.__dict__['_'] = lambda x: x from nb import CoreSSIs CoreSSIs.ThisMonthSSI()