[Zope] HowTo Render txt-Files with LocalFS in PythonScript?

douwe@oberon.nl douwe@oberon.nl
Tue, 6 Aug 2002 10:04:00 +0200


Hi Elena,

> The attributes passed to a dtml page are:
> 
>     aDtmlFile(aClass, aDict, **keywordArguments)
> 
> 
> when you pass _.None as the object it cannot look up an id, as 
> None has no attributes.
> 
> 
> If you are calling it from a Python script you should probably pass::
> 
>     aDtmlFile(context, REQUEST)
That's correct. From DTML an earlier post recommends:
<dtml-var "dtmlMethod(_.None,_, keyword_parameters_as_needed)">

Douwe