--> --> -->
 
 
<type 'exceptions.IndexError'>
Python 2.5.2: /usr/bin/python
Thu Nov 20 22:49:35 2008

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /www/patrick/poststreet/src/poststreet.cgi in ()
  286         REQUEST_ACTION=REQUEST_URI[len(cfg["cgiURL"]):].lstrip("/")
  287     else:
  288         raise Exception("Don't know how to process URL")
  289     output_stories(REQUEST_ACTION)
  290     
output_stories = <function output_stories at 0x85eb534>, REQUEST_ACTION = 'random/newYear2004.txt'
 /www/patrick/poststreet/src/poststreet.cgi in output_stories(action='random/newYear2004.txt')
  250         entries = get_tag_stories("/".join(actions[1:]))
  251     else:
  252         category, entries, singleEntry = get_category_stories("/".join(actions))
  253 
  254 
category = None, entries undefined, singleEntry = False, global get_category_stories = <function get_category_stories at 0x85eb4c4>, "/".join undefined, actions = ['random', 'newYear2004.txt']
 /www/patrick/poststreet/src/poststreet.cgi in get_category_stories(storypath='random/newYear2004.txt')
  192     category = None
  193     for cat in actions:
  194         category = Category.select(AND(Category.q.name==cat, Category.q.parent==category))[0]
  195     # now, we know the category, go through and get all of the children
  196     catIds = [x.id for x in category.allChildren()]
category = <Category 8 name='random' weblogID=1 parentID=None createDate='datetime.datetime...)'>, global Category = <class 'db.Category'>, Category.select = <bound method DeclarativeMeta.select of <class 'db.Category'>>, global AND = <function AND at 0x8451304>, Category.q = category, Category.q.name = category.name, cat = 'newYear2004.txt', Category.q.parent = category.parent_id
 /usr/lib/python2.5/site-packages/SQLObject-0.10.0-py2.5.egg/sqlobject/sresults.py in __getitem__(self=<SelectResults at 860c20c>, value=0)
  171             else:
  172                 start = self.ops.get('start', 0) + value
  173                 return list(self.clone(start=start, end=start+1))[0]
  174 
  175     def __iter__(self):
builtin list = <type 'list'>, self = <SelectResults at 860c20c>, self.clone = <bound method SelectResults.clone of <SelectResults at 860c20c>>, start = 0, end undefined

<type 'exceptions.IndexError'>: list index out of range
      args = ('list index out of range',)
      message = 'list index out of range'