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)
Change history
**************

Changelog
=========

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

* Initial release
* Basic import features

Detailed Documentation
**********************

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.



Contributors
************

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

Download
********

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.1dev-r28.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

fez.atcsv-0.1dev_r28-py2.4.egg (18.5 kB view details)

Uploaded Source

File details

Details for the file fez.atcsv-0.1dev-r28.tar.gz.

File metadata

File hashes

Hashes for fez.atcsv-0.1dev-r28.tar.gz
Algorithm Hash digest
SHA256 a55d8323185b4a57b508f59f6259f02c447947a2a04a8958d17fad8b766f3bd4
MD5 8d436cbc7918dbb54e17eb6058236191
BLAKE2b-256 ac970e25507847beb7b97d7dafda00a36b1cd81cf7ed3166adf2c7624a95fa72

See more details on using hashes here.

File details

Details for the file fez.atcsv-0.1dev_r28-py2.4.egg.

File metadata

File hashes

Hashes for fez.atcsv-0.1dev_r28-py2.4.egg
Algorithm Hash digest
SHA256 c0f2e944291918fcb2c889b7bb8711e6c59fbaf97cbdfa2344e6baaea2f29fe7
MD5 1c2eb58b545a2030110538df27e9e30a
BLAKE2b-256 fd6a1e3bfc346667f7811c547e75afcf4b476f93ea3bc8a0e07b370299fd4ee5

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