plone / plone.supermodel

Provides XML import and export for schema interfaces based on zope.schema fields
5 stars 8 forks source link

Implement serialization support for i18n message #8

Closed datakurre closed 9 years ago

datakurre commented 9 years ago

For discussion. Replaces previous i18n parser implementation so, do not merge yet.

See also: https://github.com/plone/plone.app.dexterity/issues/132

@davisagli

I couldn't figure out a such nice way to implement i18n serialization support, which would have been similar to the current parser implementation, so I ended up implementing the support as a field metadata handler (plus a few lines to add the default domain into model root tag).

What do you think? Of course, I could also restore the original parser implementation so that these could coexist.

datakurre commented 9 years ago

Actually, just when I said that, I already knew, how to implement this in the way of the parsing solution.

If this new pull https://github.com/plone/plone.supermodel/pull/9 is ok, this pull can be closed and branch delete.