Re: [Zope] Visibility and CopyPaste support
Willi Langenberger wrote: Is there a way to hide products from the product add list without losing the ability to paste its corresponding objects? I'm not aware of anything, I'd put a description of this problem into the collector :-S Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Visibility and CopyPaste support
On 9/1/05, Chris Withers [EMAIL PROTECTED] wrote: Willi Langenberger wrote: Is there a way to hide products from the product add list without losing the ability to paste its corresponding objects? I'm not aware of anything, I'd put a description of this problem into the collector :-S I've entered this a feature request now on the zope collector. Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Visibility and CopyPaste support
I've understood that in product development I have to register all my classes with registerClass() that I want to, as instanciated objects, copy/cut paste. Some of these objects I don't want to encourage people to create via the ZMI and I don't want to clutter up the Add new object drop down with stuff that can't be added. If I register the class, but set 'visibility=None' I still can't copy/cut paste the instanciated objects. Why? What's the point of the 'visibility=None' parameter? -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Visibility and CopyPaste support
According to Peter Bengtsson: Some of these objects I don't want to encourage people to create via the ZMI and I don't want to clutter up the Add new object drop down with stuff that can't be added. If I register the class, but set 'visibility=None' I still can't copy/cut paste the instanciated objects. Why? What's the point of the 'visibility=None' parameter? As this has bitten me the last time... The method CopySupport.py: CopyContainer._verifyObjectPaste is responsible for that. It refuses to paste objects with meta_types, which are not found in the all_meta_types attribute of the target object. And yes, I find it (at least) irritating, that an object cannot be pasted, only because it isn't in the product add list (visibility=None). And the error message (when pasting) does not help either: The object ... does not support this operation. Is there a way to hide products from the product add list without losing the ability to paste its corresponding objects? \wlang{} -- [EMAIL PROTECTED]Fax: +43/1/31336/9207 Zentrum fuer Informatikdienste, Wirtschaftsuniversitaet Wien, Austria ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )