Skip to main content

Simple AT CSV processing

Project description

Introduction
============

This is alpha software, and not considered suitable for production use. In
particular, there are few tests. Caveat emptor!

This package was sponsored by `Jon Hadley <http://www.jon-hadley.com/>`_.
Changelog
=========

0.2 - UI and architecture
-------------------------

* Change to z3c.form-based forms
* Use CA to look up importer
* Allow specification of delimiter

0.1 - Alpha
-----------

* Initial release
* Basic import features

Introduction
============

fez.atcsv is a lightweight product for importing CSV files into Plone sites.
Unlike other implementations, it leaves no persistent data in the database
aside from imported content.

To use, install the product onto your pythonpath using easy_install or pip:

easy_install fez.atcsv

or

pip install fez.atcsv


You should then add 'fez.atcsv' to your eggs = and zcml = sections in your buildout.
Restart Zope, and you should see AT CSV in your quickinstaller page. Install it,
and you should see a 'CSV Import' tab on all folder-like content objects.

The CSV you upload *must* have a first line of titles, and these titles *must* correspond
to the Archetype field names of the type you're importing. So, if you had an Archtype content
type that had a schema like this:

atapi.TextField(
'Title',
searchable = 1,
required = 0,
storage = atapi.AnnotationStorage(),
widget = atapi.StringWidget(label='Title'),
),

atapi.TextField(
'Colour',
searchable = 1,
required = 0,
storage = atapi.AnnotationStorage(),
widget = atapi.StringWidget(label='Colour'),
),

Then a valid CSV might look like this:

"Title","Colour","Size"
"Apple", "Green", "small"
"Banana", "Red", "Medium"

Note that in this case, the 'size' column won't be imported as it's not in the AT schema.

Further, notice that no validation is run on the imported data. It is assumed that
the data will be clean. (Validation may be added at a later point.)

Be aware that large file uploads may take some time.



Dan Fairs (Fez Consulting Ltd.), dan@fezconsulting.com, Author

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

fez.atcsv-0.2.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

fez.atcsv-0.2-py2.4.egg (20.5 kB view details)

Uploaded Source

File details

Details for the file fez.atcsv-0.2.tar.gz.

File metadata

  • Download URL: fez.atcsv-0.2.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for fez.atcsv-0.2.tar.gz
Algorithm Hash digest
SHA256 755579cd506750056a1c63e184ac901f222012255f3faec86fedab247d0e5b01
MD5 0cb96e70f2e95196f5585a31348a1021
BLAKE2b-256 62bee82400280f74c48264da1f60ea2edde6270311758198e0f258489df45bb6

See more details on using hashes here.

File details

Details for the file fez.atcsv-0.2-py2.4.egg.

File metadata

  • Download URL: fez.atcsv-0.2-py2.4.egg
  • Upload date:
  • Size: 20.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for fez.atcsv-0.2-py2.4.egg
Algorithm Hash digest
SHA256 9f83a011abc120d8d742ab93a373e24c2450262ac4f1c49a5027084ef828a75a
MD5 e2022668e6f631344b9539cb9fe151a2
BLAKE2b-256 e1c430149321c0a2e6744da08c870a62d0022d7bcaa2416eeb1379a4a366db7c

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