> I have a problem with Macro events handling, wonder if 
> anybody can suggest a solution.
> 
> The case is rather simple. Every Webdav resource needs to 
> have an unique ID.
> So when a new resource is created this property is added to 
> its descriptor.
> Easily implemented using the Create content event listener.
> 
> OK, now when a resource is copied the destination resource 
> should have its ID property changed. At the same time when a 
> resource is moved its ID property's value should not be 
> modified. And here's the problem - the Move macro operation 
> is performed as the combination of the Copy and Delete 
> operations. So a _Copy_ macro event is fired whenever a 
> _Move_ action happens. Therefore, the moved resource's ID 
> property is changed by the Copy event handler! So the first 
> question is - is there any easy way to determine if this Copy 
> event is in fact issued by the Move action?

Well, the simple solution is to analyze a stack trace... not quite elegant
though so I still think I might miss something about the events...

Yours sincerely,
Andrey.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to