i'm trying to use the tabber widget, my template code looks like this:

----------------------------------
<?python import sitetemplate ?>
<html xmlns="http://www.w3.org/1999/xhtml"; xmlns:py="http://purl.org/
kid/ns#" py:extends="sitetemplate">
        <head>
                <link id="css_link" href="/static/css/edit_stylesheet.css"
rel="stylesheet" type="text/css" />
        </head>

        <body>
                <div py:replace="widgets['browser'](value=values['browser'])"
>Browser Content</div>
                <div id="content">
                        <div py:if="tg_flash" class="flash" 
py:content="tg_flash"></div>
                        <h1 py:if='object'>Edit ${object.index}</h1>
                        <div py:if="object and hasattr(object,'images')" 
class='tabber'>

                                <div class='tabbertab'>
                                        <h2 py:if='object'>Information</h2>
                                        <p py:if='object' 
py:replace="widgets['form']
(value=values['form'],options=options['form'],action=actions['form'] )">Form
Content</p>
                                </div>
                                <div class='tabbertab'>
                                        <h2 py:if='object'>Images</h2>
                                        <p py:if="object and not 
isinstance(object,str) and
hasattr(object,'images')" py:replace="widgets['edit_image']
(object,options=values['browser']['current_type'])">Image Editor</p>
                                </div>
                        </div>
                        <div py:if="object and not hasattr(object,'images')">
                                <h3 py:if='object'>Information</h3>
                                <p py:if='object' py:replace="widgets['form']
(value=values['form'],options=options['form'],action=actions['form'] )">Form
Content</p>
                        </div>
                </div>
        </body>
</html>
----------------------------------------

The tabs render correctly, but for some reason the rendered code looks
like this in the head block:


-----------------------------------------
<head>
        <meta content="text/html; charset=utf-8" http-equiv="content-type" />
        <link media="all" href="/tg_widgets/cha_tg/css/toggle.css" type="text/
css" rel="stylesheet" />
        <link media="screen" href="/tg_widgets/turbogears.widgets/tabber/
tabber.css" type="text/css" rel="stylesheet" />
        <link media="all" href="/tg_widgets/turbogears.widgets/calendar/
calendar-system.css" type="text/css" rel="stylesheet" />
        <script src="/tg_widgets/cha_tg/javascript/jquery.js" type="text/
javascript"></script>
        <script src="/tg_widgets/cha_tg/javascript/toggle.js" type="text/
javascript"></script>

        <script type="text/javascript">document.write('&lt;style type="text/
css">.tabber{display:none;}&lt;\/style>');</script>
        <script src="/tg_widgets/turbogears.widgets/calendar/calendar.js"
type="text/javascript"></script>
        <script src="/tg_widgets/turbogears.widgets/calendar/calendar-
setup.js" type="text/javascript"></script>
        <script src="/tg_widgets/turbogears.widgets/calendar/lang/calendar-
en.js" type="text/javascript"></script>
        <title>Cherry Huffman Architects PA </title>
        <link href="/static/css/edit_stylesheet.css" type="text/css"
id="css_link" rel="stylesheet" />
</head>
-------------------------------------

The thing to see in there is the 'document.write('&lt;style type="text/
css">.tabber{display:none;}&lt;\/style>');' line, which adds the text
in the subject line to each page.  Why is it doing this?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to