Skip to main content

Configurable Marshallers for Archetypes

Project description

Overview

People coming to Plone from other CMS or from no CMS at all often want to be able to bulk import existing content. There are also cases of sites which produce a high volume of content that needs to be published constantly.

The easiest way to achieve the goal of allowing import/export of structured content currently is through introspectable schemas. Archetypes provides this right now. However, Archetypes expects a schema to have only one marshaller component, and the default ones are not able to marshall all the facets of a complex piece of content by themselves.

The Marshall product provides the missing pieces of this complicated puzzle by giving you:

  • A ControlledMarshaller implementation, which resorts on a tool to decide which marshaller implementation should be used for marshalling a given piece of content or demarshalling an uploaded file.

  • A marshaller_tool which sits on the root of your CMF/Plone site and that allows you to do fine grained control of marshallers.

  • Simple export functionality to dump the Archetypes-based objects of your CMF/Plone site as a hierarchy of files in .zip format.

2.4.1 (2020-04-23)

Bug fixes:

  • Minor packaging updates. (#1)

2.4.0 (2018-11-05)

New features:

  • Switch to new TestCase using AT after PloneTestcase is now DX. [pbauer] (#7)

2.3 (2018-02-05)

New features:

  • Replaced Extensions/Install.py with GenericSetup profile. [maurits]

Bug fixes:

  • Prepare for Python 2 / 3 compatibility [pbauer]

  • Fix test isolation issue due to incomplete teardown. [pbauer]

2.2.1 (2016-08-18)

Fixes:

  • Use zope.interface decorator. [gforcada]

2.2.0 (2015-09-27)

  • Removed libxml2 based marshalling [tomgross]

2.1.4 (2015-02-11)

  • Ported tests to plone.app.testing [tomgross]

2.1.3 (2014-04-16)

  • Remove duplicate code which is already available from Products.Archetypes and add deprecation warnings about it. [tomgross]

2.1.2 (2013-01-13)

  • Unicode export text is not supported since GS 1.7.0. [rossp]

2.1.1 - 2011-07-20

  • Fixed typo which prevents the deserializing of multiValued fields. [matth]

2.1 - 2011-01-03

  • Use plone.uuid to look up content UUIDs. [toutpt, davisagli]

2.0 - 2010-07-18

  • No changes.

2.0b2 - 2010-04-20

  • atmxl: Export / import mimetype of Archetypes IObjectFields so the right content type will be set in Plone 4. Ported from quintagroup.transmogrifier. [csenger]

  • atxml: Encode/decode strings with control characters that breaks common xml parsers in base64. This can be turned off by calling the marshaller with ‘encode_with_ctrlchars=False’. [csenger]

  • Make sure DateTime fields are constructed properly in atns.py by explicitly constructing a DateTime instance for input values that would result in a DateTime value of None otherwise. [tomster]

  • Deprecationfix: Use DateTime.ISO8601() instead of DateTime.ISO [tomster]

2.0b1 - 2009-12-27

  • Removed BBB code for guess_content_type and fixed package dependencies. [hannosch]

2.0a1 - 2009-11-13

  • Replaced a simple logging call with the standard logging module. [hannosch]

  • Changed the config.py check for ElementTree to accept xml.etree. [hannosch]

  • Get tests to work with xml.etree and Plone trunk. We have to use the ATCT test cases as a base to get the expected content types. [hannosch]

  • Downgrade warning about missing libxml2-python to debug level. [hannosch]

  • Avoid a test dependency on quick installer. [hannosch]

  • Updated package metadata and cleaned up a bit. [hannosch]

  • Declare package dependencies and fixed deprecation warnings for use of Globals. [hannosch]

  • Made test runs that require libxml2 dependent on the availability of it. [hannosch]

  • Made the dependency on elementree conditional on the Python version. For Python 2.5 and later, we use the xml.etree modules. [hannosch]

  • Purged old Zope 2 Interface interfaces for Zope 2.12 compatibility. [elro]

1.2.2 - unreleased

1.2.1 - 2009-05-29

  • Register atxml and namespaces even if libxml2 isn’t present, but test for elementtree. [csenger]

1.2.0 - 2008-09-30

  • Intial egg release.

1.0.0 - 2007-11-07

  • Made demarshall of SchemaAttributes more verbose. Now it raises its own Exception with information on which attribute and value it fails. [jensens]

  • Demote libxml2-python missing log message from “warning” to “info”. This warning has been a common source of confusion for new users trying to track down real errors. [smcmahon]

1.0.0-b1 - 2007-04-28

  • In the ATNS marshaller, preserve the field order by not using set. [nouri]

1.0.0-a1 - 2006-10-25

  • Fixed some deprecation warnings for guess_content_type. [hannosch]

  • Updated a test for generated XML export format. [hannosch]

  • Initial version, see README.txt for details. [lots of people]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Products.Marshall-2.4.1.tar.gz (101.7 kB view details)

Uploaded Source

Built Distribution

Products.Marshall-2.4.1-py2.py3-none-any.whl (117.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file Products.Marshall-2.4.1.tar.gz.

File metadata

  • Download URL: Products.Marshall-2.4.1.tar.gz
  • Upload date:
  • Size: 101.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/2.7.17

File hashes

Hashes for Products.Marshall-2.4.1.tar.gz
Algorithm Hash digest
SHA256 cf1c0901f432288af7e2a9b86c83601b7dc6686cf5bdd421013dc7893ec691e4
MD5 aa43948c67a83ae1d37edd60c7b5be39
BLAKE2b-256 f127bec5f89ac460450fd2c1b096fd2b450594d13f19056f1802b0ba2fe78243

See more details on using hashes here.

File details

Details for the file Products.Marshall-2.4.1-py2.py3-none-any.whl.

File metadata

  • Download URL: Products.Marshall-2.4.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/2.7.17

File hashes

Hashes for Products.Marshall-2.4.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2d5383e8e9100791dac454299e579e582b9b73f66bd76ca70a83acbd3d77de08
MD5 a9d01eb0849c98c036989b85b46d45b9
BLAKE2b-256 0993db83d1891ec996ca6558b1bf57bf8cec28a3efabd40eaf244425354e3632

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page