changed tupels to dicts from the edit api
Compare changes
+ 115
− 32
'featured': ('featured', 'id', ['title', 'text', 'internal', 'visible', 'deleted', 'param', 'param2', 'order'],
@@ -41,12 +125,11 @@ def edit(prefix='', ignore=[]):
@@ -41,12 +125,11 @@ def edit(prefix='', ignore=[]):
modify('INSERT INTO changelog (`table`,id_value, id_key, field, value_new, value_old, `when`, who, executed) VALUES (?,?,?,?,?,(SELECT `%s` FROM %s WHERE %s = ?),?,?,1)'%(column, tabs[table][0], tabs[table][1]),
modify('UPDATE %s SET `%s` = ?, time_updated = ? WHERE `%s` = ?'%(tabs[table][0], column, tabs[table][1]), val, datetime.now(), id)
@@ -55,12 +138,12 @@ def edit(prefix='', ignore=[]):
@@ -55,12 +138,12 @@ def edit(prefix='', ignore=[]):
defaults = {'created_by': session['user']['dbid'], 'time_created': datetime.now(), 'time_updated': datetime.now()}
@@ -69,11 +152,11 @@ def create(table):
@@ -69,11 +152,11 @@ def create(table):