[Zope-dev] Re: names starting with '@' are not reserved

2006-03-15 Thread yuppie
Hi Philipp! Philipp von Weitershausen wrote: Dieter Maurer wrote: Chris McDonough wrote at 2006-3-13 10:21 -0500: ... silly id restrictions ... Here's my current monkeypatch to Zope to unrestrict a good number of characters: def patch_objectmanager_badid(): Causes Zope to be less

Re: [Zope-dev] App.Product - distribution related code?

2006-03-15 Thread Andreas Jung
--On 14. März 2006 21:14:33 +0100 Andreas Jung [EMAIL PROTECTED] wrote: lib/python/App/Product.py contains code that deals *somehow* with distributions (whatever this means). Does any one know what this code is doing?...anyway this code uses the Python rotor module which was removed in Python

Re: [Zope-dev] Re: PDBDebugMode 0.1 Release

2006-03-15 Thread Chris Withers
Paul Winkler wrote: Unfortunately zdb doesn't appear to work with zope 2.9 / python 2.4. I'll file a bug report with Chris. It works great with zope 2.8 / python 2.3. I'll try and fix this today... Chris ___ Zope-Dev maillist - Zope-Dev@zope.org

[Zope-dev] RE: How to delete an object given a path in Zope

2006-03-15 Thread Takahashi, Michael
Hi Suresh, I've actually tried that. The problem I run into is that the folder in my path contains a dash. When I call manage_delObjects on the following: obj = context.restrictedTraverse('webcasts/courses/2005-2006/temp') id = obj.getId()

[Zope-dev] Re: How to delete an object given a path in Zope

2006-03-15 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Takahashi, Michael wrote: Hi Suresh, I've actually tried that. The problem I run into is that the folder in my path contains a dash. When I call manage_delObjects on the following: obj =

[Zope-dev] Re: How to delete an object given a path in Zope

2006-03-15 Thread Max M
Tres Seaver wrote: Takahashi, Michael wrote: I've actually tried that. The problem I run into is that the folder in my path contains a dash. When I call manage_delObjects on the following: obj = context.restrictedTraverse('webcasts/courses/2005-2006/temp') You need to get a reference to

Re: [Zope-dev] How to delete an object given a path in Zope

2006-03-15 Thread Dieter Maurer
Takahashi, Michael wrote at 2006-3-14 12:25 -0800: ... Using restrictedTraverse I'm able to get the object by its path. I then want to delete this object. When you have an object obj inside the site hierarchy, then obj.aq_inner.aq_parent is its container (in this hierarcy). Therefore, an

Re: [Zope-dev] Re: names starting with '@' are not reserved

2006-03-15 Thread Dieter Maurer
yuppie wrote at 2006-3-15 11:23 +0100: ... Zope 2's checkValidId makes sure this doesn't happen with Zope 2 folder methods, Zope 3's NameChooser makes sure this doesn't happen with Zope 3 folder views. Even the bad_id-patch described above doesn't allow to override folder methods. Maybe, the

[Zope-dev] Re: names starting with '@' are not reserved

2006-03-15 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dieter Maurer wrote: yuppie wrote at 2006-3-15 11:23 +0100: ... Zope 2's checkValidId makes sure this doesn't happen with Zope 2 folder methods, Zope 3's NameChooser makes sure this doesn't happen with Zope 3 folder views. Even the bad_id-patch

[Zope-dev] Re: How to delete an object given a path in Zope

2006-03-15 Thread suresh
Takahashi, Michael wrote: I am trying to figure out how to delete an object in Zope given a path. snip Any help is greatly appreciated. You want to call manage_delObjects on the parent folder and give it the list of ids. ___ Zope-Dev