Skip to main content

Configuration and code reload without Zope server restarts.

Project description

plone.reload

Overview

Configuration and code reload without server restarts.

This code is heavily based on the Products.RefreshNG product found at http://launchpad.net/refreshng.

The original xreload.py written by Guido van Rossum can be found at http://svn.python.org/projects/sandbox/trunk/xreload/xreload.py

It has some enhancements, but those seem to break more code than do any good in a Zope environment with patched in meta classes and monkey patches all over the place.

Usage

While being logged into the ZMI as a Manager user goto /@@zcml_reload on your Zope application root via a browser. If your Zope is configured to listen on port 8080 on localhost this is:

http://localhost:8080/@@zcml_reload

You should see a message:

Global ZCML reloaded.

Subsequent reloads of this page will reload all global ZCML from all packages and products each time.

If you get a Resource not found error, make sure you have loaded this packages configure.zcml file and you really use the ZODB application root and not a Plone site as the base url.

To reload Python code from the file system goto /@@code_reload. You will see a page with the ‘Code reloaded:’ message and a listing of all the modules which were reloaded.

Changelog

0.5 (2008-05-24)

0.4 (2008-03-01)

  • Made the code reload available as its own @@code_reload view. [hannosch]

  • Integrated xreload.py from RefreshNG and added a first working version of a general manual code reload feature. [hannosch]

0.3 (2008-02-21)

  • Fixed caching issues by invalidating all ZODB caches. If you have local site managers spread across multiple FileStorages this might still not work as expected. [hannosch]

  • Added cleanup for CMFCore and PAS. [hannosch]

0.2 (2008-01-25)

  • Added compatibility with Zope 2.10 / Plone 3.0. [hannosch]

0.1 (2008-01-25)

  • Initial implementation based heavily on Products.RefreshNG. [hannosch]

  • Initial package structure. [zopeskel]

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

plone.reload-0.6.tar.gz (11.9 kB view details)

Uploaded Source

File details

Details for the file plone.reload-0.6.tar.gz.

File metadata

  • Download URL: plone.reload-0.6.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for plone.reload-0.6.tar.gz
Algorithm Hash digest
SHA256 d9b434530e89c75eaeeadaf78ce169ce29f0005ac40284eaa0886066962042a7
MD5 7ea45120c254e260ef8531ea8d6d6249
BLAKE2b-256 3d1cb08ebef140d84f83ef2d1faa2f98f679b45e439145956aa10ea35ad97a95

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page