[Zope-Checkins] CVS: Zope3/lib/python/Zope/Server/LineReceiver - LineServerChannel.py:1.1.2.7
Shane Hathaway
shane@cvs.zope.org
Wed, 10 Apr 2002 17:59:52 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/Server/LineReceiver
In directory cvs.zope.org:/tmp/cvs-serv18340/LineReceiver
Modified Files:
Tag: Zope3-Server-Branch
LineServerChannel.py
Log Message:
- Removed AlternateSocketMapMixin. It was there to support multiple socket
maps, but if we really need multiple socket maps, it would be better to
change asyncore. Had to update a lot of __init__ methods.
- Added IUsernamePassword and IFilesystemAccess, which provide a way to
implement all kinds of authentication schemes without FTP knowing about
any of the details. Modified FTPServerChannel to work based on an
IFilesystemAccess object.
- Added detection of the ZOPE_SERVER_DEBUG env var.
- Added comments here and there.
- Fixed CRs :-)
=== Zope3/lib/python/Zope/Server/LineReceiver/LineServerChannel.py 1.1.2.6 => 1.1.2.7 ===
+DEBUG = os.environ.get('ZOPE_SERVER_DEBUG')
+
+
class LineServerChannel(ServerChannelBase):
"""The Line Server Channel represents a connection to a particular
client. We can therefore store information here."""
@@ -108,6 +111,9 @@
def exception(self):
+ if DEBUG:
+ import traceback
+ traceback.print_exc()
t, v = sys.exc_info()[:2]
try:
info = '%s: %s' % (getattr(t, '__name__', t), v)