Skip to content

Commit 04af3c0

Browse files
committed
Added comments
1 parent 844b36b commit 04af3c0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

kns.py

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
#####################################################
2+
# KNS-Python
3+
#
4+
# A library for building Python endpoints to the
5+
# Kinetic Event Architecture system. Provides a
6+
# method for raising events and handling directives.
7+
#####################################################
8+
19
import urllib, urllib2, json, string
210

311
server = "http://cs.kobj.net/blue/"
@@ -18,6 +26,8 @@ def raise_event(domain, event, ruleset, params, callback, dev=False):
1826
handle_directives(response, callback)
1927
return response
2028

29+
# Iterates over the directives returned, calling the callback function
30+
# for each and passing along the options accompanying that directive
2131
def handle_directives(response, callback):
2232
# Call the callback for each directive
2333
for directive in response["directives"]:

0 commit comments

Comments
 (0)