INN commit: trunk/samples (INN.py nnrpd.py)

INN Commit Russ_Allbery at isc.org
Sun Jun 22 18:03:30 UTC 2008


    Date: Sunday, June 22, 2008 @ 11:03:30
  Author: iulius
Revision: 7896

Update stub Python scripts.
Fix a compilation problem with INN.py (undefined variable)
and add missing methods.

Modified:
  trunk/samples/INN.py
  trunk/samples/nnrpd.py

----------+
 INN.py   |   26 ++++++++++++++++++--------
 nnrpd.py |   10 +++++++---
 2 files changed, 25 insertions(+), 11 deletions(-)

Modified: INN.py
===================================================================
--- INN.py	2008-06-22 17:54:10 UTC (rev 7895)
+++ INN.py	2008-06-22 18:03:30 UTC (rev 7896)
@@ -1,6 +1,10 @@
-# This module supplies stub Python functions corresponding to the ones
-# provided by innd.  It is not used by the server; it is only here so
-# that you can test your filter scripts before loading.
+##  $Id$
+##
+##  This module supplies stub Python functions corresponding to the ones
+##  provided by innd.  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 *
 
@@ -10,20 +14,26 @@
     else:
         print "** <Your object is not a class instance.>"
 
+def addhist(messageid):
+    print "** addhist Message-ID: " + messageid
+
 def havehist(messageid):
-    print "** havehist message id: " + messageid
+    print "** havehist Message-ID: " + messageid
 
 def cancel(messageid):
-    print "** cancel message id: " + messageid
+    print "** cancel Message-ID: " + messageid
 
 def newsgroup(groupname):
-    print "** newsgroup: " + messageid
+    print "** newsgroup: " + groupname
 
 def head(messageid):
-    print "** head  message id: " + messageid
+    print "** head Message-ID: " + messageid
 
 def article(messageid):
-    print "** article message id: " + messageid
+    print "** article Message-ID: " + messageid
 
+def hashstring(mystring):
+    print "** hash: " + mystring
+
 def syslog(level, message):
     print "-- syslog level: %s message: %s" % (level, message)

Modified: nnrpd.py
===================================================================
--- nnrpd.py	2008-06-22 17:54:10 UTC (rev 7895)
+++ nnrpd.py	2008-06-22 18:03:30 UTC (rev 7896)
@@ -1,6 +1,10 @@
-# 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 auth and filter scripts before loading.
+##  $Id$
+##
+##  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 *
 



More information about the inn-committers mailing list