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. thanks D _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx
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.
participants (2)
-
davis marques -
Felix Ulrich-Oltean