you need to apply that to the INPUT and not the tag CAT. The Password
widget if there is an IS_STRONG validator now "translates" to CAT with the
INPUT followed by a SCRIPT.
Don't know how did you placed your placeholders, but I bet this
form.elements('#auth_user_email')[0]['_placeholder']='placeholdervalue'
will work and will be more stable even if "default" widgets change their
compositions.
BTW: setting placeholders for custom widgets in controllers seems a bad
idea. Those things are better managed by javascript directly on the client
side (as in "set the placeholder only if browser supports it", etc etc etc.)
Il giorno venerdì 30 novembre 2012 17:42:06 UTC+1, Felipe Meirelles ha
scritto:
>
> Well, and is there possible to set his placeholder this way?
>
>
> On Fri, Nov 30, 2012 at 2:31 PM, Niphlod <[email protected]
> <javascript:>>wrote:
>
>> yep, now it carries the script to enable the entropy color codes.
>>
>> Il giorno venerdì 30 novembre 2012 17:21:15 UTC+1, Felipe Meirelles ha
>> scritto:
>>>
>>> def index():
>>> form = auth()
>>> logging.info(form.custom)
>>>
>>> <Storage {'comment': <Storage {'password': '', 'id': '', 'email': ''}>,
>>> 'widget': <Storage {'password': <gluon.html.CAT object at 0x04A50950>,
>>> 'id': '', 'email': <gluon.html.INPUT object at 0x04A50930>}>, 'end':
>>> <gluon.html.__tag__ object at 0x04A50710>, 'linkto': <Storage {}>, 'begin':
>>> <gluon.html.XML object at 0x04A50FB0>, 'submit': <gluon.html.INPUT object
>>> at 0x04A50830>, 'label': <Storage {'password': 'Password', 'id': 'Id',
>>> 'email': 'E-mail'}>, 'deletable': '', 'inpval': <Storage {'password': '',
>>> 'id': '', 'email': ''}>, 'dspval': <Storage {'password': <gluon.html.XML
>>> object at 0x04A50C70>, 'id': <gluon.html.XML object at 0x04A50C70>,
>>> 'email': <gluon.html.XML object at 0x04A50C70>}>}>
>>>
>>> That password widget used to be a gluon.html.INPUT same as email but now
>>> it is a CAT
>>>
>>>
>>> On Fri, Nov 30, 2012 at 1:12 PM, Massimo Di Pierro <
>>> [email protected]> wrote:
>>>
>>>> What change are you referring to? Can you provide more details?
>>>>
>>>>
>>>> On Friday, November 30, 2012 9:01:18 AM UTC-6, Felipe Meirelles wrote:
>>>>>
>>>>> Did you changed the password widget on the login form from INPUT to
>>>>> CAT? Is there a reason to this change?
>>>>>
>>>>> I had a placeholder on it and since DIVs dont have this property, my
>>>>> placeholders don't work any more.
>>>>>
>>>> --
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> Att,
>>> Felipe Meirelles.
>>>
>>> --
>>
>>
>>
>>
>
>
>
> --
> Att,
> Felipe Meirelles.
>
>
--