I am not sure if this is a PSP bug. PSP doesn't seem to do a proper import
if I use:
<%@ page imports="package:subpackage:module"%>
It creates in the .py servlet:
from package import subpackage
from package.subpackage import module
My pretty simple fix is in the ParseEventHandler.py:
< module, symbol = string.split(i, ':')[:2]
> impfrags = string.split(i, ':')
> module = string.join(impfrags[:-1], '.')
> symbol = impfrags[-1]
Hope it helps...
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
On Tuesday December 18, 2001 03:46 am, Costas Malamas wrote:
> Hey all,
> I am not sure if this is a PSP bug. PSP doesn't seem to do a proper import
> if I use:
> <%@ page imports="package:subpackage:module"%>
> It creates in the .py servlet:
> from package import subpackage
> instead of:
> from package.subpackage import module
<%@ page imports="package.subpackage:module"%>
work properly? I think that's how you're supposed to write it.
Get latest updates about Open Source Projects, Conferences and News.