Re: [Zope-dev] Possible 'bad' with Client.py and urllib

2001-02-27 Thread Chris Withers
Dieter Maurer wrote: Chris Withers writes: urllib Client block Zope That would suggest a bug in Python's socket implementation: its "makefile().read" method would not release the global interpreter lock. Do you think this is likely? If so, where would I go to report it,

Re: [Zope-dev] ZCatalog stuff

2001-02-27 Thread Chris Withers
"R. David Murray" wrote: On Thu, 22 Feb 2001, Chris Withers wrote: Apart from that, any ideas how I'd search for a record where the indexed attribute is blank or the secondary sort stuff? Somebody contributed a patch for the secondary sort stuff a while back. Whether it still works

Re: [Zope-dev] How to build indexes in the MemberCatalog of Membership Component?

2001-02-27 Thread Steve Alexander
Bill Anderson wrote: I use, and recommend the use of a ZPattern trigger. You can get it by downloading the DataSkins product. This way, whenever a member is modified, it automatially updates/creates it's entry in the catalog. Just be sure to specify MemberCatalog :) To expand on what Bill

Re: [Zope-dev] catalog object owners?

2001-02-27 Thread Chris Withers
Chris McDonough wrote: Aha? So if I specify a field index of, get_parent_node_id, which is a function call on all objects that are to be indexed, this would index the returned value? If so, how long has this been available? As long as the catalog has been around, AFAICT...

Re: [Zope-dev] Search Features and Zope Directions Road Map

2001-02-27 Thread Matt Hamilton
p.d. Right now I'm quite interested at the technology of searching and finding non structured content, in order to compose structured documents. For example, the guys at Vignette (StoryServer) say that its customers don't need to keyword anything in order to have a "related content"

[Zope-dev] 'inheritedAttribute' vs. 'call of superclass'

2001-02-27 Thread Gregor Heine
I have two Python classes, say A and B, where B subclasses A. If I want to call a method in A from an overridden method in B I can either use: B.inheritedAttribute('method_in_A')(self. *args) or: A.method_in_A (self, *args) Can anybody explain me the differences between those two, because the

RE: [Zope-dev] ZPatterns: commitSubtransaction() gives AttributeError on commit_sub

2001-02-27 Thread Ian Sealy
Dear Brian, req = context.REQUEST context.propertysheets.info.manage_changeProperties(longdesc=req.f orm['longdesc']) context.commitSubtransaction() req.RESPONSE.redirect(req['URL1']+'/edit_longdescForm') context is a DataSkin instance. When I submit the form, I get an

RE: [Zope-dev] More ZCatalog Stuff.

2001-02-27 Thread Toby Dickenson
I am assuming that the code you provided goes into a manage_addCustomIndex method that is part of a CustomIndex Python Product. hehehehe, nothing so general-purpose as that ;-) You will need to implement a subclass derived from one of the standard indexes to provide your custom

Re: [Zope-dev] More ZCatalog Stuff.

2001-02-27 Thread Michael R. Bernstein
Toby Dickenson wrote: On Mon, 26 Feb 2001 19:00:58 -0800, "Michael R. Bernstein" [EMAIL PROTECTED] wrote: Toby Dickenson wrote: If you are interested in a short-term hack, it is possible implement your own type of index and add it to an existing catalog, without having to modify

[Zope-dev] _getOb or __getattr__?

2001-02-27 Thread Chris Withers
Hi, I need a product with custom attribute getting code and so looked to the BTreeFolder product for inspiration. It implements both __getattr__ and _getOb which appear to do roughly the same thing. What's the difference? Shane hints that __getattr__ is slower but allows acquisiton. Why is

RE: [Zope-dev] Search Features and Zope Directions Road Map

2001-02-27 Thread Brian Lloyd
after reading the Directions Roadmap from DC, I was surprised that a substantial improvement of the searching features of Zope, wasn't mentioned as a major concern. snip Moreover, everybody uses more Google to look for everything, bypassing windows, doors, and portals!. Why? Because

Re: [Zope-dev] _getOb or __getattr__?

2001-02-27 Thread Chris Withers
Jeffrey P Shell wrote: _getOb and _setOb are for placing subobjects somewhere besides attributes (which is the default implementation). When would __getattr__ be used then? cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: [Zope-dev] _getOb or __getattr__?

2001-02-27 Thread Chris Withers
Jeffrey P Shell wrote: _getOb and _setOb are for placing subobjects somewhere besides attributes (which is the default implementation). _getOb and friends are the default protocol that *SHOULD* be used by systems that change subobjects (ie - copy and paste). Sorry, just thought of

Re: [Zope-dev] _getOb or __getattr__?

2001-02-27 Thread Jeffrey P Shell
"Chris Withers" [EMAIL PROTECTED] wrote: Jeffrey P Shell wrote: _getOb and _setOb are for placing subobjects somewhere besides attributes (which is the default implementation). When would __getattr__ be used then? In what context? You could wire __getattr__ to call into _getOb (and

Re: [Zope-dev] _getOb or __getattr__?

2001-02-27 Thread Chris McDonough
Sorry, just thought of another coupla questions: If x is an instance of my class, then: If I do x.a = 1, is _setOb called? If I do print x.a, is _getOb called? No in either case. _setOb shouldn't be used directly in the current ObjectManger implementation. It doesn't populate the _objects

[Zope-dev] RE: [Zope] Zope Good/Bad News Article

2001-02-27 Thread Brian Lloyd
Just read your article (http://www.pault.com/zope.html) and really enjoyed it (besides comparing Java to Macs... yikes!). I agree that DC needs to really work with Zope Product Developers and help them as much as possible. Have you looked at the Zope Directions document recently posted

Re: [Zope-dev] _getOb or __getattr__?

2001-02-27 Thread Chris Withers
Chris McDonough wrote: Sorry, just thought of another coupla questions: If x is an instance of my class, then: If I do x.a = 1, is _setOb called? If I do print x.a, is _getOb called? No in either case. _setOb shouldn't be used directly in the current ObjectManger

[Zope-dev] Re: [Zope] Search Features and Zope Directions Road Map

2001-02-27 Thread Michel Pelletier
Please do NOT cross post. -Michel On Mon, 26 Feb 2001, Ausum wrote: Zope is a great application server, the same as its soon to be released Content Management Framework, because of its bet on Python, everybody say it. Nevertheless, after reading the Directions Roadmap from DC, I was

[Zope-dev] ZClass propertysheets

2001-02-27 Thread Christian Scholz
Hi! I am just wondering if it's possible to get hold of the properties of a propertysheet of a ZClass without instanciating it. So when instanciating I would just do map=object.propertysheets[1].propertyMap() and get all information of my ZClass instance object. So is this also possible

[Zope-dev] Zope Development Roadmap Components

2001-02-27 Thread Jimmie Houchin
While reading the Zope Development Roadmap about components I had a question. It says: """Components will be edited via the filesystem as .py files. Components will probably be checked into and out of Zope via a CVS like facility. Components can be tested locally without checking them into

Re: [Zope-dev] _getOb or __getattr__?

2001-02-27 Thread Shane Hathaway
Chris Withers wrote: Hi, I need a product with custom attribute getting code and so looked to the BTreeFolder product for inspiration. It implements both __getattr__ and _getOb which appear to do roughly the same thing. What's the difference? _getOb() is part of the ObjectManager

Re: [Zope-dev] RE: [Zope] Zope Good/Bad News Article

2001-02-27 Thread Shane Hathaway
Brian Lloyd wrote: DC should encourage and then force developers to be a bit better about documentation. I have seen product developers put up a new product with the full amount of documentation about it being "here it is... have fun." This certainly does not help all of those people

Re: [Zope-dev] Zope Development Roadmap Components

2001-02-27 Thread Michel Pelletier
On Tue, 27 Feb 2001, Jimmie Houchin wrote: While reading the Zope Development Roadmap about components I had a question. It says: """Components will be edited via the filesystem as .py files. Components will probably be checked into and out of Zope via a CVS like facility. Components can

Re: [Zope-dev] Zope Development Roadmap Components

2001-02-27 Thread Jimmie Houchin
Yes this is what I was looking for and somewhat expecting. I can understand the challenge in getting ZClass, Py/Perl Script, "composite components" done right. In fact to me they could easily make things more complex. Potentially more complex process and more complex machinery to handle it. I

[Zope-dev] CopySupport issues

2001-02-27 Thread richard
These comments are against the CVS of about a week ago. I can't get to the CVS to update at the moment - the connection times out. Is there a reason why the manage_main call at the end of manage_copyObjects and manage_cutObjects in CopySupport gets called as self.manage_main(REQUEST) instead of