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

Routines and CLI to facilitate injection/extraction of OpenOffice.org macros.

Works by connecting to a live instance of OOo.

It does not appear to be possible to use such a system to access Python macros in an OpenOffice document. This module only deals with Basic macros.

There has also been some effort made to “Pythonify” the uno interface, for example, by adding sequence and mapping proxy classes for some of the uno container interfaces.

Dependencies

You will need to have the py-uno bridge set up.

On Debian-ish systems like Ubuntu and Linux Mint, this can generally be installed via

$ sudo aptitude install python-uno

Installation

Installation can be done via PyPI, or by fetching and installing the source code from the github repo.

Environment

The uno Python module will normally be imported without problems on systems which have the python-uno module properly installed.

If the uno Python module cannot be imported, ooo-macro-exchange will try to add it to the path.

If the environment variable PY_UNO_PATH is defined, ooo-macro-exchange will add it to the python path.

This can also be accomplished by setting PYTHONPATH.

If PY_UNO_PATH is unset, ooo-macro-exchange will try the path /usr/lib/openoffice/basis3.2/program/.

Usage

Basic functions are

  • pull: output a module’s code or save it to a file
  • push: replace a module’s code with lines from a file or stdin
  • invoke: run a macro.

The oomax script provides command-line access to these actions. E.G.:

$ oomax pull 'Document 1' Standard.Module1
sub Main()
    ' Content of main macro
end sub

sub AnotherMacro()
    ' Content of some other macro
end sub

Note that oomax push will not save the document unless the -s option is passed. Instead, it will mark both the document and its libraries as modified. This will cause the “Save” icon on the main document toolbar to activate.

Additional options can be discovered by running oomax -h.

pull, push, and invoke are also available as methods of the class oomax.Exchange.

Relationship to other modules

The structure of the code is pretty similar to that used by openoffice-python. There are vague plans to integrate this module’s functionality with it.

The code in this module was originally derived from this forum post.

License

ooo-macro-exchange is licensed under the FreeBSD License. See the file COPYING for details.

Release History

Release History

0.2.2

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.2.1

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.2

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
ooo-macro-exchange-0.2.2.tar.gz (10.0 kB) Copy SHA256 Checksum SHA256 Source Oct 25, 2010

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development 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