-->
--> -->
OSError | Python 2.4.3: /usr/bin/python Tue Jul 7 00:02:46 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 = 'welcome', args = () |
| /home/groups/k/ka/kamaelia/cgi-bin/projects/Blog.py in welcome(self=<Blog.Blog object>) |
102 )
|
103
|
104 posts = [ post for post in self.posts.allNodes() ]
|
105 posts.reverse() # The intent here is to reverse order by time, which spectacularly fails here...
|
106 if self.param("recentchanges") == "":
|
| posts undefined, post undefined, self = <Blog.Blog object>, self.posts = <Posts.Posts object>, self.posts.allNodes = <bound method Posts.allNodes of <Posts.Posts object>> |
| /home/groups/k/ka/kamaelia/cgi-bin/projects/Posts.py in allNodes(self=<Posts.Posts object>, postid='') |
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'