Jeff, did you ever get an answer to this? I assume it's related to the
recent Application rewrites.
I want to try out Webware from CVS but this will be a problem for me too.
- Geoff
> -----Original Message-----
> From: Jeff Johnson [mailto:jeff@...]
> Sent: Wednesday, April 23, 2003 4:29 PM
> To: webware-devel@...
> Subject: [Webware-devel] contextInitialize, how does it work
> these days?
>
>
> I see that contextInitialize is passed a URLParser instead of
> an Application
> object like it used to. Since I create tasks and add them to
> application.taskManager(), I need an application but it looks
> like the
> application hasn't been created yet. I know cvs head is
> unstable right now
> but does anyone know how to get around this?
>
> I tried URLParser.application(), which returns the global
> application and get
> the following error:
>
> Current directory: /home/jeff/work/deg/projects/ea/webkit
> default /home/jeff/work/deg/projects/ea/www
> Traceback (most recent call last):
> File "./WebKit/ThreadedAppServer.py", line 704, in run
> File "./WebKit/ThreadedAppServer.py", line 71, in __init__
> File "./WebKit/AutoReloadingAppServer.py", line 56, in __init__
> File "./WebKit/AppServer.py", line 86, in __init__
> File "./WebKit/AppServer.py", line 209, in createApplication
> File "./WebKit/Application.py", line 92, in __init__
> File "/home/jeff/work/deg/lib/Webware/WebKit/URLParser.py",
> line 123, in
> __init__
> self.addContext('default', defaultContext)
> File "/home/jeff/work/deg/lib/Webware/WebKit/URLParser.py",
> line 186, in
> addContext
> result = mod.contextInitialize(self,
> os.path.normpath(os.path.join(os.getcwd(), dir)))
> File "/home/jeff/work/deg/projects/ea/www/__init__.py", line 20, in
> contextInitialize
> application = URLParser.application()
> File "/home/jeff/work/deg/lib/Webware/WebKit/URLParser.py",
> line 32, in
> application
> return AppServer.globalAppServer.application()
> File "./WebKit/AppServer.py", line 321, in application
> AttributeError: ThreadedAppServer instance has no attribute '_app'
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Webware-devel mailing list
> Webware-devel@...
> https://lists.sourceforge.net/lists/listinfo/webware-devel
>
|