I would suggest filing a bug against Zope. This seems like a somewhat
annoying if generally harmless behavior, and the Zope folks may or may
not be interested in correcting it. If not, I believe we have some
utility method available for converting strings into valid CSS ids.
Alec
On Thu, Oct 29, 2009 at 10:38 PM, Radim Novotny <
[hidden email]> wrote:
> Hi,
>
> I'm sorry, but I've introduced bug in Plone 4 by fixing bug for Plone 3
> -
http://dev.plone.org/plone/ticket/9681>
> I know how to fix it, but there is another problem with template id,
> which is caused by Zope 2.12.
> In Zope 2.12, template id property (or getId) is defined as:
> basename(self.filename)
> It means, PT defined in file folder_contents.pt has template/id
> "folder_contents.pt". That is fine. Main_template exprression
> <body tal:attributes="class string:template-${template/id}"> results in
> <body class="template-folder_contents.pt"> which is unusable for styling
> due to dot in the css class. It works fine for non browserview
> templates. Their ID seems to be non conflicting.
>
> What should be correct solution for this problem ? Add method to @@plone
> BrowserView, compute class name here and remove all dots from the result ?
>
> Regards,
> --
> Radim Novotny
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>
http://p.sf.net/sfu/devconference> _______________________________________________
> Plone-developers mailing list
>
[hidden email]
>
https://lists.sourceforge.net/lists/listinfo/plone-developers>
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference_______________________________________________
Plone-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-developers