~justin-fathomdb/nova/justinsb-openstack-api-volumes

« back to all changes in this revision

Viewing changes to vendor/Twisted-10.0.0/doc/core/howto/tutorial/listings/finger/finger/tap.py

  • 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
# finger/tap.py
 
2
from twisted.application import internet, service
 
3
from twisted.internet import interfaces
 
4
from twisted.python import usage
 
5
import finger
 
6
 
 
7
class Options(usage.Options):
 
8
    
 
9
    optParameters = [
 
10
        ['file', 'f', '/etc/users'],
 
11
        ['templates', 't', '/usr/share/finger/templates'],
 
12
        ['ircnick', 'n', 'fingerbot'],
 
13
        ['ircserver', None, 'irc.freenode.net'],
 
14
        ['pbport', 'p', 8889],
 
15
        ]
 
16
 
 
17
    optFlags = [['ssl', 's']]
 
18
 
 
19
def makeService(config):
 
20
    return finger.makeService(config)