Is this only broken for PSP files?  Or does it also break if you try it in a
regular servlet?

Also, you might want to try self.forward() and self.callMethodOfServlet()
and see if those are also broken for you too.  Their internal implementation
is very similar to includeURL().  I'm using both of those methods with no
problems from regular servlets in my own application.

I can take a closer look at this problem, but not until next week.

- Geoff

> -----Original Message-----
> From: David Casti [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 11, 2002 4:55 AM
> To: [EMAIL PROTECTED]
> Subject: [Webware-discuss] mod_webkit adapter broken for
> self.includeURL?
> 
> 
> Hello,
> 
> I am using the self.includeURL() function in my PSP page.  
> The exact snip 
> of code is --
> 
> if tabbed:
>      tab_include_name = "%s/psp/tabs/%s_tabs.psp" % ( 
> root_path, page_name )
>      print "tab_include_name = %s" % tab_include_name
>      self.includeURL( tab_include_name )
> 
> -- and this works fine if I use the WebKit.cgi adapter.
> 
> However, if I try to run the exact same code through 
> mod_webkit, I get a 
> very strange problem.  It appears that some junk is getting 
> prepended to 
> the path... the traceback is --
> 
> Traceback (most recent call last):
>    File "./WebKit/Application.py", line 388, in dispatchRequest
>      self.handleGoodURL(transaction)
>    File "./WebKit/Application.py", line 536, in handleGoodURL
>      self.respond(transaction)
>    File "./WebKit/Application.py", line 712, in respond
>      transaction.respond()
>    File "./WebKit/Transaction.py", line 105, in respond
>      self._servlet.respond(self)
>    File "./WebKit/HTTPServlet.py", line 38, in respond
>      method(trans)
>    File "./WebKit/Page.py", line 38, in respondToPost
>      self._respond(transaction)
>    File "./WebKit/Page.py", line 67, in _respond
>      self.writeHTML()
>    File 
> "/home/apache/Webware/WebKit/Cache/PSP/_home_apache_htdocs_psp
> _cornerstone_newsalesorder_new_sales_order_htm.py", 
> line 390, in writeHTML
>      self.includeURL( tab_include_name )
>    File "./WebKit/Page.py", line 328, in includeURL
>      self.application().includeURL(self.transaction(), URL)
>    File "./WebKit/Application.py", line 637, in includeURL
>      self.createServletInTransaction(trans)
>    File "./WebKit/Application.py", line 978, in 
> createServletInTransaction
>      cache = {
>    File "/usr/local/lib/python2.2/posixpath.py", line 144, in getmtime
>      st = os.stat(filename)
> OSError: [Errno 20] Not a directory: 
> '/home/apache/htdocs/psp/cornerstone/newsalesorder/new_sales_o
> rder.htm/home/apache/htdocs/psp/cornerstone/newsalesorder/../p
> sp/tabs/new_sales_order_tabs.psp'
> 
> -- the correct path in this example would have been simply 
> ../psp/tabs/new_sales_order_tabs.psp
> 
> Any ideas why WebKit.cgi works and mod_webkit doesn't?
> 
> Thanks,
> David.
> 
> ------------------------------------------------------------------
> David Casti                                       Managing Partner
> Neosynapse                                      www.neosynapse.net
> 
> 
> 
> _______________________________________________
> Webware-discuss mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/webware-discuss
> 

_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to