[Twisted-Python] Error in documentation

Sofiane Akermoun akersof at gmail.com
Sun Mar 3 00:52:59 MST 2013


Hello,

It is probably cheap but i came across wrong thing in your official
doc in the part :

http://twistedmatrix.com/documents/current/core/howto/tutorial/library.html

Here we learn how to separate the application code that launches a
finger service from the library code which defines the finger service.

The problem is in the "Easy Configuration" Part.
Between line 7 and line 8 it misses the code f.setServiceParent(s)
Without it the the instantiated object from class
FingerService(service.Service) will be never collected by the service
collection and the startService function in class
FingerService(service.Service) will be never called. (this function is
import it is where we initiate the looping reading of "/etc/users")

There is also an other error at the end of this tutorial it is wrote
"% twisted -ny simple-finger.tac" instead of "%twistd -ny
simple-finger.tac".

regards,

-- 
Sofiane Akermoun
akersof at gmail.com




More information about the Twisted-Python mailing list