[Cartoweb-dev] Re: Cartoweb Coreplugins extending

PORTANERI Franck fportaneri.ext at rd.francetelecom.com
Mon Jun 27 09:08:02 EDT 2005


Any input here?

I don't if this is linked or not, but I also noticed a bug when I create 
some new icons into projects/myProject/coreplugins/query/htdocs/gfx/ to 
override the coreplugins/query/htdocs/gfx/ ones:
As soon as a directory projects/myProject/coreplugins/query/htdocs/gfx 
exists, the new icon installed there are not shown under the browser 
(file not found).
The html source shows a tag <img src="myProject/query/gfx/query.gif" 
...>  which is not available
If no new icon are installed in that dir or if they are just renamed, 
the html tag shows <img src="query/gfx/query.gif" ...> and works.

This is not a major issue, but is this a bug? linked with the 
replacePlugin() function issue? 
Or should we have to define an Alias directory in the httpd.conf? (I 
didn't find ant mention of that in the documentation)
Any feedback should be appreciated!

Franck

PORTANERI Franck wrote:

> Hi,
>
> I am trying to implement an extend of the query coreplugins to allow a 
> polygonal selection in addition of the bbox one.
> I tried the two approaches :
>
> 1- The Overrinding method is working well, the new common/Query.php, 
> client/ClientQuery.php  server/project/ServerQuery.php are well 
> dynamically loaded and replace the default query coreplugins.
>
> 2- The Extending method is more complicated.
> I wrote the new classes ClientProjectQuery, ServerProjectQuery witch 
> extend the ClientQuery and ServerQuery classes, implement my own 
> functions and the required replacePlugin() function witch returns 
> 'query'.  I add the following in the conf file too:
>
> server_conf/project/query.ini:
>    loadPlugins = projectQuery
> client_conf/client.ini
>    loadPlugins = projectQuery
>
> Only the ClientProjectQuery seems to be loaded (replacePlugin() of 
> this class is well called, I put a debug trace in it), while I have NO 
> trace of the replacePlugin()  of  ServerProjectQuery in my logs. The 
> new plugin is not loaded and the default one seems to run instead.
>
> Did I forgot something?
> Thanks,
> Franck
>
> -- 
>
>
>

-- 
Franck Portaneri
tel: 04 92 94 52 41




More information about the Cartoweb-dev mailing list