[Zope] checking the clipboard

Felix Ulrich-Oltean felix@chaptereight.com
Wed, 17 Jul 2002 20:56:20 +0100


Check the source of ObjectManager.py, method manage_main and see how
the ZMI does it.  You should find it in

ZOPE_DIR/lib/python/OFS/ObjectManager.py and
ZOPE_DIR/lib/python/OFS/dtml/main.dtml.

Search for "Paste" and you'll find the submit button for paste,
surrounded by <dtml-if cb_dataValid>.

Hope that helps,

Felix.

On Wed, Jul 17, 2002 at 12:27:44PM -0700, davis marques wrote:
> I'd like to have the Paste button show up when there are contents on the 
> clipboard to paste (just like in the ZMI). I presume this bit of 
> functionality has to be performed with a Python script.  I'm wondering if 
> someone could give me a clue as to how one can check to see if the 
> clipboard has anything on it.