This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Introduction

Extension package for betahaus.openmember that exports searches and full database to CVS. It is also has support for registering own exporters.

Extensions

It is possible to extend with custom exporters. You need one Adapter and a browser view

The adapter is created by making a interface that inherits from the betahaus.exports.openmember.interfaces.IExporter interface.

>>> from betahaus.exports.openmember.interfaces import IExporter
>>> class IExportCustomAdapter(IExporter):
...    """ Interface for registering custom exporter"""

With code that implements the adapter interface.

>>> from betahaus.exports.openmember.browser.export import make_url
>>> class ExportCustomAdapter(object):
...    """Another exporter"""
...    implements(IExportCustomAdapter)
...    adapts(IExportable)
...
...    def __init__(self, context):
...        self.context = context
...
...    def url(self):
...        return '%s/custom_exporter%s' % (self.context.portal_url(), make_url(self.context.request))
...
...    def Title(self):
...        return _('Custom Export from table')

This then needs to be registered as a exporter by calling:

>>> registerExporter(IExportContactsAdapter)

We also needs some zcml to register the adapter, since everything is defined in the adapter the only thing we need is:

<adapter factory=”.export.ExportCustomAdapter” />

Assuming that the file is called export.py

Now we only need a browser view to handle the exporting

>>> from betahaus.exports.openmember.browser.export import ExportBase
>>> class ExportCustom(ExportBase):
...    """Download as csv"""
...
... def __call__(self):
...     # here you can do the changes that you need to do for your custom exporter.

Look at ExportBase for more information about what functions are available.

Changelog

0.1b2 (2010-04-16)

  • Fixed bug with full database csv export. [mlundwall]
  • Updated the loading of exporters from the action. [mlundwall]

0.1b (2010-02-10)

  • Initial release
Release History

Release History

0.1b2

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1b

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
betahaus.exports.openmember-0.1b2.zip (27.6 kB) Copy SHA256 Checksum SHA256 Source Apr 16, 2010

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting