ancho85 / pylint-playero-plugin

A plugin for pylint to work with Playero ERP
GNU General Public License v2.0
0 stars 0 forks source link

build and parse exec statements #13

Open ancho85 opened 10 years ago

ancho85 commented 10 years ago

try to parse and build import statements:

exec("from %s import %s as theRecord" % (rows.Type, rows.Type))
exec("from %sWindow import %sWindow as theWindow" % (rows.Type, rows.Type))
ther = theRecord.bring(rows.SerNr)
if ther:
    window = theWindow()
    window.setRecord(ther)
    window.open() 

Also assignments statements:

exec("curRowValue = rec.%s[rownr]" % fieldname)
exec("rowObjList = rec.%s" % fieldname)