Erik Myllymaki wrote:
How do address a ZPT with a name like index.html in a Python Script?
The following:
request = container.REQUEST
RESPONSE = request.RESPONSE
if not request.has_key('next_state'):
return container.index.html(context, request)
returns:
Error Type: AttributeError
Error Value: i
thanks, and this seems to do what I want to:
request = container.REQUEST
RESPONSE = request.RESPONSE
if not request.has_key('next_state'):
return container['index.html'](context, request)
Phillip Hutchings wrote:
On 22/04/05, Erik Myllymaki <[EMAIL PROTECTED]> wrote:
How do address a ZPT with a
On 22/04/05, Erik Myllymaki <[EMAIL PROTECTED]> wrote:
> How do address a ZPT with a name like index.html in a Python Script?
>
> The following:
>
> request = container.REQUEST
> RESPONSE = request.RESPONSE
>
> if not request.has_key('next_state'):
>return container.index.html(context, requ
How do address a ZPT with a name like index.html in a Python Script?
The following:
request = container.REQUEST
RESPONSE = request.RESPONSE
if not request.has_key('next_state'):
return container.index.html(context, request)
returns:
Error Type: AttributeError
Error Value: index
_