Skip to main content

Json exporter base for Plone

Project description

https://github.com/RedTurtle/redturtle.exporter.base/workflows/Tests/badge.svg

Tool that exports Plone contents for a major migration.

This should be used with redturtle.importer.base/volto packages.

Features

  • Easily to include in your old site (just add to the buildout)

  • No dependencies to other tools

  • Easily to extend (see below)

Custom exporters

This base product exports standard content-types (also Archetype-based).

If your site has some additional content-types to be exported and need to structure output in a more specific way, you can create a more specific package (for example redturtle.importer.project_name) where you can add specific exporters like this:

<browser:page
  for="my.project.interfaces.IMyCustomType"
  name="get_item"
  class=".jsonify.MyCustomTypeGetItem"
  permission="zope2.ViewManagementScreens"
  />

where GetItem class is:

from redturtle.exporter.base.browser.jsonify import GetItem as BaseGetter
class MyCustomTypeGetItem(GetItem):

    def __call__(self):

        context_dict = super(MyCustomTypeGetItem, self).__call__()
        ... do something with context_dict ...

        return get_json_object(self, context_dict)

Export users and groups

There are two additional views that can be called (only Site Managers has access to these views) to export the list of users and groups:

  • /export_users

  • /export_groups

These views returns a json with all the informations.

Installation

Install redturtle.exporter.base by adding it to your buildout:

[buildout]

...

eggs =
    redturtle.exporter.base

and then running bin/buildout

Contribute

Credits

This product has been developed with some help from

kitconcept

License

The project is licensed under the GPLv2.

Contributors

Changelog

1.1.4 (2020-06-23)

  • Fix text encoding. [cekk]

1.1.3 (2020-06-23)

  • Fix dates set in example contents. [cekk]

1.1.2 (2020-06-23)

  • Set effective date to example published contents. [cekk]

1.1.1 (2020-04-09)

  • Add more properties to users export. [cekk]

1.1.0 (2020-04-07)

  • Add export users and groups views. [cekk]

1.0.2 (2020-02-18)

  • Several improvements in export contents. [cekk]

1.0.1 (2020-02-07)

  • Add install profile for create example contents for import tests. [cekk]

1.0.0 (2020-02-05)

  • Heavy refactoring to be more DX compatible [eikichi][cekk]

  • Add tests [cekk]

0.1.2 (2019-09-18)

  • Fixed dependency in function call. [daniele]

  • Added option for return object in order

  • Fixed mapping for collection object [eikichi18]

  • using id when title is missing for Link objects [daniele]

0.1.1 (2019-01-16)

  • Removed redturtle.portlets.inspector dependency. [daniele]

0.1.0 (2018-11-23)

  • Added parer extra field info [daniele]

  • Initial release. [cekk]

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

redturtle.exporter.base-1.1.4.tar.gz (68.5 kB view details)

Uploaded Source

File details

Details for the file redturtle.exporter.base-1.1.4.tar.gz.

File metadata

  • Download URL: redturtle.exporter.base-1.1.4.tar.gz
  • Upload date:
  • Size: 68.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/2.7.17

File hashes

Hashes for redturtle.exporter.base-1.1.4.tar.gz
Algorithm Hash digest
SHA256 d418b8c2378fcdefedd1935ca1271a8dd1bb0253fc9e74c28f21cbcb8a472735
MD5 5dd425753599cc7859ccf8fa77abd038
BLAKE2b-256 0b1723d56a5478f39dbbaa920d55df08c672d571c1c07dc7cbad47c6791e4a8a

See more details on using hashes here.

Supported by

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