add pynma and postgres
add pynma and postgres

file:b/.gitmodules (new)
--- /dev/null
+++ b/.gitmodules
@@ -1,1 +1,4 @@
+[submodule "pynma"]
+	path = pynma
+	url = git://github.com/uskr/pynma.git
 

directory:b/pynma (new)
--- /dev/null
+++ b/pynma

file:a/scannr.py -> file:b/scannr.py
--- a/scannr.py
+++ b/scannr.py
@@ -4,10 +4,19 @@
 import threading
 from pydispatch import dispatcher
 import wave
+import psycopg2
+import sys,os
+
+
+sys.path.insert(0, os.path.join(os.path.dirname(__file__) or '.', 'pynma'))
+import pynma
 
 filename = "demo.wav"
+nma = pynma.PyNMA( "apikey(s)", "developerkey")    
+conn = psycopg2.connect("dbname=test user=postgres")
 
 def worker(filename):
+
     """thread worker function
     http://www.doughellmann.com/PyMOTW/threading/
 
@@ -15,7 +24,13 @@
 
 http://stackoverflow.com/questions/1092531/event-system-in-python """
     print 'Worker for '+filename
-    
+    """nma.push(application, event, description, (opt) url,)"""
+    """http://initd.org/psycopg/docs/usage.html"""
+    #cur = conn.cursor()
+    #cur.execute("INSERT INTO test (num, data) VALUES (%s, %s)",(100, "abc'def"))
+    #conn.commit()
+    #cur.close()
+
     return
 
 def filenameMaker():