Hi
I am trying to learn how to use mongoengine, and had a few questions to see if I understand things properly. I m not a programmer by trade, so be kind :)
1) Isn't the API reference for fields a bit inconsistent? At
http://mongoengine.org/docs/v0.4/apireference.html#fieldswhy have "db_field", "name", "required", etc for some of the fields and not the others?
2) I would like to have a field that would be stored in mongo as a list, but would really be a tuple, meaning the model (and verification) includes the information that it is always of the same length (say 3), and consists of the same fields (say (Type1Field, Type2Field, Type3Field)). Is there a way to do that easily, by inheritance from some of the other CompexBaseFields, or do I need to do it completely anew?
3) I need to have outputs in a few different language for all the different types of fields. For instance I want to have "to_html", "to_latex", etc I am thinking of doing this with multiple inheritance, similarly to the outline here:
http://pastebin.com/meMrCpSPIs this the right way? Note the question in particular at the end with MyMapField, but this might be a more generic question concerning multiple inheritance in Python. It could be good to have some easier and canonical way to do this kind of thing.
Thanks to anyone who takes time answering these!
Paul