Re: [Zope-dev] Zope2 monitoring

2008-04-30 Thread Alan Milligan
Hi, We use monit - it has the advantage that you can specify resource limits and if/when zope breaches these (or it barfs), monit auto-restarts the server ;) Alan ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope

[Zope-dev] Re: Killer App for ZClasses

2007-04-19 Thread Alan Milligan
Christopher Lozinski wrote: I do have an accounting application I want to bring up quickly, and this seems to me the fastest way to bring it up, but also to have an upgrade path to the future. We do http://www.last-bastion.net/BastionLedger which is a full double entry general ledger with an e

Re: [Zope-dev] TCP CLOSE_WAIT leaks

2006-04-04 Thread Alan Milligan
Dieter Maurer wrote: > Looks as if your Python were compiled without debugging symbols. > You will get much better tracebacks (easier to understand), > when you rebuild your Python with debugging symbols. But of course, it's a production system :( - temporarily installing python-debuginfo ... >

Re: [Zope-dev] TCP CLOSE_WAIT leaks

2006-04-02 Thread Alan Milligan
Dieter Maurer wrote: > Alan Milligan wrote at 2006-3-28 10:44 +1000: > A missing "clearing down" of the client's connection cannot be the > cause for this. The (worker) thread must finish (and you > should see a log entry) long before this connection is expected to &

Re: [Zope-dev] TCP CLOSE_WAIT leaks

2006-03-29 Thread Alan Milligan
I managed to get a DeadlockDebugger trace on this thing, it made very interesting reading: Thread -1578087504 (GET /VirtualHostBase/http/www.last-bastion.net:80/BastionLedger/ledgerlist/Mail_338253076): File "/opt/zope2.8/lib/python/ZServer/PubCore/ZServerPublisher.py", line 23, in __init__

Re: [Zope-dev] TCP CLOSE_WAIT leaks

2006-03-27 Thread Alan Milligan
Dieter Maurer wrote: >>I've been noticing a situation for some time that my 2.8.5 Z2 is running >>out of threads. When doing an lsof on it, I see a large number of TCP >>handles in CLOSE_WAIT state. >> >>It seems something's not properly clearing down the connection to >>release the thread. > >

[Zope-dev] TCP CLOSE_WAIT leaks

2006-03-21 Thread Alan Milligan
Hi, I've been noticing a situation for some time that my 2.8.5 Z2 is running out of threads. When doing an lsof on it, I see a large number of TCP handles in CLOSE_WAIT state. It seems something's not properly clearing down the connection to release the thread. Unfortunately, these connections

Re: [Zope-dev] Re: svn.zope.org borked

2005-12-20 Thread Alan Milligan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jens, I have the latest subversion-1.2.3-4 compiled for python2.3. I am happy to make them available to you if you wish. Alan -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.o

[Zope-dev] optimised python

2005-12-17 Thread Alan Milligan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm reconsidering the way we RPM package byte-code compiled python, and although I suspect optimised python is a bit of an anacronysm, I thought I'd check with the list ;) If one was to start Zope with python -O, then it would look for (and generate)

[Zope-dev] Python2.4 Security Audit ETA???

2005-11-28 Thread Alan Milligan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Aeons ago someone promised that said Zope security audit of Python 2.4 was scheduled for October. I've not yet seen any happy announcements that Zope is now 2.4 compliant, and do want to highlight the importance of achieving this goal. Python2.4

[Zope-dev] 3rd party product migrations

2005-08-26 Thread Alan Milligan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, We're now migrating our product stack to Zope2.8/Plone2.1 and have been considering how best to proceed with this. We have one overriding objective in that we're very interested in reducing the window between core releases and third party develop

[Zope-dev] BastionLinux

2005-05-19 Thread Alan Milligan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, We're finally almost ready to release BastionLinux, https://linux.last-bastion.net, our exact functional equivalent of RHEL for commercial Zope and Plone customers. We have packaged quite a number of Python/Zope/Plone products on the Plope channe

[Zope-dev] CMF TypesTool breaks id

2005-04-15 Thread Alan Milligan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm astounded that nobody has come across this before, but the CMFCore.TypesTool.constructContent() function is supposed to return the object id in the event that no RESPONSE is passed in - at least according to CMFPlone.PloneFolder.invokeFactory(). Pre

Re: [Zope-dev] Parrot

2005-03-21 Thread Alan Milligan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris Withers wrote: | ZEO, multiple clients and processor affinity settings already offer | this, and with no extra development needed... | What userland tools are you using to implement processor affinity?? Alan -BEGIN PGP SIGNATURE- Version:

Re: [Zope-dev] Parrot

2005-03-21 Thread Alan Milligan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Fred Drake wrote: | | I don't know that Parrot tries to emulate Python's C API either, and | Zope definately contains several C extensions. These would need to be | re-written in Python or to use Parrot's API. So I suspect there's a | good bit of work

[Zope-dev] Parrot

2005-03-18 Thread Alan Milligan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Parrot 0.1.2 was released a couple of weeks ago. According to the release notes, there's now "better python support, separated into dynaclasses". Unfortunately, I haven't really managed to keep up with the Parrot project, but I think it quite possibly

Re: [Zope-dev] root ZServer

2005-01-19 Thread Alan Milligan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 S.Aeschbacher wrote: |> You can solve this problem by using sudo. Make an external method that |> executes sudo with the commands you want (you have to use the NOPASSWD |> option to prevent sudo for asking for a password). This gives you both, |> zope r

Re: [Zope-dev] root ZServer

2005-01-18 Thread Alan Milligan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andreas Jung wrote: | There is zero need to relax this requirement. You only have to start | Zope as root I just explained you cannot start as root ... | to get port 80 but it is in general not a good idea for *any* service to | run | as root for securi

[Zope-dev] root ZServer

2005-01-18 Thread Alan Milligan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I have a requirement to run a root uid Z2 process and was most surprised to see that line 334 of Zope/Startup/__init__.py expressly forbids this, throwing a ZConfig.ConfigurationError While it's not a good idea to configure Zope to run as root by de

Re: [Zope-dev] FS PageTemplates and XML generation issues

2004-12-22 Thread Alan Milligan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Florent Guillaume wrote: |> | Use: |> | |> | [default] |> | content_type = text/foobar |> |> No, this doesn't work either :( | | | Well it should, there are unit tests in CMFCore that explicitely test | this kind of .metadata file. | No, I had a look an

Re: [Zope-dev] FS PageTemplates and XML generation issues

2004-12-22 Thread Alan Milligan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Florent Guillaume wrote: | | ZPT will process tal instructions in XML templates only if the proper | namespace is declared. You must have: | | xmlns:tal="http://xml.zope.org/namespaces/tal"; | Ok, I've explicitly included this now as well, and it beha

[Zope-dev] FS PageTemplates and XML generation issues

2004-12-22 Thread Alan Milligan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I have some PT skins I'm using to generate XML responses and am getting some strange behaviour. I'm not sure if its because I misunderstand something, there are bugs, or the API could be made more useful. I will focus this discussion around the fol

Re: [Zope-dev] Why third_party/docutils?

2004-12-17 Thread Alan Milligan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 And while we're talking about docutils, the delivered Reporter warning/error functions write directly to STDOUT. We have ReST functionality in Zpydoc, and we get loads and loads and loads of crap 'invalid unindent' messages streamed to STDOUT from the Z

RE: [Zope-dev] Re: SOAP Support for ZOPE

2004-12-16 Thread Alan Milligan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I fully support Brian on this one. We are a big user of XML-RPC. I'm also more than interested in SOAP and WSDL in general as we're going to need to integrate such services in the future. However, we MUST create a proper plugin framework. I do not wis

[Zope-dev] Re: Zope and Python 2.4

2004-11-10 Thread Alan Milligan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The reason I asked this question is because clients I talk to in the enterprise space are almost all exclusively RH9/RHEL clients, and many have major reservations about installing anything non-RH 'approved' as they feel they have some security assuranc

[Zope-dev] Zope and Python 2.4

2004-11-10 Thread Alan Milligan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I followed the thread a week or so ago with great interest, in that substantially Zope is working with Python 2.4 However, RedHat have now released Python 2.4 in the Fedora development stream and it will ship with FC4. Does ZC have an official position

[Zope-dev] Announce: FSPerlScript

2004-10-31 Thread Alan Milligan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, This patch is against CMF-1.4.7, although one could equally argue it better suited elsewhere - there appear to me to be minor uncomfortable dependencies regardless of where it sits (unless it's made an independent product - which seems a little unwa

Re: [Zope-dev] xml-rpc changes between 2.7.0 and 2.7.3 ??

2004-10-12 Thread Alan Milligan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tino Wildenhain wrote: |> |>I had a client that used to work on 2.7.0, and now doesn't on 2.7.3. |> |>The problem would appear to be that it's not substituting the |>xmlrpc.Response class for a GET request on a text/xml content type and |>therefore just

Re: Re: [Zope-dev] xml-rpc changes between 2.7.0 and 2.7.3= ??

2004-10-11 Thread Alan Milligan
7;t have a file type, and the normal binary limitation is 8192 bytes of parsable data between two tags :( Alan > Hi, > > Am Di, den 12.10.2004 schrieb Alan Milligan um 0:16: > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > > Hi, > > > > I

Re: Re: [Zope-dev] xml-rpc changes between 2.7.0 and 2.7.3= ??

2004-10-11 Thread Alan Milligan
> According to the CHANGES.txt there were no changes to XMLRPC. xmlrpc.py is not faulty, it's just that an HTTPResponse object is assigned to the text/xml content type rather than the correct xmlrpc.Request :( ___ Zope-Dev maillist - [EMAIL PROTE

[Zope-dev] xml-rpc changes between 2.7.0 and 2.7.3 ??

2004-10-11 Thread Alan Milligan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I had a client that used to work on 2.7.0, and now doesn't on 2.7.3. The problem would appear to be that it's not substituting the xmlrpc.Response class for a GET request on a text/xml content type and therefore just delegating to the str() function

Re: [Zope-dev] serving BLOBs

2004-10-11 Thread Alan Milligan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Johan Carlsson wrote: | | I've looked at the code of the latest release of ExternalFile | and I can't find the new streming interface being used at all? | There's some strange stuff in the ExternalFile::FileUtils::copy_file() function whereby it writes

[Zope-dev] serving BLOBs

2004-10-11 Thread Alan Milligan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I know serving large BLOBs is rather frowned up using Z2, but I have a requirement to use the zope security machinery prior to serving a blob circa 500Mb. I thought I'd just wrap it in an ExternalFile and it would simply stream to the client. In fa

[Zope-dev] XML-RPC incorrect 404 return code

2004-05-06 Thread Alan Milligan
Hi, I'm doing some stuff using Zope as an XML-RPC server, and have come across a rather interesting bug. If the method doesn't exist on the Zope server, Zope returns an xmlrpclib.Fault with a faultCode= -1. This completely trips out my XML-RPC client which was rather expecting an xmlrpclib.P

[Zope-dev] ZScheduler

2004-03-31 Thread Alan Milligan
Hi, Following on from work started at the Zope3 Sprint in Melbourne, I've got a release candidate for a Zope scheduler. This is available from http://www.last-bastion.net/ZScheduler, where although the documentation is a little light, I've taken efforts to write online helps, although it's al

[Zope-dev] CMF dogbowl dog tired ???

2004-03-04 Thread Alan Milligan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I see not much has been happening on cmf.zope.org for some time - the content is still to be merged with zope.org Even more worrying, the collector also shows no movement. I raised 2 one-line fixes (bugs 196, 197) on Oct 19 2003 - they are still pendin

[Zope-dev] manage_form_title patch

2004-01-18 Thread Alan Milligan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Shane Hathaway wrote: | | We are protecting ourselves from nasty URLs written by anyone on the web. | Because DTML is so implicit, it is conceivable that an URL like the | following might kill your site (or worse!): | | http://zope.example.com/?title=do

Re: [Zope-dev] Re: 2.7 management_page_charset cannot be callable

2004-01-15 Thread Alan Milligan
lying DTML (made private)), then this method would then render itself callable only via DTML/ZPT etc wouldn't it??? Alan Shane Hathaway wrote: On Fri, 16 Jan 2004, Alan Milligan wrote: Tres Seaver wrote: That change is one of a number which are designed to prevent cross-site scripti

[Zope-dev] Re: 2.7 management_page_charset cannot be callable

2004-01-15 Thread Alan Milligan
Tres Seaver wrote: Alan Milligan wrote: In addition to this problem, someone has changed manage_form_title.dtml and caused me grief! The tag has been changed to <&dtml-title;> This causes an implicit html-quote to now be performed which means that my tag, inserted to display the

Re: [Zope-dev] 2.7 management_page_charset cannot be callable

2004-01-15 Thread Alan Milligan
In addition to this problem, someone has changed manage_form_title.dtml and caused me grief! The tag has been changed to <&dtml-title;> This causes an implicit html-quote to now be performed which means that my tag, inserted to display the product's icon to more strongly associate what is be

[Zope-dev] Python 2.3.2 and dir

2003-12-14 Thread Alan Milligan
Hi, I'm trying to upgrade my Zpydoc product to Python 2.3.2 from 2.1.3 and have come across a confusing situation in regard to the inspect.getmembers function. This function uses the builtin dir() function to get a list of an objects attributes. For Zope products, I am getting a situation whe

Re: [Zope-dev] ZODB object upgrades

2003-11-04 Thread alan milligan
Thanks for the reply, you've raised a couple of points I need clarification upon... Attributes added to product code are not automatically present in the objects defined by that code, only those created by that code. Methods, however, will be present on all instances of a given class. I won't b

[Zope-dev] ZODB object upgrades

2003-11-02 Thread alan milligan
Hi, Over the last month or so, I've rather wonderfully managed to corrupt my ZODB with artifacts of my Currency class that no longer exist. This is due to: (i) moving the module to a different package (twice) (ii) renaming the module (iii) changing it's inheritance hierarchy (having removed all

Re: [Zope-dev] Windoz file naming

2003-10-30 Thread alan milligan
OK - thank you both for your help. It's time for: perl -pi e 's/Currency/ZCurrency;g' `find . -name "*.py"` ;) From: Anthony Baxter <[EMAIL PROTECTED]> Reply-To: Anthony Baxter <[EMAIL PROTECTED]> To: "alan milligan" <[EMAIL PROTECTED]>

[Zope-dev] Windoz file naming

2003-10-29 Thread alan milligan
Guys, I've just run into a problem and wondered if there was an elegant resolution. My BastionBanking package contains: currency.py - pure python Currency.py - Zope derivation The idea is that using the setup.py script, you can load currency.py into your Python modules and use it out

Re: [Zope-dev] unregistering products

2003-09-24 Thread alan milligan
alan milligan wrote at 2003-9-23 06:35 +: > However, the original product is still available through Products.meta_types > and the factory construction mechanism. This is a pain as then users must > be careful as to what product's they create. > > It is inconvenien

[Zope-dev] unregistering products

2003-09-22 Thread alan milligan
Hi, We have a relatively common situation whereby we will create our own product by deriving off an existing Zope product. However, the original product is still available through Products.meta_types and the factory construction mechanism. This is a pain as then users must be careful as to wh

Re: [Zope-dev] __call__() takes exactly 1 argument (4 given)!!!!!!!!!!!

2003-08-22 Thread alan milligan
alan milligan wrote at 2003-8-18 09:41 +: > ... > I am getting this message out of HelpSys/STXTopic and > Products/CMFCore/PortalContent using Zope2.6.2b2 and CMF1.3.1. > > It's happening out of ZPublisher/Publish calling the default method to > publish the object

[Zope-dev] __call__() takes exactly 1 argument (4 given) !!!!!!!!!!!

2003-08-18 Thread alan milligan
Guys, I am getting this message out of HelpSys/STXTopic and Products/CMFCore/PortalContent using Zope2.6.2b2 and CMF1.3.1. It's happening out of ZPublisher/Publish calling the default method to publish the object. For some reason, the delivered code works fine in development (Linux 2.4.21, Py

Re: [Zope-dev] Zpydoc

2003-06-06 Thread alan milligan
However, it turned out that I never really used it. Instead, I always used my "DocFinder" product. I was therefore unimpressed when I read your "Zpydoc" announcement. Dieter Understood! I don't think that developers make a very good audience for documentation tools anyway. I almost never use

[Zope-dev] Zpydoc

2003-06-05 Thread alan milligan
Guys, As you may recall, I made a posting regarding this Zope-specific pydoc tool over a week ago. Since then there has been half a dozen downloads, but I am yet to receive any feedback :( I know that documentation is about as exciting as a really unexciting thing, but would like just five mi