--> --> -->
 
 
ValueError
Python 2.3: /usr/bin/python
Tue Sep 7 14:52:01 2010

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

 /usr/local/httpd/sites/com.yeoldeclue/cgi/blog/blog.cgi
   48 
   49 # or as a regular CGI app...
   50 if __name__ == "__main__":
   51     e = Blog(config, Authenticator, Authorisor, message, Posts, Interface, AuthenticationInterface)
   52     e.run()
e = <Blog.Blog object at 0x939b0>, e.run = <bound method Blog.run of <Blog.Blog object at 0x939b0>>

 /usr/local/httpd/sites/com.yeoldeclue/cgi/blog/cgi_app.py in run(self=<Blog.Blog object at 0x939b0>)
  132         res = ""
  133         if self.prerun(run_mode):
  134             res = method()
  135         else:
  136             res = "prerun failed and no redirect was made. this shouldn't happen"
res = '', method = <function customCallback at 0x98130>

 /usr/local/httpd/sites/com.yeoldeclue/cgi/blog/Blog.py in customCallback(*args=())
  342             if self.authorisation.action(attr):
  343                 def customCallback(*args):
  344                     result = super(Blog, self).__getattribute__(attr)(*args)
  345                     try:
  346                         if result.get("redirecturl", None) is not None:
result undefined, builtin super = <type 'super'>, global Blog = <class 'Blog.Blog'>, self = <Blog.Blog object at 0x939b0>, ).__getattribute__ = <bound method Blog.__getattribute__ of <Blog.Blog object at 0x939b0>>, attr = 'viewpost', args = ()

 /usr/local/httpd/sites/com.yeoldeclue/cgi/blog/Blog.py in viewpost(self=<Blog.Blog object at 0x939b0>)
  127     def viewpost(self):
  128        nodeid = self.param("nodeid")
  129        post = self.ui._format_NodeTree(nodeid)
  130        return {              "template": "viewpost.html", 
  131                              "feedurl" : config.v["feedurl"],
post undefined, self = <Blog.Blog object at 0x939b0>, self.ui = <Interface.Interface instance at 0x25aaf8>, self.ui._format_NodeTree = <bound method Interface._format_NodeTree of <Interface.Interface instance at 0x25aaf8>>, nodeid = '1190238560.1'

 /usr/local/httpd/sites/com.yeoldeclue/cgi/blog/Interface.py in _format_NodeTree(self=<Interface.Interface instance at 0x25aaf8>, rootnodeid='1190238560.1')
   79        # Get replies IDs. These are in thread order.
   80        replies = list(self.posts.allNodes(rootnodeid))
   81        replies_ = [ self.posts.replyNodeIDAsSortableID(len(rootnodeid), x) for x in replies]
   82        replies_.sort()
   83        replies = [ self.posts.SortableIDAsNodeID(rootnodeid, x) for x in replies_ ]
replies_ undefined, self = <Interface.Interface instance at 0x25aaf8>, self.posts = <Posts.Posts object at 0x8d970>, self.posts.replyNodeIDAsSortableID = <bound method Posts.replyNodeIDAsSortableID of <Posts.Posts object at 0x8d970>>, builtin len = <built-in function len>, rootnodeid = '1190238560.1', x = '1190238560.10', replies = ['1190238560.10', '1190238560.11', '1190238560.12']

 /usr/local/httpd/sites/com.yeoldeclue/cgi/blog/Posts.py in replyNodeIDAsSortableID(self=<Posts.Posts object at 0x8d970>, striplen=12, nodeid='')
  161    def replyNodeIDAsSortableID(self, striplen, nodeid):
  162        nodeid = nodeid[striplen+1:]
  163        return [ int(y) for y in nodeid.split(".")] 
  164    def SortableIDAsNodeID(self, rootnodeid, Snodeid): return rootnodeid + "." +(".".join([ str(x_) for x_ in Snodeid]) )
  165 
builtin int = <type 'int'>, y = '', nodeid = '', nodeid.split = <built-in method split of str object at 0x22038>

ValueError: invalid literal for int():
      args = ('invalid literal for int(): ',)