[opencms-dev] need that code be fixed - 7.0.5

Christoph P. Kukulies kuku at physik.rwth-aachen.de
Thu Jul 23 18:58:09 CEST 2009


On Thu, Jul 23, 2009 at 05:43:32PM +0100, Jonathan Woods wrote:
> CmsLockType.TEMPORARY? 

This didn't work either.
I solved it:
 cmso.lockResourceTemporary(filename);

Thanks.

--
Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de

> > I tried it under 7.0.5 and wnated to run it under 7.5.0 also and it
> > misbehaves:
> > 
> > An error occurred at line: 77 in the jsp file:
> > /WEB-INF/jsp/offline/sites/mysite/sitemap.jsp
> > CmsLock.TEMPORARY cannot be resolved
> > 74:  String s_filecontent="<?xml version=\"1.0\" encoding=\"UTF-8\"
> > ?>\n<urlset xmlns=\"http://www.google.com/schemas/sitemap/0.84\">";
> > 75:
> > cmso.getRequestContext().setCurrentProject(cmso.readProject("O
> > ffline"));
> > 76: if (cmso.existsResource(filename)) {
> > 77:        cmso.lockResource(filename,CmsLock.TEMPORARY);
> > 78:         cmso.deleteResource(filename,
> > 79: CmsResource.DELETE_PRESERVE_SIBLINGS);
> > 80:         if (cmso.existsResource(filename)) {
> > 
> > 
> > Any clues how to fix this for 7.x?



More information about the opencms-dev mailing list