-->
--> -->
OSError | Python 2.4.3: /usr/bin/python Tue Dec 1 23:18:20 2009 |
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/groups/k/ka/kamaelia/cgi-bin/projects/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>, e.run = <bound method Blog.run of <Blog.Blog object>> |
| /home/groups/k/ka/kamaelia/cgi-bin/projects/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/groups/k/ka/kamaelia/cgi-bin/projects/Blog.py in customCallback(*args=()) |
338 if self.authorisation.action(attr):
|
339 def customCallback(*args):
|
340 result = super(Blog, self).__getattribute__(attr)(*args)
|
341 try:
|
342 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/groups/k/ka/kamaelia/cgi-bin/projects/Blog.py in viewpost(self=<Blog.Blog object>) |
132 def viewpost(self):
|
133 nodeid = self.param("nodeid")
|
134 post = self.ui._format_NodeTree(nodeid)
|
135 return { "template": "viewpost.html",
|
136 "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 = '1145910563' |
| /home/groups/k/ka/kamaelia/cgi-bin/projects/Interface.py in _format_NodeTree(self=<Interface.Interface instance>, rootnodeid='1145910563') |
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 = '1145910563' |
| /home/groups/k/ka/kamaelia/cgi-bin/projects/Posts.py in allNodes(self=<Posts.Posts object>, postid='1145910563') |
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.4/os.pyc'>, os.listdir = <built-in function listdir>, self = <Posts.Posts object>, self.postdirectory = 'posts' |
OSError: [Errno 2] No such file or directory: 'posts'
args =
(2, 'No such file or directory')
errno =
2
filename =
'posts'
strerror =
'No such file or directory'