Suppose we have an instant of `kendaraan`
>>> dir(kendaraan)
['SelectResultsClass', '_SO_class_Authuser', '_SO_cleanDeprecatedAttrs', '_SO_cr
eateValues', '_SO_depends', '_SO_fetchAlternateID', '_SO_finishCreate', '_SO_fin
ishedClassCreation', '_SO_foreignKey', '_SO_from_python_bahan_bakar', '_SO_from_
python_cc', '_SO_from_python_cdate', '_SO_from_python_cuID', '_SO_from_python_md
ate', '_SO_from_python_merk', '_SO_from_python_muID', '_SO_from_python_nomesin',
'_SO_from_python_nopol', '_SO_from_python_sistem', '_SO_from_python_tahun', '_S
O_from_python_tipe', '_SO_from_python_vin', '_SO_getID', '_SO_getValue', '_SO_ge
t_bahan_bakar', '_SO_get_cc', '_SO_get_cdate', '_SO_get_cu', '_SO_get_cuID', '_S
O_get_hasilujis', '_SO_get_mdate', '_SO_get_merk', '_SO_get_mu', '_SO_get_muID',
'_SO_get_nomesin', '_SO_get_nopol', '_SO_get_sistem', '_SO_get_tahun', '_SO_get
_tipe', '_SO_get_vin', '_SO_loadValue', '_SO_selectInit', '_SO_setValue', '_SO_s
et_bahan_bakar', '_SO_set_cc', '_SO_set_cdate', '_SO_set_cu', '_SO_set_cuID', '_
SO_set_mdate', '_SO_set_merk', '_SO_set_mu', '_SO_set_muID', '_SO_set_nomesin',
'_SO_set_nopol', '_SO_set_sistem', '_SO_set_tahun', '_SO_set_tipe', '_SO_set_vin
', '_SO_setupSqlmeta', '_SO_to_python_bahan_bakar', '_SO_to_python_cc', '_SO_to_
python_cdate', '_SO_to_python_cuID', '_SO_to_python_mdate', '_SO_to_python_merk'
, '_SO_to_python_muID', '_SO_to_python_nomesin', '_SO_to_python_nopol', '_SO_to_
python_sistem', '_SO_to_python_tahun', '_SO_to_python_tipe', '_SO_to_python_vin'
, '_SO_val_bahan_bakar', '_SO_val_cc', '_SO_val_cdate', '_SO_val_cuID', '_SO_val
_mdate', '_SO_val_merk', '_SO_val_muID', '_SO_val_nomesin', '_SO_val_nopol', '_S
O_val_sistem', '_SO_val_tahun', '_SO_val_tipe', '_SO_val_vin', '_SO_validatorSta
te', '_SO_writeLock', '__class__', '__classinit__', '__delattr__', '__dict__', '
__doc__', '__eq__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init_
_', '__le__', '__lt__', '__metaclass__', '__module__', '__ne__', '__new__', '__r
educe__', '__reduce_ex__', '__repr__', '__setattr__', '__sqlrepr__', '__str__',
'__weakref__', '_connection', '_create', '_findAlternateID', '_getJoinsToCreate'
, '_get_bahan_bakar', '_get_cc', '_get_cdate', '_get_cu', '_get_cuID', '_get_has
ilujis', '_get_mdate', '_get_merk', '_get_mu', '_get_muID', '_get_nomesin', '_ge
t_nopol', '_get_sistem', '_get_tahun', '_get_tipe', '_get_vin', '_inheritable',
'_init', '_notifyFinishClassCreation', '_parent', '_reprItems', '_set_bahan_baka
r', '_set_cc', '_set_cdate', '_set_cu', '_set_cuID', '_set_mdate', '_set_merk',
'_set_mu', '_set_muID', '_set_nomesin', '_set_nopol', '_set_sistem', '_set_tahun
', '_set_tipe', '_set_vin', 'bahan_bakar', 'byVin', 'cc', 'cdate', 'childName',
'clearTable', 'coerceID', 'createIndexes', 'createIndexesSQL', 'createJoinTables
', 'createJoinTablesSQL', 'createTable', 'createTableSQL', 'cu', 'cuID', 'delete
', 'deleteBy', 'deleteMany', 'destroySelf', 'dirty', 'dropJoinTables', 'dropTabl
e', 'expire', 'get', 'hasilujis', 'id', 'j', 'mdate', 'merk', 'mu', 'muID', 'nom
esin', 'nopol', 'q', 'select', 'selectBy', 'set', 'setConnection', 'sistem', 'sq
lmeta', 'sqlrepr', 'sync', 'syncUpdate', 'tableExists', 'tablesUsedImmediate', '
tahun', 'tipe', 'vin']
Then we can get dict of instance with:
>>> >>> dict((key.replace('_SO_val_',''), value) for key, value in k.__dict__.iterit
ems() if key.startswith('_SO_val_'))
and the output:
{'bahan_bakar': 'bensin', 'mdate': datetime.datetime(2009, 11, 6, 5, 10, 57), 'c
c': 3500, 'tipe': 'VELLFIRE', 'vin': 'GGH208006071', 'sistem': 'injeksi', 'cdate
': datetime.datetime(2009, 11, 6, 5, 10, 57), 'tahun': 2008, 'cuID': 1, 'merk':
'TOYOTA', 'nomesin': '', 'muID': 1, 'nopol': 'N 1 SP'}
>>>



