[Zope] index.html in Python Script?

2005-04-21 Thread Erik Myllymaki
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

Re: [Zope] index.html in Python Script?

2005-04-21 Thread Phillip Hutchings
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, request) The

Re: [Zope] index.html in Python Script?

2005-04-21 Thread Erik Myllymaki
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

Re: [Zope] index.html in Python Script?

2005-04-21 Thread David H
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: