<dtml-with Members> <dtml-with "_.getitem(uname).content"> <dtml-call "manage_copyObjects(ids)"> </dtml-with> <dtml-with "_.getitem(AUTHENTICATED_USER.getUserName()).content"> <dtml-call "manage_pasteObjects()"> </dtml-with> </dtml-with> I call this one and pass a list of ids (ids) and a username (uname) the objects are kept in Members/[username]/content I always get the error: No clipboard data found Anybody any idea? TIA Philipp Dunkel Philipp Dunkel pgp and gnuPG public keys available ICQ# 60149094
This is the third time this question has been asked. (The second time it was me). It appears to be a common problem and noone has yet come up with an answer. Maybe someone from DC could explain what is wrong with the cut/paste code or point out what we are all doing wrong. Once I find an answer I will write a HowTo so that others don't bash thier heads against this like I have for the last week. Yours (slowly going mad about cut&paste) Richard On Tue, 04 Apr 2000, you wrote:
<dtml-with Members> <dtml-with "_.getitem(uname).content"> <dtml-call "manage_copyObjects(ids)"> </dtml-with> <dtml-with "_.getitem(AUTHENTICATED_USER.getUserName()).content"> <dtml-call "manage_pasteObjects()"> </dtml-with> </dtml-with>
I call this one and pass a list of ids (ids) and a username (uname) the objects are kept in Members/[username]/content I always get the error: No clipboard data found
Anybody any idea?
TIA Philipp Dunkel Philipp Dunkel pgp and gnuPG public keys available ICQ# 60149094
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) -- Richard Taylor (Senior Analyst) Information Systems Department (CIS3) Malvern, Woodward Building, Room B106
The Information contained in this E-Mail and any subsequent correspondence is private and is intended solely for the intended recipient(s). For those other than the recipient any disclosure, copying, distribution, or any action taken or omitted to be taken in reliance on such information is prohibited and may be unlawful.
Richard Taylor wrote:
This is the third time this question has been asked. (The second time it was me).
It appears to be a common problem and noone has yet come up with an answer. Maybe someone from DC could explain what is wrong with the cut/paste code or point out what we are all doing wrong.
Once I find an answer I will write a HowTo so that others don't bash thier heads against this like I have for the last week.
Yours (slowly going mad about cut&paste)
Hm, I doubt whether copying and pasting from one method is the way to go. You'd better use manage_clone. See the ZQR (at http://zdp.zope.org) for an outline. It's not much, but I hope it helps ;-) Rik
Philipp Dunkel wrote:
<dtml-with Members> <dtml-with "_.getitem(uname).content"> <dtml-call "manage_copyObjects(ids)"> </dtml-with> <dtml-with "_.getitem(AUTHENTICATED_USER.getUserName()).content"> <dtml-call "manage_pasteObjects()"> </dtml-with> </dtml-with>
I call this one and pass a list of ids (ids) and a username (uname) the objects are kept in Members/[username]/content I always get the error: No clipboard data found
Anybody any idea?
The mechanism is based on cookies, therefore when it goes to paste it cannot find a cookie. Perhaps you can add a suggestion to the Interfaces Wiki about adding a DTML and python interface to cut and paste? http://www.zope.org/Members/michel/Projects/Interfaces -Michel
Michel, I am very sure that it isn't a cookie problem. I was looking at this a few months back, and could find no reason for it not working. I did notice that the copy, cut and clone methods all failed with the same error when called via dtml and external methods, even though I could do the same copy through the management interface manually. It so happened that it wasn't critical to me, so I gave up on it. It would be nice to find out what's going wrong though, any other ideas? Phil phil.harris@zope.co.uk ----- Original Message ----- From: "Michel Pelletier" <michel@digicool.com> To: "Philipp Dunkel" <phidu@gmx.net> Cc: <zope@zope.org> Sent: 04 April 2000 18:54 Subject: Re: [Zope] copy/paste problem with dtml
Philipp Dunkel wrote:
<dtml-with Members> <dtml-with "_.getitem(uname).content"> <dtml-call "manage_copyObjects(ids)"> </dtml-with> <dtml-with "_.getitem(AUTHENTICATED_USER.getUserName()).content"> <dtml-call "manage_pasteObjects()"> </dtml-with> </dtml-with>
I call this one and pass a list of ids (ids) and a username (uname) the objects are kept in Members/[username]/content I always get the error: No clipboard data found
Anybody any idea?
The mechanism is based on cookies, therefore when it goes to paste it cannot find a cookie.
Perhaps you can add a suggestion to the Interfaces Wiki about adding a DTML and python interface to cut and paste?
http://www.zope.org/Members/michel/Projects/Interfaces
-Michel
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Phil Harris wrote:
I did notice that the copy, cut and clone methods all failed with the same error when called via dtml and external methods, even though I could do the same copy through the management interface manually.
I use manage_clone without problems in a method that has the proxy role set to Manage. I can't for the life of me figure out why you'd want to copy paste when manage_clone does just that. -- ethan mindlace fremen mindlace@imeme.net zope -&- imap email -&- mailing list weave your web with the web at http://imeme.net
I can't say as I did want copy/paste, I tried them because clone wasn't working. I haven't tried for a while so I may give it another go in a later version of Zope. ----- Original Message ----- From: "mindlace" <mindlace@imeme.net> To: <zope@zope.org> Sent: 04 April 2000 23:28 Subject: Re: [Zope] copy/paste problem with dtml
Phil Harris wrote:
I did notice that the copy, cut and clone methods all failed with the same error when called via dtml and external methods, even though I could do the same copy through the management interface manually.
I use manage_clone without problems in a method that has the proxy role set to Manage.
I can't for the life of me figure out why you'd want to copy paste when manage_clone does just that.
-- ethan mindlace fremen mindlace@imeme.net zope -&- imap email -&- mailing list weave your web with the web at http://imeme.net
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (6)
-
Michel Pelletier -
mindlace -
Phil Harris -
Philipp Dunkel -
Richard Taylor -
Rik Hoekstra