Re: execute python code from db

2005-01-26 Thread Nick Coghlan
robert wrote: Hello, Anybody knows if it's possible to execute python code from an db. db=MySQLdb.connect(host="localhost",user="r",passwd="j",db="v") c=db.cursor() c.execute("""SELECT * FROM table WHERE id = %s""", (id,)) for python_code in c.fetchall(): execute (python_code) Maybe

Re: execute python code from db

2005-01-26 Thread Damjan
> for python_code in c.fetchall(): > execute (python_code) > > Maybe feed python with stdin??. eval -- damjan -- http://mail.python.org/mailman/listinfo/python-list

Re: execute python code from db

2005-01-26 Thread Laszlo Zsolt Nagy
robert wrote: Hello, Anybody knows if it's possible to execute python code from an db. db=MySQLdb.connect(host="localhost",user="r",passwd="j",db="v") c=db.cursor() c.execute("""SELECT * FROM table WHERE id = %s""", (id,)) for python_code in c.fetchall(): execute (python_code) Maybe f