-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
as mentioned in an earlier I was working on several encoding and webdav
issues related to the Zope 3 ZPT integration in Zope 2.10. I backported
the changes to the 2.10 branch.
The changes include an in-place migration of all ZopePageTemplate instances
to unicode (through a custom __setstate__() implemenetation). The migration
code tries to sniff the encoding (it knows about ISO-8859-15 and UTF-8). A
custom "preferred" encoding can be specified through the environment
variable $ZPT_PREFERRED_ENCODING.
I know that this migration is a big hammer (for a minor release) however I
have not found another solution to deal with the outstanding issues in a
reasonable and sane way. Therefore this migration must be tested. I am
thinking about a beta release for 2.10.2 in order to get the stuff tested
(I am also aware of the fact that most people don't test betas :-))
Thoughts? Objections?
Andreas
- --
ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany
Web: www.zopyx.com - Email: info(a)zopyx.com - Phone +49 - 7071 - 793376
E-Publishing, Python, Zope & Plone development, Consulting
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (Darwin)
iD8DBQFFk81+CJIWIbr9KYwRAhF9AKCTgzufb/v5VUBxQvHNbL/1GcfcfACdG9Wo
Ti+S/skHE79SXJfnjjI8gAM=
=QKf4
-----END PGP SIGNATURE-----
Yesterday I started working on some updates to zdaemon. zdaemon is pretty
cool. It is a Unix-only tool that:
- Turns an arbitrary program into a fairly well-behaved daemon
- Provides management of an applications output as a log file.
- Provides start, stop and restart commands for starting or stopping
applications.
- Provides a status command for finding out if an app is running.
- Provides a kill command for sending an app a signal (e.g. for
log rotation).
- Automatically restarts applications that exit abnormally, with a
fairly reasonable approach for limiting restart attempts in case
something is failing on startup.
- Provides a number of useful configuration settings that can
be managed using a clean (ZConfig-based) log file.
It is written in Python, but it can control any program. We're using
it to control spread, which is a C program. spread comes with it's
own Red Hat startup script, but spread fails to detach from the
controlling terminal. zdaemon makes it behave properly and provides
a startup script that will work on any Unix-like system.
It has 2 major disadvantages:
- It is ours. :) We are bearing the burden of maintaining it.
This is offset by the fact that it hasn't required much maintenance.
- It is largely undocumented. This makes it much harder to use than it
needs to be. It also makes it under appreciated. I made a start at
fixing this yesterday:
http://svn.zope.org/zdaemon/trunk/src/zdaemon/README.txt?view=auto
It isn't very hard to use, so documenting it isn't really all that hard.
I wonder if we should be using some other daemon manager. Arguably, there's
no reason for the Zope project to maintain one if something is available
that does what we need. Does anyone know of something that does what zdaemon
does? daemontools seems somewhat close:
http://cr.yp.to/daemontools.html
Going from the documentation, it doesn't seem to be as clever about
application restart. The documentation says nothing about distinguishing
between normal and abnormal restarts or avoiding useless restarts when there
are start-up errors.
If we do continue to maintain zdaemon, we really should publicize it more
widely, both to get credit and to get more people interested in maintaining
it.
Because I want the enhancements I'm making for another project I'm working
on, I'm going to proceed with them for now.
Thoughts?
Jim
--
Jim Fulton mailto:jim@zope.com Python Powered!
CTO (540) 361-1714 http://www.python.org
Zope Corporation http://www.zope.comhttp://www.zope.org