allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [allura] 01/01: Remove byte size validator on project description (just validate string length)
Date Mon, 24 Aug 2020 16:53:41 GMT
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 <dave@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'


Mime
View raw message