Fact
¶
-
class
mnemosyne.libmnemosyne.fact.
Fact
(data, id=None)¶ Basic unit of information from which several cards can be derived.
The fields are stored in a dictionary called ‘data’, and can be get and set using the standard dictionary syntax.
‘id’ is used to identify this object to the external world (logs, xml files, sync, …), whereas ‘_id’ is an internal id that could be different and that can be used by the database for efficiency reasons.
The keys in data should not contain characters like <, >, &, …, as they are used as unescaped tag names during sync.
When making new card types, it is best to reuse the keys below as much as possible, to facilitate conversion between card types:
f front b back f foreign word p_1 pronunciation m_1 meaning -
update
(new_dict)¶
-