[Twisted-Python] "twisted.internet.app is deprecated"...
Henry James
henrypijames at lycos.com
Thu Jun 24 18:50:57 EDT 2004
After one year, I'm coming back to continue a project featuring Twisted Web, only to find "twisted.internet.app is deprecated, try twisted.application or the reactor instead".
Needless to say, after an hour's fooling around in the doc (which is just as chaotic and frustrating as a year ago), I haven't found the "new way to doing things".
The code I need to "convert":
if __name__ == '__main__':
import sys
from twisted.internet import app
log.startLogging(sys.stdout, 0)
# some other init code, unrelated to the problem
application = app.Application('tour')
application.persistStyle = 'aot'
application.listenTCP(8080, server.Site(pages['']))
application.run()
Of course I know I must be the guy number 1,000,000 to ask this question, but the fact I can't find an answer to it (net even with Google) just worsen the situation.
Suggestion to doc writers: If you change your "stancard way to doing things", please included a "code convertion guide" of some kind into your tutorial.
Thanks,
Henry
____________________________________________________________
Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10
More information about the Twisted-Python
mailing list