[Zope] allowing _mm folder?
Chris Withers
lists at simplistix.co.uk
Thu Mar 25 04:38:18 EST 2004
Andrew Altepeter wrote:
> 1) Add a site access rule in the root folder, that replaced any '_mm'
> items in the TraversalRequestNameStack with 'mm_'
How're you preventing your users from adding objects called 'mm_'?
;-)
> 2) in OFS.Folder.manage_addFolder, add an if statement that maps _mm to
> mm_
Should probably do that in a subclass :-/
> 3) changed OFS.ObjectManager.objectItems to:
> def objectItems(self, spec=None):
> return [ ((id=='mm_' and '_mm' or id), self._getOb(id)) for id in\
> self.objectIds(spec) ]
>
> This allowed me to access '_mm' as a folder, through ZMI, normal
> published object, and ftp. I do believe there are a couple more places
> in ObjectManager that need to map _mm to mm_. One I can think of is
> _delObject
Yeah, sounds like a lot of pain and suffering :-S
> Even though I got this piece working, I was still unable to get
> Macromedia Contribute to function. It wouldn't even let me connect via
> ftp to zope. Well, it would connect, but then it would tell me that
> access was denied. Checking the access logs, it looks like everything
> it was trying was successful (except for doing a chmod on a temporary
> file it created).
So what was failing then?
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
More information about the Zope
mailing list