[opencms-dev] deleting a file

bart vandendriessche bart at nascom.be
Wed Dec 22 16:35:04 CET 2004


hmm, i'm shooting from the hip again, i meant unlocking is not the 
solution, typo :)

I currently have the following code:

try {
            cmso.lockResource(file, true);
            cmso.deleteResource(file);
            cmso.unlockResource(file);
            cmso.publishResource(file);
        } catch ( CmsException cmse ) {          
            return false;
        }

which is returning false.

Thanks for the answer, sorry i didn't phrase the problem properly.

-bart

Thomas Maerz wrote:

>bart vandendriessche <bart at nascom.be> writes:
>
>  
>
>>One more thing, locking the resource before publishing it is not the
>>solution, just tried that again as well.
>>    
>>
>
>Unlock the resource before publishing.
>
>Regards,
>Thomas
>
>
>
>_______________________________________________
>This mail is send to you from the opencms-dev mailing list
>To change your list options, or to unsubscribe from the list, please visit
>http://mail.opencms.org/mailman/listinfo/opencms-dev
>
>  
>




More information about the opencms-dev mailing list