Customize login_form template on Plone 2.x

Bruno Barbosa <[email protected]>
Newsgroups gmane.comp.web.zope.plone.user
Message-ID <CAHxcCH5oQJ8Lkv5j-p7zQBFAm3Yij40ANy6AcrgPgo9MzqUsfg@mail.gmail.com>
Hi everyone!

I need to customize the login_form template in Plone 2.5 on ZMI, but after
customize the login_form.pt, I get the following error:

Module Products.PageTemplates.TALES, line 221, in evaluate
>    - URL: /desenvolvimento/myportal/login_form
>    - Line 153, Column 20
>    - Expression: standard:u'options/state/getErrors'
>    - Names:
>       {'container': <PloneSite at /desenvolvimento/myportal>,
>        'context': <PloneSite at /desenvolvimento/myportal>,
>        'default': <Products.PageTemplates.TALES.Default instance at
> 0xb68e9a6c>,
>        'here': <PloneSite at /desenvolvimento/myportal>,
>        'loop': <Products.PageTemplates.TALES.SafeMapping object at
> 0xc5cd4ac>,
>        'modules':
> <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at
> 0xb68896ac>,
>        'nothing': None,
>        'options': {'args': ()},
>        'repeat': <Products.PageTemplates.TALES.SafeMapping object at
> 0xc5cd4ac>,
>        'request': <HTTPRequest, URL=
> http://10.2.64.203:8080/desenvolvimento/myportal/login_form>,
>        'root': <Application at >,
>        'template': <ZopePageTemplate at
> /desenvolvimento/myportallogin_form>,
>        'traverse_subpath': [],
>        'user': <PropertiedUser 'bruno'>}
>   Module Products.PageTemplates.Expressions, line 185, in __call__
>   Module Products.PageTemplates.Expressions, line 173, in _eval
>   Module Products.PageTemplates.Expressions, line 127, in _eval
>    - __traceback_info__: options
>   Module Products.PageTemplates.Expressions, line 320, in
> restrictedTraverse
>    - __traceback_info__: {'path': [u'state', u'getErrors'],
> 'TraversalRequestNameStack': [u'getErrors']}
> KeyError: u'state'
>

What is missing?

Att,
--
Bruno Barbosa

------------------------------------------------------------------------------

_______________________________________________
Plone-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plone-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.