If I have something like this:
layout.kid
...
<div py:if="defined('getContent')" py:replace="getContent()">
...
newaccount.kid
<div ... py:layout="'layout.kid'">
...
<div py:def="getContent()">
${newAccountForm(**newAccountData)}
</div>
...
newAccountForm = TableForm(name='newAccountForm',
action='saveAccount', submit_text='Save',
fields=[TextField(name='userName', label='User Name:'),
TextField(name='emailAddress', label='Email Address:'),
PasswordField(name='password', label='Password:'),
PasswordField(name='verifyPassword', label='Verify Password:'),
CalendarDatePicker(name='dateOfBirth',
label='Birthday(Optional):')],
hidden_fields=[HiddenField(name='forwardUrl')]
And the problem is that CalendarDatePicker's javascript is not being
included when I use the newaccount template.
How can I fix this?
-Ian
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---