chiark / gitweb /
rm some todos
[inn-innduct.git] / samples / nnrpd.py
1 ##  $Id: nnrpd.py 7897 2008-06-22 18:04:31Z iulius $
2 ##
3 ##  This module supplies stub Python functions corresponding to the ones
4 ##  provided by nnrpd.  It is not used by the server; it is only here so
5 ##  that you can test your filter scripts before loading.
6 ##  See the INN Python Filtering and Authentication Hooks documentation
7 ##  for more information.
8
9 from types import *
10
11 def set_auth_hook(anObject):
12     if type(anObject) == InstanceType:
13         print "** set_auth_hook for " + repr(anObject)
14     else:
15         print "** <Your object is not a class instance.>"
16
17 def syslog(level, message):
18     print "-- syslog level: %s message: %s" % (level, message)