--> --> -->
 
 
<type 'exceptions.OSError'>
Python 2.6.6: /usr/bin/python
Thu Apr 17 18:40:39 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/project-web/kamaelia/cgi-bin/blog/blog.cgi in ()
   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>, e.run = <bound method Blog.run of <Blog.Blog object>>
 /home/project-web/kamaelia/cgi-bin/blog/cgi_app.py in run(self=<Blog.Blog object>)
  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>
 /home/project-web/kamaelia/cgi-bin/blog/Blog.py in customCallback(*args=())
  335             if self.authorisation.action(attr):
  336                 def customCallback(*args):
  337                     result = super(Blog, self).__getattribute__(attr)(*args)
  338                     try:
  339                         if result.get("redirecturl", None) is not None:
result undefined, builtin super = <type 'super'>, global Blog = <class 'Blog.Blog'>, self = <Blog.Blog object>, ).__getattribute__ = <bound method Blog.__getattribute__ of <Blog.Blog object>>, attr = 'viewpost', args = ()
 /home/project-web/kamaelia/cgi-bin/blog/Blog.py in viewpost(self=<Blog.Blog object>)
  129     def viewpost(self):
  130        nodeid = self.param("nodeid")
  131        post = self.ui._format_NodeTree(nodeid)
  132        return {              "template": "viewpost.html", 
  133                              "feedurl" : config.v["feedurl"],
post undefined, self = <Blog.Blog object>, self.ui = <Interface.Interface instance>, self.ui._format_NodeTree = <bound method Interface._format_NodeTree of <Interface.Interface instance>>, nodeid = '1148942995'
 /home/project-web/kamaelia/cgi-bin/blog/Interface.py in _format_NodeTree(self=<Interface.Interface instance>, rootnodeid='1148942995')
   78 
   79        # Get replies IDs. These are in thread order.
   80        replies = list(self.posts.allNodes(rootnodeid))
   81        replies_ = [ self.posts.replyNodeIDAsSortableID(x) for x in replies]
   82        replies_.sort()
replies undefined, builtin list = <type 'list'>, self = <Interface.Interface instance>, self.posts = <Posts.Posts object>, self.posts.allNodes = <bound method Posts.allNodes of <Posts.Posts object>>, rootnodeid = '1148942995'
 /home/project-web/kamaelia/cgi-bin/blog/Posts.py in allNodes(self=<Posts.Posts object>, postid='1148942995')
  133 
  134    def allNodes(self, postid=""):
  135       nodes = os.listdir(self.postdirectory)
  136       nodes = [ x for x in nodes if (x[-2:] != ".d") ]
  137       nodes = [ x for x in nodes if (x != "CVS") ]
nodes undefined, global os = <module 'os' from '/usr/lib64/python2.6/os.pyc'>, os.listdir = <built-in function listdir>, self = <Posts.Posts object>, self.postdirectory = 'posts'

<type 'exceptions.OSError'>: [Errno 2] No such file or directory: 'posts'
      args = (2, 'No such file or directory')
      errno = 2
      filename = 'posts'
      message = ''
      strerror = 'No such file or directory'