Patrick Lewis wrote:
> Does Tempita support imports? In my template
> 
> {{py:import datetime}}
> 
> throws an exception:
> 
> Traceback (most recent call last):
>    File "<stdin>", line 1, in <module>
>    File "build/bdist.macosx-10.3-i386/egg/tempita/__init__.py", line  
> 136, in substitute
>    File "build/bdist.macosx-10.3-i386/egg/tempita/__init__.py", line  
> 142, in _interpret
>    File "build/bdist.macosx-10.3-i386/egg/tempita/__init__.py", line  
> 151, in _interpret_codes
>    File "build/bdist.macosx-10.3-i386/egg/tempita/__init__.py", line  
> 157, in _interpret_code
>    File "build/bdist.macosx-10.3-i386/egg/tempita/__init__.py", line  
> 237, in _exec
>    File "<string>", line 1, in <module>
> SystemError: Parent module 'silverplate' not loaded at line 29 column  
> 3 in file silverplate.py_tmpl

It should support that.  I've never seen an error like that before. 
Unless this might be something related to absolute/relative imports?  I 
have tested primarily on Python 2.4, where that wouldn't come up.

-- 
Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org

_______________________________________________
Paste-users mailing list
[email protected]
http://webwareforpython.org/cgi-bin/mailman/listinfo/paste-users

Reply via email to