TACTIC Open Source
File Metadata - Printable Version

+- TACTIC Open Source (http://forum.southpawtech.com)
+-- Forum: TACTIC Open Source (http://forum.southpawtech.com/forumdisplay.php?fid=3)
+--- Forum: TACTIC Discussion (http://forum.southpawtech.com/forumdisplay.php?fid=4)
+--- Thread: File Metadata (/showthread.php?tid=18)



File Metadata - listy - 10-27-2019

Hi!
I noticed that metadata column of sthpw/file now not dict by default.
Is this bug or feature?


RE: File Metadata - Celton McGrath - 10-27-2019

Hi Listy,

The sthpw/file metadata column is of type text. At what point was it different? Do you mean that at one point it was json?

- Celton


RE: File Metadata - listy - 10-27-2019

(10-27-2019, 07:11 PM)Celton McGrath Wrote: Hi Listy,

The sthpw/file metadata column is of type text. At what point was it different? Do you mean that at one point it was json?

- Celton
So, i've been doing this file_object.set_value(name='metadata', value=json.dumps(MY_METADATA_DICT, separators=(',', ':')))
and then when i retrieved data back this column contained DICT. Without needing to json.loads.