mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)
Mark Smith ([staff profile] mark) wrote in [site community profile] changelog2009-04-01 04:42 am

[dw-free] More sensible defaults/limits for poll creator

[commit: http://hg.dwscoalition.org/dw-free/rev/24c7ee121bf3]

http://bugs.dwscoalition.org/show_bug.cgi?id=610

Up limits on poll creator.

Patch by [personal profile] rho.

Files modified:
  • htdocs/poll/create.bml
--------------------------------------------------------------------------------
diff -r 5cde73204900 -r 24c7ee121bf3 htdocs/poll/create.bml
--- a/htdocs/poll/create.bml	Wed Apr 01 04:32:41 2009 +0000
+++ b/htdocs/poll/create.bml	Wed Apr 01 04:42:20 2009 +0000
@@ -10,13 +10,13 @@
     # some rules used for error checking
     %RULES = (
               "elements" => {
-                  "max" => 15,             # maximum total number of elements allowed
+                  "max" => 255,             # maximum total number of elements allowed
               },
               "items" => {
                   "min" => 1,             # minimum number of options
                   "start" => 5,             # number of items shown at start
-                  "max" => 15,             # max number of options
-                  "maxlength" =>  500,         # max length of an option's textual value, min is implicitly 0
+                  "max" => 255,             # max number of options
+                  "maxlength" =>  1000,         # max length of an option's textual value, min is implicitly 0
                   "more" => 5,             # number of items to add when requesting more
               },
               "question" => {
@@ -26,8 +26,8 @@
                   "maxlength" => 1000,           # maximum length of poll name allowed
               },
               "text" => {
-                  "size" => 30,             # default size of a text element
-                  "maxlength" => 50,         # default maxlength of a text element
+                  "size" => 50,             # default size of a text element
+                  "maxlength" => 255,        # default maxlength of a text element
               },
               "size" => {
                   "min" => 1,             # minimum allowed size value for a text element
--------------------------------------------------------------------------------
ext_78: A picture of a plush animal. It looks a bit like a cross between a duck and a platypus. (Default)

[identity profile] pne.livejournal.com 2009-04-02 08:53 am (UTC)(link)
+ "maxlength" => 255, # default maxlength of a text element

Thank you, thank you, thank you!