[Zope-dev] just 2 bits on stupid_clean
Hi, to let the 'find' in stupid_clean remove even file names with spaces you may replace it with: find . -name '*.o' -o -name '*.so' -o -name '*.py[co]' -o -name 'core*' | while read file do rm -f $file done It's not clear to me why you put that command in a separate file, but the clean target of the main Makefile could easily look like: BUILDED_FILE=-name '*.o' -o -name '*.so' -o -name '*.py[co]' -o -name 'core*' clean: find . $(BUILDED_FILE) | \ while read file ;\ do rm -f $file ;\ done rm -rf lib/python/build I added last call to rm since no Makefile removes lib/python/build. ciao, -- Luca - De Whiskey's - De Vitis | Elegant or ugly code as well aliases: Luca ^De [A-Z][-A-Za-z]*[iy]'?s$ | as fine or rude sentences have Infinite loop: see `Loop, infinite'.| something in common: they Loop, infinite: see `Infinite loop'.| don't depend on the language. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Some gcc warnings building zope 2.6.1
Hi, I got these warnings building zope (you might be interested in fixing some/all of them): BTrees/BucketTemplate.c:214: warning: `bucket_append' defined but not used BTrees/BucketTemplate.c:214: warning: `bucket_append' defined but not used BTrees/BucketTemplate.c:214: warning: `bucket_append' defined but not used lib/python/Shared/DC/xml/pyexpat/expat/xmlparse/xmlparse.c:2341: warning: `errorProcessor' defined but not used In file included from lib/python/Shared/DC/xml/pyexpat/expat/xmltok/xmltok.c:260: lib/python/Shared/DC/xml/pyexpat/expat/xmltok/xmltok_impl.c: In function `normal_getAtts': lib/python/Shared/DC/xml/pyexpat/expat/xmltok/xmltok_impl.c:1394: warning: `open' might be used uninitialized in this function In file included from lib/python/Shared/DC/xml/pyexpat/expat/xmltok/xmltok.c:653: lib/python/Shared/DC/xml/pyexpat/expat/xmltok/xmltok_impl.c: In function `little2_getAtts': lib/python/Shared/DC/xml/pyexpat/expat/xmltok/xmltok_impl.c:1394: warning: `open' might be used uninitialized in this function In file included from lib/python/Shared/DC/xml/pyexpat/expat/xmltok/xmltok.c:792: lib/python/Shared/DC/xml/pyexpat/expat/xmltok/xmltok_impl.c: In function `big2_getAtts': lib/python/Shared/DC/xml/pyexpat/expat/xmltok/xmltok_impl.c:1394: warning: `open' might be used uninitialized in this function lib/python/Shared/DC/xml/pyexpat/expat/xmltok/xmltok.c: In function `initScan': lib/python/Shared/DC/xml/pyexpat/expat/xmltok/xmltok.c:1494: warning: subscript has type `char' lib/python/Shared/DC/xml/pyexpat/dcpyexpat.c: In function `my_StartElementHandler': lib/python/Shared/DC/xml/pyexpat/dcpyexpat.c:73: warning: `attrs_k' might be used uninitialized in this function lib/python/Shared/DC/xml/pyexpat/dcpyexpat.c: In function `initdcpyexpat': lib/python/Shared/DC/xml/pyexpat/dcpyexpat.c:718: warning: unused variable `rev' ciao, -- Luca - De Whiskey's - De Vitis | Elegant or ugly code as well aliases: Luca ^De [A-Z][-A-Za-z]*[iy]'?s$ | as fine or rude sentences have Infinite loop: see `Loop, infinite'.| something in common: they Loop, infinite: see `Infinite loop'.| don't depend on the language. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Zope Server Control
Andy McKay wrote: 3. I've found at least two companies that run many, many zope servers on remote boxes all over the place and would like one ui to see the status of them all, I'm trying to see if i can get some $ out of them for the development :) If it's about monitoring, let me just mention nagios, to be found at http://www.nagios.org/ It's a very very nice monitoring app which I use for monitoring states of several servers. It can use external (command line) apps for monitoring. Maybe it would be of some use to develop an the app so that the clients for getting the status for zope servers could also be used as plugins for nagios. Encapsulating the classes used for getting the data from a zope server into a module would suffice, then one could write simple monitoring apps as described here: http://nagiosplug.sourceforge.net/developer-guidelines.html cheers, oliver ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Persisting PIL.Image instances in Zope?
This is a repost from the [EMAIL PROTECTED] mailing list, as I got no responses there. For a number of reasons, I find myself wanting to persist instances of PIL.Image in the ZODB. Ideally, such a subclass of PIL.Image and Persistent would also be API-compatible with OFS.Image, but I'd be willing to live without this. Does anyone already have something like this developed with the bugs worked out? I'd rather not reinvent this particular wheel if I don't have to. -- Michael R. Bernstein [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] if-then-else expression in Python
Currently, there is a heated debate in c.l.p about PEP 308, an if-then-else expression for Python. Some vote should decide its fate. I think, we want an if-then-else expression for Zope, as it would make decisions in TALES expressions much clearer and more robust than with the ... and ... or hack or the test function which evaluates all arguments before testing (which confuses newbies). Do not forget to vote! Dieter ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] ZSQL/ZODB corruption after upgrade
Thanks for giving me a push in the right direction. I already knew from the message that it was the CComMember zclass. The problem was that I had deleted all instances of that zclass when I deleted the LoginManager based acl_users. I then deleted the zclass from the Products folder of the Control Panel. Turns out that it was *still* in the product registry! I had to use a debug session, manually build a new registry tuple and use app._setProductRegistryData() to get rid of it. Everything seems fine now. --On Saturday, February 08, 2003 01:18:50 PM +0100 Dieter Maurer [EMAIL PROTECTED] wrote: Dan L. Pierson wrote at 2003-2-7 13:03 -0500: ... If I open a ZSQL method (any ZSQL method, new or old, inside the area that used to be controlled by LoginManager or not) it seems OK. Using the method works. But if I click on the Advanced tab in the ZMI, I get the following: ... (Object: manage_advancedForm) File /var/local/control/V4/site/zope/lib/python/Shared/DC/ZRDB/DA.py, line 548, in manage_product_zclass_info One of your ZClasses is broken... Catch the exception in line 548 of Shared/DC/ZRDB/DA.py and find out which one. Do something about it... Dieter ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] if-then-else expression in Python
Dieter Maurer wrote Currently, there is a heated debate in c.l.p about PEP 308, an if-then-else expression for Python. Some vote should decide its fate. I think, we want an if-then-else expression for Zope, as it would make decisions in TALES expressions much clearer and more robust than with the ... and ... or hack or the test function which evaluates all arguments before testing (which confuses newbies). Do not forget to vote! But please, please, don't just vote yes or no blindly. Read the vote proposal, when it's posted, and think about it. And _please_ don't go out soliciting no votes or yes votes from people who aren't going to read the proposal. Anthony -- Anthony Baxter [EMAIL PROTECTED] It's never too late to have a happy childhood. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )