Hi all, Got a weird problem with Zope... One of our user reported the following issue (under Zope 2.6.0): One html page makes use of the <EMBED> tag to show and play a MPEG video using the Windows Media Player. When we tried to edit that page for a minor text revision and saved that page, Zope did throw a 'Dynamic tag "embed" not allowed.'... and the change made to the page was lost. We then decided to remove the <EMBED> tag, just did a cut, and proceeded with the text revision. It worked but as one could expect we couldn't get the <EMBED> tag pasted into the document without having Zope complaining about that tag. Therefore a simple question: how do we get Zope to properly deal with this <EMBED> tag again? Is it is a configuration problem? Any idea? Regards David De Maeyer ___________________________________________________________________________ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com
--On 21. November 2005 17:07:43 +0100 David De Maeyer <bioman226@yahoo.fr> wrote:
Therefore a simple question: how do we get Zope to properly deal with this <EMBED> tag again? Is it is a configuration problem?
I don't know of any code in Zope that deals with the EMBED. The HTML generated through your programming is "just" send back to the client. Please provide an example to reproduce your issue. -aj
----- Original Message ----- From: "David De Maeyer" <bioman226@yahoo.fr> To: <zope@zope.org> Sent: Monday, November 21, 2005 11:07 AM Subject: [Zope] <EMBED ...> problem
Hi all,
Got a weird problem with Zope... One of our user reported the following issue (under Zope 2.6.0):
One html page makes use of the <EMBED> tag to show and play a MPEG video using the Windows Media Player. When we tried to edit that page for a minor text revision and saved that page, Zope did throw a 'Dynamic tag "embed" not allowed.'... and the change made to the page was lost.
We then decided to remove the <EMBED> tag, just did a cut, and proceeded with the text revision. It worked but as one could expect we couldn't get the <EMBED> tag pasted into the document without having Zope complaining about that tag.
Therefore a simple question: how do we get Zope to properly deal with this <EMBED> tag again? Is it is a configuration problem?
Any idea?
I tried the following quick dtml method in zope 2.6.4 and it worked ok: <dtml-var standard_html_header> <embed src="sample.mov" width="160" height="144" autoplay="true" controller="false" pluginspage="http://www.apple.com/quicktime/download/"> </embed> <dtml-var standard_html_footer> so I am guessing that your problem is not the <embed></embed> tags Jonathan
Hi Jonathan, Just gave a tried, actually I had tried the same as you suggested but it doesn't work. We have a site, say www.mysite.com, and we access the CMS system via admin.mysite.com. One of the page displays a rather simple text and displays a video using the Windows Media Player plugin. We wanted to edit the text on that page, using the Edit form, we did the modification and then tried to save via Change and View. The system returned a 'Dynamic tag "embed" not allowed.'; as a matter of fact, switching between Visual Mode and HTML Mode revealed the <embed ...> tag. Removing the tag allowed us to modify the page. But once we placed the tag in the page again, we got the same error message. Say we had a page test.html; seen from the Edit form (HTML Mode) one could see: <p>Paragraph 1 starts here.</p> <embed ...> </embed> <p><a ...>Download movie here</a></p> <p>End</p> This worked fine but we could not change the text. Say we would like to have instead of the above text: <p>Paragraph 1 starts here.</p> <embed ...> </embed> <p><a ...>Download movie here</a></p> <p>Another end</p> Doing a Change and View will not work and "End" will not be replaced by "Another end" and will throw a "Dynamic tag "embed" not allowed". Removing the <embed> tag from the page, doing the text replacement followed by Change and View will however work: <p>Paragraph 1 starts here.</p> <p><a ...>Download movie here</a></p> <p>Another end</p>
From that point, it is impossible to put the <embed> tag into the page again, at least from the Edit form of admin.mysite.com.
I must have missed something here... Two things: somebody succeeded in placing a dynamic tag <embed> a page but the Edit form won't allow us to modify that page because such a dynamic tag seems not to be allowed... Weird... Regards David ___________________________________________________________________________ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com ___________________________________________________________________________ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com
Am Montag, den 21.11.2005, 21:59 +0100 schrieb David De Maeyer:
Hi Jonathan,
Just gave a tried, actually I had tried the same as you suggested but it doesn't work.
We have a site, say www.mysite.com, and we access the CMS system via admin.mysite.com. One of the page displays a rather simple text and displays a video using the Windows Media Player plugin.
We wanted to edit the text on that page, using the Edit form, we did the modification and then tried to save via Change and View. The system returned a 'Dynamic tag "embed" not allowed.'; as a matter of fact, switching between Visual Mode and HTML Mode revealed the <embed ...> tag.
Removing the tag allowed us to modify the page. But once we placed the tag in the page again, we got the same error message.
Looks like you have some CMS based on Zope. So w/o knowledge of the nature of that system, nobody here can help you. Try to contact the admin or whoever installed it or the author. With basic Zope objects you would not have such messages so there must be any custom workflow which parses your text and strips/forbids tags.
Are you using CMF? If so, CMFDefault.utils has a function (isHTMLSafe) that strips tags like embed. José Henrique. 2005/11/21, David De Maeyer <bioman226@yahoo.fr>:
Hi all,
Got a weird problem with Zope... One of our user reported the following issue (under Zope 2.6.0):
One html page makes use of the <EMBED> tag to show and play a MPEG video using the Windows Media Player. When we tried to edit that page for a minor text revision and saved that page, Zope did throw a 'Dynamic tag "embed" not allowed.'... and the change made to the page was lost.
We then decided to remove the <EMBED> tag, just did a cut, and proceeded with the text revision. It worked but as one could expect we couldn't get the <EMBED> tag pasted into the document without having Zope complaining about that tag.
Therefore a simple question: how do we get Zope to properly deal with this <EMBED> tag again? Is it is a configuration problem?
Any idea?
Regards
David De Maeyer
___________________________________________________________________________ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
participants (5)
-
Andreas Jung -
David De Maeyer -
Jonathan -
José Henrique -
Tino Wildenhain