[Zope-dev] Re: [Zope] [PATCH] to Zope's Management Interface
On Mon, 2002-04-29 at 13:21, Jerome Alet wrote: Hi the attached patch to apply to zope/lib/python/OFS/dtml/main.dtml allows people who want to use ZShell to type ZShell commands directly from the Zope's Management Interface. It should be transparent for people who don't want to use ZShell at all. ... As always any comment is very welcome. Have you thougth of making this a Hotfix instead of patch ? --- Hannu ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] not Python 2.2a1 but Python 2.2b1
Andy McKay wrote: Is out and: Large file support is now enabled on Win32 and Win64 platforms, and automatically configured (at least on Linux and Solaris). Cool, that will mean there will be less worries about Zope users hitting the 2 gig limit. But will Zope 2.4.x run on 2.2 ? --- Hannu ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Python Script bug?
Chris Withers wrote: Hi, The following code: objects = map(lambda b: b.getObject,brains) try objects = map(lambda b: b.getObject(),brains) --- Hannu ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: ZPL and GPL
Barry A. Warsaw wrote: With respect to Python, the issue has been hashed to death over in c.l.py and other forums, so I think this will be my last post on the subject here. IMO, the Python 2.0.1 license is the best of all possible worlds. In the words of the FSF themselves: The License of Python 2.0.1, 2.1.1, and newer versions. Is there such thing as Python 2.1.1 ? I did'nt find any mention of it on python.org ? - Hannu ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] ZPL and GPL
Jerome Alet wrote: On Tue, 26 Jun 2001, Erik Enge wrote: On Tue, 26 Jun 2001, Jerome Alet wrote: Java comes to mind, guess who is the powerful entity ;-) I really can't see that Java has been bastardized by it, though. I was told that some java programs only run under windows, that's what I called bastardization. However I don't know for sure, because I don't use Java: I use a beautiful language instead, and it's called: Python ;-) There sure are python programs that run only under windows too ;) Not that I'd recommend writing them in such a way but it happens, especially if they are developed/debugged under windows only and/or use windows-specific extensions. Banning such extensions also seems stupid, as one of main strengths of python is its extensibility. And the fact that you can't use some stackless python features reasonably under plain c-python does not bother me at all. It would not bother me even if people at Transmeta would make proprietary Crusoe JIT to interpret python bytecodes directly ;) I would say that it would make me very glad instead, even if it causes some python programs make wrong assumptions and thus run prohibitively slow even on 1.4 GHz Athlons . -- Hannu ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] ZPL and GPL
Jerome Alet wrote: On Tue, 26 Jun 2001, Anthony Baxter wrote: Jerome Alet wrote I personnally would love to see both Python and Zope be GPLed. Why? No really. Exactly what do you gain from this? Assuming Zope's license becomes GPL compatible, any packages you release you can choose to GPL. Why do you think having the GPL is a good thing for the core package? Ideological reasons? How does releasing under the GPL make the world a better place? Hopefully Zope will soon be considered a universally available system library and this will not matter any more ;) For Zope it's not sure, but for Python, as well as for all what people usually call open source languages, the license of choice should be the GPL, or at least the LGPL, in order for the language in question to not become bastardized by some powerful entity. I see GPL as a good license for GCC and other _compiled_ languages, but for an interpreted language GPL or even LGPL could well be viewed as forcing _anything_ written in it to be forced under *GPL. Even more ridiculous would be the situation where pure python modules can be proprietary but modules written in C must be *GPL (think picle vs cPicle) The problem with plain GPL, as mentionned in my previous message, is that this would make a lot of people run away. However the LGPL seems to be a very good choice, because this wouldn't allow the core (of Python or Zope) to be bastardized with proprietary versions, while still allowing proprietary products/extensions to be created. AFAIK the ability to be bastardized is one of main strengths of python. It would be extremely hard to bastardise the main python (as it requires you to brainwash Guido), but having proprietary (or open-source) versions that behave in some ways differently, like ZODB-python that has transactional persistency seems to be a feature and not a bug of Python license. And yes, a thounsand times yes, I use the GPL for ideological reasons, because I really believe this will make the world a better place. Think global, act local may be a good slogan for software revolutionaries as well ;) I've thought about the LGPL, and doesn't see any argument against it. I just can't see what LGPL would mean for _whole_ works vs. libraries (or lessers as they are called nowadays ;) --- Hannu ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] mxDateTime-based Zope DateTime module
Stephan Richter wrote: Hello everyone, after I got finally frustrated enough with the current implementation of the Zope DateTime module, I decided to write a wrapper for mxDateTime. I checked the license, and the eGenix Public License is GPL compatible, so that we can use it for Zope now. What does being GPL compatible have to do with Zope ? Have I missed some licence changes/discussion ? - Hannu ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] SOAP again (or, xml-rpc client for MSIE)
Brad Clements wrote: SOAP, WSDL and UDDI are coming in a big way. I think Zope/Python can compete against MS .Net Services on the server side, but it does make sense to use .Net components on the client, such as the webService behavior for IE. Does it really exist (the webService behavior for IE) or is it jet another vapor coming in a big way ? If it does exist, where can I read amout it ? - Hannu ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] SOAP again (or, xml-rpc client for MSIE)
Phil Harris wrote: Brad, There are a few COM/COM+ components around that do xml-rpc. I use them with MS Word to write Word files directly to Zope for instance. Some are better than others, but ymmv so I'll hesitate to recommend one. At least one of them is listed on xmlrpc.com. Having them you could script them via jscript, and basically open up the connection easily. Could you provide a small example ? I'll probably be needing this functionality quite soon ;) Does any of them support https ? Hannu ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Adding usernames to ZServer HTTP log output
CATTEAU Olivier wrote: How to activate user tracking? Just show this URL: http://www.zope.org/Members/catteau/UserTracking This seems to work only with BasicAuthentication. Does anybody know a solution that integrates with UserFolders using other authentication methods ? --- Hannu ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: BTreeFolder
Shane Hathaway wrote: However, purely random IDs would cause all the buckets to be loaded in memory all the time, so Jim's third idea was to have each client increment sequentially from a random ID and move to a new random ID if conflicts ever occur. Can't one just assign some unique id to each ZEO client and somehow use _that_ for making up ids ? It would have the added benefit of knowing which client made up which id. --- Hannu ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] ZSQL and Normalized databases (or why ZSQL sucks)
The Doctor What wrote: * Adrian Hungate ([EMAIL PROTECTED]) [010420 05:06]: May be I am misunderstanding your problem here, but are you suggesting that SELECT tab1.col1 col1, tab2.col1 col2 FROM ... etc ... Does not expose 'col1' and 'col2' in the namespace for you? This is not my experience. Ok, I only have about 50 ZSQL methods on my intranet but they are all complex queries with column naming clashes. If it failed to work as you are suggesting, I would not have continued using Zope - Database connectivity was one of my criteria. I mean that: SELECT tab1.col1, tab2.col1 FROM ... etc ... Does not expose 'tab1.col1' and 'tab2.col1'. In otherwords, it doesn't gracefully handle name clashes. I realize that calling out the variable 'tab1.col1' out of the namespace is a pain, but (hopefully) in the future it would be made easier. I suspect it is mainly a problem with SQL ;) amphora2=# select item.item_id, item.ordinal from item where item_id = 15; item_id | ordinal -+- 15 | 0 (1 row) amphora2=# select item.item_type_id, item_type.item_type_id from item,item_type amphora2-# where item_id = 15 and item.item_type_id= item_type.item_type_id; item_type_id | item_type_id --+-- 1 |1 (1 row) The above example is with postgreSQL, but IIRC it is how the SQL standard defines it to behave. Except that perhaps it may forbid one from writing such queries if there is a possibility of both item_type_id's not being the same. - Hannu ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] why is manage_addZSQLMethod unavailable ?
Why does this work dtml-call "_['testadd'].manage_addDTMLMethod('MethodId', 'Method Title','method text')" While this does not: dtml-call "_['testadd'].manage_addZSQLMethod('ZSQLID', 'ZSQL Title', 'DB','','select * from data')" Error Type: AttributeError Error Value: manage_addZSQLMethod I studies the Znolk product and found that it uses _setObject directly instead of manage_addZSQLMethod . I was able to overcome it by defining an one-line external method: - from Products.ZSQLMethods.SQL import * def manage_addZSQLMethod(self, sqlId, sqlTitle, connection_id, args, command): self._setObject(sqlId, SQL(sqlId, sqlTitle, connection_id, args, command)) - but it IMHO the visibility of manage_addDTMLMethod and manage_addZSQLMethod _should_ be the same ? - Hannu ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )