Re: [Zope-dev] Re: Acquisition (was: [Zope-dev] Overriding a method in an instance.)

2000-07-11 Thread Toby Dickenson
On Mon, 10 Jul 2000 13:14:17 -0400, Shane Hathaway [EMAIL PROTECTED] wrote: P.S. I wouldn't mind if someone posted this as a HOWTO. :-) I think theres two, slighly different versions in already HOWTOs ;-) Any chance of getting this into the Zope distribution? Toby Dickenson [EMAIL PROTECTED]

[Zope-dev] manage_clone? (amongst others!)

2000-07-11 Thread Chris Withers
I was going to title this 'I should give up using Zope' but I thought I'd give it one last go... Yesterday's 6hrs failing to do a tree-walk-and-copy in DTML failed, so I thought I'd try in an external method today... ..well, that proved to be just as stupid. Okay, firstup, has anything

Re: [Zope-dev] manage_clone? (amongst others!)

2000-07-11 Thread Shane Hathaway
Chris, I'm sorry to hear about your challenges. I've had some myself. I think you're being bitten by a bug which prevented manage_clone from working in a lot of situations, but is solved in 2.2. The problem was that when a new object was placed in a container, it didn't get a _p_jar attribute

[Zope-dev] error adding specialist

2000-07-11 Thread Steve Alexander
I've come across an error on trying to add a Specialist. Zope 2.2b4, ZPatterns latest release (ZPatterns-0-4-0a1). Go to the zope management pages, as a Manager. Choose to add a Specialist. Leave the "Create Default Rack of type" drop-down set to "Rack". Put in an appropiate id, such as "test".

Re: [Zope-dev] manage_clone? (amongst others!)

2000-07-11 Thread Chris Withers
Shane Hathaway wrote: Chris Withers wrote: I'm still not clear on this. Why would I need access to the product factory when where.manage_addFolder(id,title) works just fine? I thought manage_addFolder was the product factoy method? manage_addFolder() is to be considered a shortcut,

[Zope-dev] Re: error adding specialist

2000-07-11 Thread Phillip J. Eby
I found this one on Saturday. The problem is that Zope recently changed the way constructors bind to their factory objects, and the "self" that ZPatterns is providing to the constructors is no longer needed. I've changed ZPatterns to fix this (still maintaining 2.1.x compatibility in the

[Zope-dev] Re: error adding specialist

2000-07-11 Thread Steve Alexander
"Phillip J. Eby" wrote: I found this one on Saturday. The problem is that Zope recently changed the way constructors bind to their factory objects, and the "self" that ZPatterns is providing to the constructors is no longer needed. I've changed ZPatterns to fix this (still maintaining

[Zope-dev] Designing with ZPatterns

2000-07-11 Thread Steve Alexander
Quick question on designing with ZPatterns: Is a developer meant to specialise Specialist by defining a subclass, as is the case in LoginManager? Or, given how many plugpoints Specialist has, is it best to instantiate Specialists as-is, and fill them with DTML methods, External methods and

[Zope-dev] Python 2.0 Unicode support

2000-07-11 Thread Toby Dickenson
Announcing version 0.3 of the patches to add Unicode support to Zope. http://www.zope.org/Members/htrd/wstring This version uses the built-in unicode support new to Python 2.0 to provide Unicode strings in ZPublisher, property pages, and property sheets, and DTML. Any feedback gratefully

Re: [Zope-dev] Designing with ZPatterns

2000-07-11 Thread Phillip J. Eby
At 03:39 PM 7/11/00 +0100, Steve Alexander wrote: Quick question on designing with ZPatterns: Is a developer meant to specialise Specialist by defining a subclass, as is the case in LoginManager? Or, given how many plugpoints Specialist has, is it best to instantiate Specialists as-is, and fill

[Zope-dev] Pickling Error and Method Delegation

2000-07-11 Thread Kapil Thangavelu
What I am trying to do: I am developing a python product that is has several composed 'helper' classes. I am trying to setup a method delegation service to have certain methods of the helper classes called directly on the container. the helper methods are defined in a text list called

Re: [Zope-dev] zope and UNIX permissions

2000-07-11 Thread Bill Anderson
Chris McDonough wrote: Using gnutar, untarring as the root user preserves ownership on expansion by default. Not sure if FreeBSD uses gnutar (I imagine not), but this is the case with gnutar under Linux. I think this is what happened to him... he said he could not use the RPM release and

[Zope-dev] User not in User Folder problem solved! :-)

2000-07-11 Thread Chris Withers
Brian Lloyd wrote: That's a problem. Root index_html is viewable by Anonymous user - Zope should not complain about wrong (not in acl_users) login/password. It seems Zope doesn't like being presented with Authentication information it knows nothing about. A more graceful way of

[Zope-dev] ZPatterns -- trigger add events not working

2000-07-11 Thread Steve Alexander
I have a GenericTrigger in a Folder with Customizer support. When I set it to trigger upon Add, my method doesn't get triggered when I add a new DataSkin-derived-ZClass instance. However, when I set it to trigger on Change, my method gets called on adding a new DataSkin. I can't see anything

Re: [Zope-dev] ZPatterns -- trigger add events not working

2000-07-11 Thread Steve Alexander
"Phillip J. Eby" wrote: This would explain why you only get a change event, since if add happens after change, it is ignored. I'm curious how the change event is getting called first, since... Oh. I'll bet I know what it is. It's probably that manage_afterAdd is being called later in the

Re: [Zope-dev] ZPatterns -- trigger add events not working

2000-07-11 Thread Steve Alexander
"Phillip J. Eby" wrote: This would explain why you only get a change event, since if add happens after change, it is ignored. I'm curious how the change event is getting called first, since... Oh. I'll bet I know what it is. It's probably that manage_afterAdd is being called later in

[Zope-dev] Zope 2.1.6 packages

2000-07-11 Thread Alexandre A. Drummond Barroso
It would be a good idea to change the user/group that owns any file in the Zope tree to nobody.nobody before packaging the product (src and linux packages) instead of delivering with user 509. When this user number is already used, and someone is testing Zope as a simple user (not root) the

[Zope-dev] zope and UNIX permissions

2000-07-11 Thread Leonardo Kenji Shikida
this is also what I am talking about! - Original Message - From: Alexandre A. Drummond Barroso [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 11, 2000 7:59 PM Subject: [Zope-dev] Zope 2.1.6 packages It would be a good idea to change the user/group that owns any file in

Re: [Zope-dev] zope and UNIX permissions

2000-07-11 Thread Chris McDonough
Bill Anderson wrote: He seemed to be mostly griping about files that were wide open (777). On 2.2.0b4 the only ones I get are: lrwxrwxrwx1 root root 13 Jul 11 01:36 lib/python/ZEO/cPickle.so - ../cPickle.so lrwxrwxrwx1 root root 13 Jul 11 01:36 lib/python/ZServer -

Re: [Zope-dev] zope and UNIX permissions

2000-07-11 Thread Bill Anderson
Chris McDonough wrote: Bill Anderson wrote: He seemed to be mostly griping about files that were wide open (777). On 2.2.0b4 the only ones I get are: lrwxrwxrwx1 root root 13 Jul 11 01:36 lib/python/ZEO/cPickle.so - ../cPickle.so lrwxrwxrwx1 root root 13 Jul 11 01:36