--> --> -->
 
 
<type 'exceptions.ValueError'>
Python 2.6.6: /usr/bin/python
Thu Apr 17 16:23:08 2014

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

 /home/woodhull/public_html/home/index.cgi in ()
   36 optionlist['title']=title
   37 
   38 number=build_random_thumbnail("../data/photos",".*thumb.*")
   39 
   40 #optionlist["random_thumbnail"]="<img src=\"/htdocs/3/emtam/data/photos/%s-thumb.jpg\">"%(number)
number undefined, build_random_thumbnail = <function build_random_thumbnail>
 /home/woodhull/public_html/code/zweb.py in build_random_thumbnail(dir='../data/photos', pattern='.*thumb.*')
   28         thumblist=[item for item in os.listdir(dir) if re.match(pattern,item)]
   29         photoname=thumblist[random.randrange(0,len(thumblist))]
   30         (number,rest)=string.split(photoname,"-")
   31         return number
   32 
number undefined, rest undefined, global string = <module 'string' from '/usr/lib64/python2.6/string.pyc'>, string.split = <function split>, photoname = '094-thumb-jpg'

<type 'exceptions.ValueError'>: too many values to unpack
      args = ('too many values to unpack',)
      message = 'too many values to unpack'