r13376 - Products.Archetypes/trunk/Products/Archetypes/skins/archetypes/widgets

"Tom Gross" <[email protected]>
Newsgroups gmane.comp.web.zope.plone.archetypes.cvs
Message-ID <[email protected]>
Author: tom_gross
Date: Mon Dec 20 13:34:51 2010
New Revision: 13376

Modified:
   Products.Archetypes/trunk/Products/Archetypes/skins/archetypes/widgets/textarea.pt
Log:
tiny optimization


Modified: Products.Archetypes/trunk/Products/Archetypes/skins/archetypes/widgets/textarea.pt
==============================================================================
--- Products.Archetypes/trunk/Products/Archetypes/skins/archetypes/widgets/textarea.pt	(original)
+++ Products.Archetypes/trunk/Products/Archetypes/skins/archetypes/widgets/textarea.pt	Mon Dec 20 13:34:51 2010
@@ -30,8 +30,8 @@
                   content python: not not base and value.getRaw() or value;
                   content python: not binary and content or '';
                   content_length python:len(content);
-                  append_only python: getattr(widget, 'append_only', None);
-                  maxlength python: getattr(widget, 'maxlength', None);
+                  append_only widget/append_only|nothing;
+                  maxlength widget/maxlength|nothing;
                   tcname string:textCounter_${fieldName};
                   keypress string:textCounter(this, '${tcname}', ${maxlength});">
 
@@ -55,12 +55,9 @@
                        size="4"
                        value=""
                        i18n:name="count"
-                       tal:define="remaining python:(int(maxlength) - content_length) + content.count('\n');
-                                   inputsize string:4"
+                       tal:define="remaining python:(int(maxlength) - content_length) + content.count('\n')"
                        tal:attributes="name tcname;
                                        value remaining;
-                                       maxlength inputsize;
-                                       size inputsize;
                                        id string:maxlength_${fieldName};" />
                 characters remaining
             </div>

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
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.