Your create trigger could skip calling dls:document-manage() if the document is empty. That possibly combined with a periodic background task that goes ahead and manages those empty documents if they aren't updated within a minute or two would do the trick.
Are you planning on updating managed documents later on? You'll run into permissions problems if you do that... On Wed, 2010-03-17 at 14:16 -0700, Keith L. Breinholt wrote: > We have a need for users to add managed content via WebDAV. > > > > This seemed pretty straight forward by adding a create trigger that > calls dls:document-manage() on all documents on creation. > > > > However, Win7 and Vista WebDAV clients both write a zero byte file > first and then overwrite it with the real contents of the file. > > > > Because of this version 1 of any document created by these Windows > WebDAV clients are empty. I’ve looked for any way to update version 1 > of a file but I don’t see any way of updating them except to delete > the managed document and start over. > > > > Is there another way? If not we could really use a function > dls:document-update-version-file( $uri, $node, $version ). > > > > Keith L. Breinholt > > Missionary & Public Affairs Portfolio > > [email protected] > > "Do what you can, with what you have, where you are." Theodore > Roosevelt > > > > > > > NOTICE: This email message is for the sole use of the intended > recipient(s) and may contain confidential and privileged information. > Any unauthorized review, use, disclosure or distribution is > prohibited. If you are not the intended recipient, please contact the > sender by reply email and destroy all copies of the original message. > > >
_______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
