##  $Id: nnrpd.py 7897 2008-06-22 18:04:31Z iulius $
##
##  This module supplies stub Python functions corresponding to the ones
##  provided by nnrpd.  It is not used by the server; it is only here so
##  that you can test your filter scripts before loading.
##  See the INN Python Filtering and Authentication Hooks documentation
##  for more information.

from types import *

def set_auth_hook(anObject):
    if type(anObject) == InstanceType:
        print "** set_auth_hook for " + repr(anObject)
    else:
        print "** <Your object is not a class instance.>"

def syslog(level, message):
    print "-- syslog level: %s message: %s" % (level, message)
