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_order.htm/home/apache/htdocs/psp/cornerstone/newsalesorder/../psp/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

Reply via email to