def _setPgsqlDictCursor(self): import psycopg conn = psycopg.connect("host=%s dbname=%s user=%s password=%s" % \ self.getConfig('host'), self.getConfig('user'), \ self.getConfig('db'), self.getConfig('pass')) conn.autocommit(1) self._cursor = conn.cursor()
Paul - if you could tell me where to put some "print"s or something to make it print to the screen when it gets thru certain sections of the dbmail.py or autoreplier.py? then I could maybe see why a reply isn't coming out of it. Well first let me look at permissions on the py files i guess. When you cat pipe a message to the autoreplier.py, the cursor just returns as if everything went normally. I haven't found relevant logs yet. Thank you, - April Lorenzen http://ors.blogs4change.org/ http://adl.blogware.com On 9/2/05, April Lorenzen <[EMAIL PROTECTED]> wrote: > Paul - My postgresql / py guy hooked up autoreplier.py to pg today but > so far it does not autoreply. > > I am wondering if you can tell me how to test it from the command line > or what log file I might observe for info on the output or errors when > the mail is piped to > > |/usr/local/bin/autoreplier.py -u [EMAIL PROTECTED] -a [EMAIL PROTECTED] > > (my userids are full email addresses) > > Thank you, > > April Lorenzen > http://ors.blogs4change.org > http://adl.blogware.com >