Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

pypm install gocept.mochikit

How to install gocept.mochikit

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install gocept.mochikit
 Python 2.7Python 3.2Python 3.3
Windows (32-bit) Available View build log
Windows (64-bit) Available View build log
Mac OS X (10.5+) Available View build log
Linux (32-bit) Available View build log
Linux (64-bit) Available View build log
ZPL 2.1
Depended by
Lastest release
version on Jan 5th, 2011

gocept.mochikit integrates MochiKit (http://mochikit.com) into Zope 2 and
Zope 3. Send questions to Christian Zagrodnick .

Usage (Zope 3)

To use gocept.mochikit you need to add the following to your package
configuration (ZCML)::

This provides several resource libraries using the `zc.resourcelibrary`
package. In a page template you use::

This will automatically load the main MochiKit file in its packed variant.
There are several additional MochiKit files which are not included in the
libarary above:

* mochikit.DragAndDrop
* mochikit.Controls
* mochikit.MockDOM
* mochikit.Selector
* mochikit.Test

You use those like this::

Unpacked Variant

If you need to debug it's often easier to use the plain and unpacked MochiKit
variant. To use you load the package like this::

Usage (Zope 2)

To use gocept.mochikit in Zope 2 you need to add the following to your package
configuration (ZCML)::

This provides the packed version of MochiKit, so in your HTML template you
need to include the following::

======= (2009-04-24)

* Added configuration (zope2.zcml) for Zope 2 compatibility. (2009-04-20)

* Lightbox: only set "Loading..." message when the lightbox is empty.

* Made unregistering of event handlers more reliable in lightbox.

* Allow to not use ids for the lightbox. (2009-04-06)

* Sending a signal before the lightbox closes (before-close).

1.4.2 (2008-12-10)

* Updated to MochiKit 1.4.2

1.3.2 (2008-02-13)

* Added styles (CSS) for lightbox

* Updated to Mochikit r1323

1.3.1 (2007-12-07)

* Created a viewlet manager to allow easy dynamic javascript injection

1.3 (2007-11-26)

* Updated to Mochikit r1320

* Added a lightbox (probably doesn't work in IE)


* Added an approach for easier inheritance from

* Update to Mochikit r1315

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.