[EMAIL PROTECTED] wrote:
> Hi,
> 
> I have what I am sure is a pretty basic question, but the answer is 
> eluding me.
> 
> I have a python file bigstar.py in the top directory of my context.
> 
> I have a <%page extends="bigstar"> in a psp file one level 
> down from the 
> directory configured as the context. WebKit is barfing on <%page 
> extends="bigstar"> with this message:
> 
> File 
> "/usr/local/Webware/WebKit/Cache/PSP/_home_dsacks_Webware_bigs
> tar_development_alicecooper_st_landing_psp.py", 
> line 8, in ?
> _baseClasses.append(bigstar.bigstar)
> AttributeError: bigstar
> 
> 
> This works when bigstar.py and the psp file are both in the top level 
> directory, so I think I am getting this error because WebKit 
> doesn't know 
> where to find bigstar.py. How do I tell it?

So you have bigstar.py in the context directory, and a PSP file in a
subdirectory?

I think this should work in the PSP file if the class is called bigstar:

<%page imports="ContextName:bigstar"%>
<%page extends="bigstar"%>

or if the base class has a different name than the name of the module it
lives in (for example "foobar"):

<%page imports="ContextName:bigstar"%>
<%page extends="bigstar.foobar"%>

- Geoff

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

Reply via email to