Bug 632 - [Chameleon - MapDHTMLWidget] Rename widget to MapDHTML
: [Chameleon - MapDHTMLWidget] Rename widget to MapDHTML
Status: RESOLVED FIXED
: Chameleon
Widget
: 1.99
: PC Windows 2000
: P2 trivial
: 2.0 RC 1
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2004-08-25 18:25 by
Modified: 2004-12-08 14:54 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2004-08-25 18:25:07
[Chameleon - MapDHTMLWidget] Rename widget to MapDHTML 

Please rename MapDHTMLWidget to MapDHTML. There is no need to have the word
widget in the name.
------- Comment #1 From 2004-10-12 22:24:46 -------
do for RC1.
------- Comment #2 From 2004-11-03 15:21:12 -------
accepted for RC1.
------- Comment #3 From 2004-11-08 15:37:56 -------
need to implement widget name deprecation system.
------- Comment #4 From 2004-11-11 22:03:22 -------
done in cvs.  MapDHTMLWidget was moved to MapDHTML and all files updated.  The
new widget renaming architecture is in place.

MapDHTMLWidget will work in version 1.99, 2.0 and 2.1.  In version 2.2, a
warning will be triggered.  In version 2.4, an error will occur.

To test this, change the defined version numbers in chameleon.php (new addition
for this bug).  If you want to change something, please read comments in
chameleon.php and WidgetManager.php before telling me it doesn't work.
------- Comment #5 From 2004-12-02 13:47:21 -------
I tested it by setting the version to 2.2 inside chameleon.php:  a warning pops
up-->great.

I set the version to 2.4:  an error pops up-->excellent.

I set the version to 2.5:  no more warning, no more error.  I thing an error
should pop up.

Chameleon CVS 20041202.
------- Comment #6 From 2004-12-02 13:50:51 -------
Ok, I am dead.  I read in WidgetManager.php again.  No error message should
appear but widget should appear in RED in the template.  That's ok.  But I tried
that and it didn't appear in RED.
------- Comment #7 From 2004-12-02 14:52:28 -------
If I change the defines to:

define( "CHAMELEON_MAJOR_VERSION", "2" );
define( "CHAMELEON_MINOR_VERSION", "5" );
define( "CHAMELEON_POINT_VERSION", "0" );
define( "CHAMELEON_STATE_VERSION", "" );

in chameleon.php and then load sample_basic.phtml, I get the MapDHTMLWidget tag
in red AND an error report popup that says there is no such widget as MapDHTMLWidget

what did you do that was different?
------- Comment #8 From 2004-12-02 15:49:45 -------
I made this setting:

define( "CHAMELEON_MAJOR_VERSION", "2" );
define( "CHAMELEON_MINOR_VERSION", "5" );
define( "CHAMELEON_POINT_VERSION", "0" );
define( "CHAMELEON_STATE_VERSION", "beta3" );

I used the same application that you used.

If I try this setting:


define( "CHAMELEON_MAJOR_VERSION", "2" );
define( "CHAMELEON_MINOR_VERSION", "4" );
define( "CHAMELEON_POINT_VERSION", "0" );
define( "CHAMELEON_STATE_VERSION", "beta3" );

I got an error message but no RED link.

(I updated both chameleon and php_utils)
------- Comment #9 From 2004-12-02 16:52:27 -------
More info:

I still have the MapDHTMLWidget directory under chameleon/htdocs/widgets
directory (I think it is what we expected from a user installation).  (Also I
don't know if it has an impact but the maturity level for this widget and the
MapDHTML widget is still BETA).

I asked Julien to test this issue.  He still have the MapDHTMLWidget directory
as well (MapDHTMLWidget maturity level not set, MapDHTML maturity level set to
BETA and Chameleon maturity level set to BETA).  He got the following results:

Chameleon version                         result
2.1, 2.2              Widget deprecated warning + map appears 
2.3, 2.4              Widget deprecated warning + NO map + maturity level error
2.5                   NO map + maturity level error

He never got the RED link.

Question:

Should Chameleon check for the maturity level first and then check for the
widget deprecation after?

What will be the scenario for Chameleon future release in relation with widget
deprecation e.g. MapDHTMLWidget:?  Will it be:

-Version 2.2:  MapDHTMLWidget directory still there and a warning appears and
-Version 2.4:  MapDHTMLWidget directory removed and an error message appears?
------- Comment #10 From 2004-12-02 20:09:46 -------
The MapDHTMLWidget directory has already been removed (as with the other
deprecated widgets) and they will not be distributed with the next version.  The
only people who will run into this problem are the cvs users, and my email on
this subject was fairly clear about having to manually remove this directory. 
Also, if you pay close attention to your cvs update, it will tell you that there
is a problem with the MapDHTMLWidget directory as it has a CVS subdirectory but
the server knows nothing about it.

I have tested with your exact defines (and no MapDHTMLWidget directory) and it
works for me.  Since version 2.4 is a long way in the future, I do not expect
this to be an issue and I am not going to try to detect it.  Please remove the
MapDHTMLWidget directory and retest.
------- Comment #11 From 2004-12-03 09:51:28 -------
For Chris' eyes only.  Please Chris when you have some time verify that you
obtain the same results.

I checkout a new fresh version of Chameleon and php_utils.  I checked under
chameleon/htdocs/widgets and there is no MapDHTMLWidget directory.

Version                                    Result
1.99                          No message + MapDHTMLWidget working
2.0,2.1,2.2                   Warning + MapDHTMLWidget working
2.3,2.4                       Two errors + RED link
2.5                           One error + RED link








-----------
Version 2.0, 2.1, 2.2 message:

WARNING: MapDHTMLWidget has been renamed to MapDHTML. Please update your template.


Version 2.3, 2.4 messages:

    * /home/nsavard/proj/chameleon_cvs/htdocs/widgets
    * "ERROR: Widget Definition for class 'MapDHTMLWidget' not found (tag is
<cwc2 type="MapDHTMLWidget" visible="true" width="400" height="300"
allowresize="false" marqueecolor="FF3333" marqueewidth="2" minscale="1"/>).
    * ERROR: MapDHTMLWidget has been renamed to MapDHTML. You must update your
template.

Version 2.5 and greater messages:

    * /home/nsavard/proj/chameleon_cvs/htdocs/widgets
    * "ERROR: Widget Definition for class 'MapDHTMLWidget' not found (tag is
<cwc2 type="MapDHTMLWidget" visible="true" width="400" height="300"
allowresize="false" marqueecolor="FF3333" marqueewidth="2" minscale="1"/>).
------- Comment #12 From 2004-12-03 10:58:34 -------
I get no MapDHTMLWidget Directory. Is this your expected result Norm?
------- Comment #13 From 2004-12-03 11:25:29 -------
No.  I want you to verify if you have the same messages and behaviour as I got
when changing version in chameleon.php.  Use sample_basic.phtml and MapDHTMLWidget.
------- Comment #14 From 2004-12-08 09:07:05 -------
Chris, reassigning to you since this is now held up by you.  I think that we can
mark this as fixed since we are now in the verification stage.
------- Comment #15 From 2004-12-08 14:54:08 -------
I recieved the same result as Norm in Comment #11 
Setting to Fixed in CVS.