Re: How to handle interrupted responses in nevow?

"Peter Westlake" <[email protected]>
Newsgroups gmane.comp.python.twisted.web
Message-ID <[email protected]>
A quick question about Python style:

nevow.Request is a subclass of twisted.web.server.Request,
which is a subclass of http.Request, which has an attribute
_disconnected. Since the name begins with an underscore, it
isn't intended to be part of the public API, and I think
that means I can't refer to it in nevow.Request.

There are two options:

1) use notifyFinish() to set a new attribute in nevow.Request,
   which would end up duplicating _disconnected;

2) use it anyway, and file a request for _disconnected to
   become part of the published interface.

Both approaches work, and I have a unit test to prove it!
Which would you like me to do?

Peter.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.