Re: [Zope-dev] A Modest Proposal Concerning Monkey Patches

2002-08-14 Thread Adrian Hungate
Again, monkey patching doesn't modify source code, so I don't know what would be getting written into tmp. Comments? Didn't someone else make a proposal (with code) to handle this? Was it PatchKit? Yup, and it is more than a proposal, it is a full blown product (

[Zope-dev] ZSQLMethod is stupid :o|

2002-08-14 Thread Axel Bock
Hi again, I tried the suggestion of Leonardo, but I got one simple - but nonetheless annoying - problem right now: I defined an SQL method with the two parameters title and plicense. Now if I call self.save_license(something, something_else) he keeps complaining missing input

Re: [Zope-dev] ZSQLMethod is stupid :o|

2002-08-14 Thread R. David Murray
On 14 Aug 2002, Axel Bock wrote: I tried the suggestion of Leonardo, but I got one simple - but nonetheless annoying - problem right now: Simple enough for the zope list rather than zope-dev grin. I defined an SQL method with the two parameters title and plicense. Now if I call

[Zope-dev] PythonWin/Textpad, external import of Zope module andPersistence

2002-08-14 Thread Johan Carlsson [Torped]
Hi, I'm trying to setup to run with either TextPad, which can run external program like python scripts and then parse the result and making Traceback lines linked to the line/file where the error occurred. Or try using Python which has an build in debugger which I like to be able to use. The

Re: [Zope-dev] PythonWin/Textpad, external import of Zope module and Persistence

2002-08-14 Thread Emile van Sebille
- Original Message - From: Johan Carlsson [Torped] The only thing I want to do in this first phase is to be able to make syntax/sanity checks. I use something like this for writing and testing external methods, having TextPad run the same python zope uses: if __name__ ==

Re: [Zope-dev] ZSQLMethod is stupid :o|

2002-08-14 Thread Leonardo Rochael Almeida
On Wed, 2002-08-14 at 09:18, R. David Murray wrote: On 14 Aug 2002, Axel Bock wrote: I tried the suggestion of Leonardo, but I got one simple - but nonetheless annoying - problem right now: Simple enough for the zope list rather than zope-dev grin. I defined an SQL method with the two

Re: [Zope-dev] A Modest Proposal Concerning Monkey Patches

2002-08-14 Thread Jim Penny
On Wed, Aug 14, 2002 at 08:46:41AM +0100, Adrian Hungate wrote: Again, monkey patching doesn't modify source code, so I don't know what would be getting written into tmp. Comments? Didn't someone else make a proposal (with code) to handle this? Was it PatchKit? Yup, and it is

Re: [Zope-dev] A Modest Proposal Concerning Monkey Patches

2002-08-14 Thread Adrian Hungate
Hmm... ok, now I see what you are talking about, however, you are talking about modifying a DTMLFile object - I am not sure of any reliable API (Or even magic) that will allow that to happen in a play nice with others way. Just for clarity's sake (For me if no-one else), what object type are you

Re: [Zope-dev] PythonWin/Textpad, external import of Zope module and Persistence

2002-08-14 Thread Johan Carlsson [Torped]
The only thing I want to do in this first phase is to be able to make syntax/sanity checks. I use something like this for writing and testing external methods, having TextPad run the same python zope uses: Thanks for you tips. Here's another one I just published on the Zope.org.

Re: [Zope-dev] A Modest Proposal Concerning Monkey Patches

2002-08-14 Thread Adrian Hungate
Hmm... that is not good. I can't see you getting an API to change a DTML file. The only option would be to create the ObjectManager's contents page from python, and people seem not to like doing that, but it would allow a little more engineering to take place. Hmmm... It looks as though what is

[Zope-dev] The DevXML Project

2002-08-14 Thread chrisw_88
XML is just a file format used to store information. DevXML is a way ofsharing information about an interface andeventually a class definition amongst many languages and platforms. Itsjust data. I wrote one utility in vb to parse the DevXMLand generate the interface in vb, but you can use

Re: [Zope-dev] Re: Refresh trashes acquisition

2002-08-14 Thread Florent Guillaume
Ross Boylan [EMAIL PROTECTED] wrote: That was just the first few lines of the class definition to give a flavor. Was your remark that it was wrong based on the assumption it was the entire implementation, or is there something obviously wrong with the part you see? Yes, I thought this was

Re: [Zope-dev] A Modest Proposal Concerning Monkey Patches

2002-08-14 Thread Adrian Hungate
On Wed, 14 Aug 2002, Jim Penny wrote: [Snip] It looks as though what is needed is fish-bowl proposal to redesign the way ObjectManager handles and displays rows for specific object types - the requirement being that this be third-party-pluggable (For want of a better term). (No that was

Re: [Zope-dev] A Modest Proposal Concerning Monkey Patches

2002-08-14 Thread Jerome Alet
On Wed, Aug 14, 2002 at 05:08:21PM +0100, Adrian Hungate wrote: One question about zshell though, what is the box that is added left of the add product pulldown? Is it something that ABSOLUTELY has to be on the contents listing (i.e. something to do with creating or maintaining the objects

[Zope-dev] Bug Day 8/02 recap

2002-08-14 Thread Matt Behrens
Zope Bug Day August 2002 was an unqualified success, with our largest bug total squashed to date: 45! The number of still-open collector issues dropped by almost 25%. Thanks to all those who participated! More information on Zope Bug Days can be found at http://dev.zope.org/CVS/BugDays. I

[Zope-dev] Re: [Zope-Coders] Bug Day 8/02 recap

2002-08-14 Thread Sidnei da Silva
On Quarta 14 Agosto 2002 16:32, Behrens Matt - Grand Rapids wrote: | Zope Bug Day August 2002 was an unqualified success, with our largest | bug total squashed to date: 45! The number of still-open collector | issues dropped by almost 25%. Thanks to all those who participated! | | More

Re: [Zope-dev] DTML and REQUEST data changes about to be checked in

2002-08-14 Thread Brian Lloyd
Like I said before, this is probably a good feature. If it was available as a patch then I would probably use it on a number of my sites, and would recommend it to others. I would be very happy see it (or something like it) in 2.7. But not 2.6. Then Jim wrote: WRT to this change,

Re: [Zope-dev] A Modest Proposal Concerning Monkey Patches

2002-08-14 Thread Jerome Alet
On Wed, Aug 14, 2002 at 09:33:02PM +0200, Jerome Alet wrote: registering a ZMI plugin would be as simple as : root.registerZMIPlugin(top|line|bottom, self) or : root.registerTopZMIPlugin(self) root.registerLineZMIPlugin(self)

[Zope-dev] XMLRPC and Basic Auth problems

2002-08-14 Thread Tim Hoffman
Hi I am working on a project that uses XWT (xwt.org) as a frontend to Zope. XWT uses XMLRPC to communicate with a backend (in this case Zope). XWT expects an Error 401 is authentication is required on an XMLRPC call, so that it can negotiate the correct auth method The author of XWT sent the

Re: [Zope-dev] XMLRPC and Basic Auth problems

2002-08-14 Thread Tim Hoffman
I have had further from Adam Megacz [EMAIL PROTECTED] the author of XWT on this issue. I believe I should raise a collector issue on this, however do people believe this is a correct assessment of the situation. == Tim

[Zope-dev] Shared lexicons for ZCTextIndex (was: Re: [Zope-Checkins] CVS: Zope/lib/python/Products/ZCTextIndex - ZCTextIndex.py:1.32)

2002-08-14 Thread Casey Duncan
On Wednesday 14 August 2002 06:03 pm, Guido van Rossum wrote: Fix for issue #505 ZCTextIndex is now associated by path to its lexicon. After replacing a lexicon used by an index, clear the index to make it use the new lexicon. So the semantics are that when you replace the lexicon, the

Re: [Zope-dev] to __of__ or not to __of__ ?

2002-08-14 Thread Casey Duncan
The Item class mixes in Traversable, which is probably responsible for making this work TTW. It also gives you a bunch of other stuff that many Zope classes need, like DAV support, copy support, ZMI tab support and security. It doen't mix-in acquisition tho. If you need support for acquistion

Re: [Zope-dev] XMLRPC and Basic Auth problems

2002-08-14 Thread Casey Duncan
Python's xmlrpclib doesn't support any authentication. It is easily subclassed to include it. I have successfully used it to connect with Zope and I do not have any reason to believe that Zope is broken with regard to authentication. However I do think that Python's xmlrpclib should include

Re: [Zope-dev] XMLRPC and Basic Auth problems

2002-08-14 Thread Tim Hoffman
Hi Casey I am using Basic Auth with xmlrpc lib now, and yes it does work with Python2.1 but that's not my point. The XML-RPC spec doesn't talk about authentication, and so yes what you say is correct. However Adams position is that the spec says it is implemented on top of http and the http

Re: [Zope-dev] XMLRPC and Basic Auth problems

2002-08-14 Thread Casey Duncan
This tcp dump from an xml-rpc request to the root manage method shows that you are correct: [00:00.000 - client 127.0.0.1:3130 forwarded to :8080] [00:00.002 - server connected] POST /RPC2 HTTP/1.0 Host: localhost:9080 User-Agent: xmlrpclib.py/1.0.0 (by www.pythonware.com)

Re: [Zope-dev] XMLRPC and Basic Auth problems

2002-08-14 Thread Tim Hoffman
Hi Casey Thanks for the note. I had done the snoops myself yesterday and came to the same conclusion. Do you want me to raise the collector issue ? Rgds Tim On Thu, 2002-08-15 at 12:36, Casey Duncan wrote: This tcp dump from an xml-rpc request to the root manage method shows that you are