You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2020/08/24 16:53:41 UTC

[allura] 01/01: Remove byte size validator on project description (just validate string length)

This is an automated email from the ASF dual-hosted git repository.

brondsem pushed a commit to branch db/remove-descr-byte-limit
in repository https://gitbox.apache.org/repos/asf/allura.git

commit b3973eb15c68aa7a9dfed379842a8114baae27ed
Author: Dave Brondsema <da...@brondsema.net>
AuthorDate: Mon Aug 24 12:53:33 2020 -0400

    Remove byte size validator on project description (just validate string length)
---
 Allura/allura/ext/admin/widgets.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/Allura/allura/ext/admin/widgets.py b/Allura/allura/ext/admin/widgets.py
index 4df1ff0..b558b01 100644
--- a/Allura/allura/ext/admin/widgets.py
+++ b/Allura/allura/ext/admin/widgets.py
@@ -186,10 +186,7 @@ class MetadataAdmin(ff.AdminForm):
                                        'class': 'tooltip',
                                        })
         short_description = ew.TextArea(label='Full Description',
-                                        validator=formencode.All(
-                                            V.UnicodeString(max=1000),
-                                            V.MaxBytesValidator(max=1000),
-                                            ),
+                                        validator=V.UnicodeString(max=1000),
                                         attrs={
                                             'title': 'Describe the full functionality of your project using related keywords. The first sentence has the most impact on search. Provide unique content that calls out keywords and describes the merits of your project.',
                                             'class': 'tooltip'