i18n:attributes DeprecationWarning on Zope head? "Space separated attributes in i18n:attributes are deprecated (i18n:attributes="value title")"
The message makes sense, what should they be replaced with? zope-tests@squishdot.org wrote:
====================================================================== Python Version:2.2.3 (#1, Jun 10 2003, 13:52:48) [GCC 2.95.2 20000220 (Debian GNU/Linux)]
Modules included: Zope (HEAD)
Running unit tests from /stuff/chrisw/ZopeTests/sandbox/Zope /stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/TAL/TALGenerator.py:870: DeprecationWarning: Space separated attributes in i18n:attributes are deprecated (i18n:attributes="value title"). Please use semicolon to separate attributes (i18n:attributes="value; title"). File None at row, column (5, 3) Attributes alt , DeprecationWarning) /stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/TAL/TALGenerator.py:870: DeprecationWarning: Space separated attributes in i18n:attributes are deprecated (i18n:attributes="value title"). Please use semicolon to separate attributes (i18n:attributes="value; title"). File None at row, column (1, 0) Attributes name , DeprecationWarning) /stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/TAL/TALGenerator.py:862: DeprecationWarning: Space separated attributes in i18n:attributes are deprecated (i18n:attributes="value title"). Please use semicolon to separate attributes (i18n:attributes="value; title"). File None at row, column (14, 0) Attributes name title , DeprecationWarning) /stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/TAL/TALGenerator.py:862: DeprecationWarning: Space separated attributes in i18n:attributes are deprecated (i18n:attributes="value title"). Please use semicolon to separate attributes (i18n:attributes="value; title"). File None at row, column (17, 0) Attributes name title , DeprecationWarning) /stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/TAL/TALGenerator.py:870: DeprecationWarning: Space separated attributes in i18n:attributes are deprecated (i18n:attributes="value title"). Please use semicolon to separate attributes (i18n:attributes="value; title"). File None at row, column (1, 0) Attributes value , DeprecationWarning) /stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/TAL/TALGenerator.py:870: DeprecationWarning: Space separated attributes in i18n:attributes are deprecated (i18n:attributes="value title"). Please use semicolon to separate attributes (i18n:attributes="value; title"). File None at row, column (1, 0) Attributes alt , DeprecationWarning) ---------------------------------------------------------------------- Ran 2288 tests in 1155.309s
OK
_______________________________________________ Zope-Coders mailing list Zope-Coders@zope.org http://mail.zope.org/mailman/listinfo/zope-coders
Chris Withers wrote:
/stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/TAL/TALGenerator.py:870: DeprecationWarning: Space separated attributes in i18n:attributes are deprecated (i18n:attributes="value title"). Please use semicolon to separate attributes (i18n:attributes="value; title").
Come on! Someone must have written this code! What does it mean and what should it be changed to? Chris :-(
On Thursday 11 September 2003 08:40, Chris Withers wrote:
Someone must have written this code!
Godefroid was working on this. There are not many other people who could have done that either.
What does it mean and what should it be changed to?
I think the test must be updated. Regards, Stephan -- Stephan Richter CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training
Stephan Richter wrote:
What does it mean and what should it be changed to?
I think the test must be updated.
Arg! I know that! From what to what?! As usual with deprecation warnings, the error is next to useless... "File None at row, column (1, 0) " ...very helpful. Anyone have any idea where these are being emitted from? Chris PS: Wh yare depreaction warnings so useless? We have them from this stuff and from SearchIndex, neither of which tells you what's actually causing the problem. What would be the best way todo that?
Chris Withers wrote:
Stephan Richter wrote:
What does it mean and what should it be changed to?
I think the test must be updated.
Arg! I know that!
From what to what?!
As usual with deprecation warnings, the error is next to useless... "File None at row, column (1, 0) " ...very helpful.
Anyone have any idea where these are being emitted from?
Chris
This all his related to the change in syntax for i18n:attributes in TAL. 2.6 syntax would not let you state message ids to be used for attributes translation. IOW the only syntax accepted was the following : i18n:attributes="value title" (IMHO, this was uncoherent with all TAL enumerations that would need semicolons to separate parts) from 2.7, i18n:attributes let you associate message ids for attributes also (cfr i18n:translate="message-id"). The syntax for attributes with message ids is the following : i18n:attributes="value value-message-id; title title-message-id" This imply that if you don't need to state a message id, the new syntax would be : i18n:attributes="value; title" 2.6 syntax is used a lot at least by Plone. This implies that 2.7 would better be backward compatible or break Plone. It was decided with Jim that 2.7 would be backward compatible and that it would emit DeprecationWarnings for use of old syntax. We found out that this was too strong decision : IOW this emits too many DeprecationWarnings. Sidnei and I have corrected branch 2.7. Currently, DeprecationWarnings are meant to stay on HEAD. This way, 2.8 will have those. IIRC, this process is more Python compliant with an intermediate release not complaining. Those Deprecation Warnings are emitted from TAL/TALGenerator.py. Feel free to replace the message by something more explicit to you. -- Godefroid Chapelle BubbleNet sprl rue Victor Horta, 18 / 202 1348 Louvain-la-Neuve Belgium Tel + 32 (10) 459901 TVA 467 093 008 RC Niv 49849
Godefroid Chapelle wrote:
Sidnei and I have corrected branch 2.7. Currently, DeprecationWarnings are meant to stay on HEAD.
Indeed, this is a good thing...
Those Deprecation Warnings are emitted from TAL/TALGenerator.py.
Feel free to replace the message by something more explicit to you.
I know that, the error message is fine, but there are tests that need to be corrected. Since you know this syntax very well, please can you check out the Zope HEAD, search for tal:attributes and fix and broken tests? I think there are only a few files that need to be changed... cheers, Chris
At 13:24 17/09/2003, Chris Withers wrote:
I know that, the error message is fine, but there are tests that need to be corrected. Since you know this syntax very well, please can you check out the Zope HEAD, search for tal:attributes and fix and broken tests? I think there are only a few files that need to be changed...
Done
cheers,
Chris
-- Godefroid Chapelle BubbleNet sprl rue Victor Horta, 18 / 202 1348 Louvain-la-Neuve Belgium Tel + 32 (10) 459901 TVA 467 093 008 RC Niv 49849
participants (3)
-
Chris Withers -
Godefroid Chapelle -
Stephan Richter