~ntt-pf-lab/nova/monkey_patch_notification

« back to all changes in this revision

Viewing changes to vendor/Twisted-10.0.0/doc/core/howto/tutorial/listings/finger/simple-finger.tac

  • Committer: Jesse Andrews
  • Date: 2010-05-28 06:05:26 UTC
  • Revision ID: git-v1:bf6e6e718cdc7488e2da87b21e258ccc065fe499
initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# simple-finger.tac
 
2
# eg:  twistd -ny simple-finger.tac
 
3
 
 
4
from twisted.application import service
 
5
 
 
6
import finger
 
7
 
 
8
options = { 'file': '/etc/users',
 
9
            'templates': '/usr/share/finger/templates',
 
10
            'ircnick': 'fingerbot',           
 
11
            'ircserver': 'irc.freenode.net',
 
12
            'pbport': 8889,
 
13
            'ssl': 'ssl=0' }
 
14
 
 
15
ser = finger.makeService(options)
 
16
application = service.Application('finger', uid=1, gid=1)
 
17
ser.setServiceParent(service.IServiceCollection(application))