Changes between Version 4 and Version 5 of FrequentlyAskedQuestions


Ignore:
Timestamp:
12/04/06 21:06:30 (15 years ago)
Author:
Jean-Paul Calderone
Comment:

I AM EDITING A WIKI BITCHES

Legend:

Unmodified
Added
Removed
Modified
  • FrequentlyAskedQuestions

    v4 v5  
    5959Actually, Twisted depends on [http://www.zope.org/Products/ZopeInterface Zope Interface], an interface package which is also bundled independently from the main Zope distribution.  Twisted uses Zope Interface to define and document APIs.  The [http://twistedmatrix.com/trac/wiki/TwistedProject Twisted source distribution] includes a source package for Zope Interface.  Zope Interface is is also [http://packages.debian.org/cgi-bin/search_packages.pl?keywords=zopeinterface&searchon=names&subword=1&version=stable&release=all packaged by Debian].
    6060
    61 === How can I access self.factory from my Protocol's __init__? ===
     61=== How can I access self.factory from my Protocol's !__init!__? ===
    6262
    6363You can't. A Protocol doesn't have a Factory when it is created. Instead, you should probably be doing that in your Protocol's connectionMade method.
    6464
    65 Similarly you shouldn't be doing real work, like connecting to databases, in a Factory's __init__ either. Instead, do that in startFactory.
     65Similarly you shouldn't be doing real work, like connecting to databases, in a Factory's !__init!__ either. Instead, do that in startFactory.
    6666
    6767See [http://twistedmatrix.com/projects/core/documentation/howto/servers.html Writing Servers] and [http://twistedmatrix.com/projects/core/documentation/howto/clients.html Writing Clients] for more details.