[Chameleon-dev] [Bug 607] [Chameleon] LegendTemplate not found problem

bugzilla-daemon at www.maptools.org bugzilla-daemon at www.maptools.org
Fri Aug 27 08:39:54 EDT 2004


pspencer at dmsolutions.ca changed:

           What    |Removed                     |Added
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED

------- Additional Comments From pspencer at dmsolutions.ca  2004-08-27 08:39 -------
um.  I see the problem and there isn't a quick solution.  Basically, Chameleon
needs to find that file in a different location depending on whether the app is
the service instance or a local app using the chameleon API.  The problem is
that in the service instance mode, there is no way to tell chameleon where to
search relative to.

I've modified cwc2.php and LegendTemplate.widget.php to attempt to work around
this issue.  It is now necessary for cwc2 to preserve the URLs to the remote
templates that it was invoked with (previously they were just cached locally)
and to provide a method for getting the current template.  The LegendTemplate
now checks to see if the main application object is a ServiceInstanceApp and
will attempt to find templates relative to the current application template's
URL if appropriate.

Fixed code is in Jeff's hands for testing and committing to cvs.

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the Chameleon-dev mailing list