[Chameleon-dev] [Bug 367] optional compress format in ExtractWFSData

bugzilla-daemon at www.maptools.org bugzilla-daemon at www.maptools.org
Mon Jul 5 14:15:52 EDT 2004


http://www.maptools.org/bugzilla/show_bug.cgi?id=367





------- Additional Comments From pspencer at dmsolutions.ca  2004-07-05 14:15 -------
There is some confusion in the last couple of comments.  compressformats does
not control compression or no compression, it controls the list of available
compression formats available to the user.

The Chameleon solution to this problem is to make compressformats optional with
the default being all available compression formats.  For instance, in the code
for the widget we would declare a member variable mszCompressFormats with a
default value of "zip,tgz,tar" so that if the template designer did not provide
the compressformats attribute in the widget, a legal and useful value will be
used (which is to provide all available compression formats).  Then in the case
of building an application for a specific client such as Bart's, the template
designer could include compressformats="zip" so that only ZIP is listed as a
valid compression format.

The real solution is to remove compressformats and add subtags to list the
compression formats.  Specifically, the compression checkbox would be removed
and the list would be formed from subtags like:

<format name="zip" type="zip" default="true"/>
<format name="compressed tar" type="tgz" default="false"/>
<format name="no compression" type="none" default="false"/>
...

with no formats listed, the default list would appear (none, zip, tgz, tar). 
When formats are listed, then they would be used instead.  This would allow
complete control over the presentation and setting of the default option etc.



------- 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