Login | Register
My pages Projects Community openCollabNet

Discussions > commits > svn commit: r306 - trunk/current/db/profile.py

Project highlights: Stable Version: 1.6.1, Development Version: 1.7.6

current
Discussion topic

Back to topic list

svn commit: r306 - trunk/current/db/profile.py

Reply

Author jjneely
Full name Jack Neely
Date 2006-10-29 19:53:44 PST
Message Author: jjneely
Date: 2006-10-29 20:53:43-0700
New Revision: 306

Modified:
   trunk/current/db/profile.py

Log:
This corrects a weird error SQLite was giving me about converting variables.


Modified: trunk/current/db/profile.py
Url: http://current.tigri​s.org/source/browse/​current/trunk/curren​t/db/profile.py?view​=diff&rev=306​&p1=trunk/current/d​b/profile.py&p2=​trunk/current/db/pro​file.py&r1=305​&r2=306
====================​====================​====================​==================
--- trunk/current/db/profile.py (original)
+++ trunk/current/db/profile.py 2006-10-29 20:53:43-0700
@@ -222,11 +222,10 @@
             q = q + " where profile_id = %s"
 
         if pid == None:
- tup = None
+ self.cursor.execute(q)
         else:
- tup = (pid,)
+ self.cursor.execute(q, (pid,))
 
- self.cursor.execute(q, tup)
         r = resultSet(self.cursor)
         ret = r.dump()

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

svn commit: r306 - trunk/current/db/profile.py jjneely Jack Neely 2006-10-29 19:53:44 PST
Messages per page: