chiark / gitweb /
Merge branch 'support-multiple-serverwebroots-and-fixes' into 'master'
authorCiaran Gultnieks <ciaran@ciarang.com>
Wed, 16 Jul 2014 21:07:10 +0000 (21:07 +0000)
committerCiaran Gultnieks <ciaran@ciarang.com>
Wed, 16 Jul 2014 21:07:10 +0000 (21:07 +0000)
Support multiple serverwebroots and fixes

This adds support for lists of serverwebroots in config.py, and cleans newlines and spaces in the repo_description and archive_description.

fdroidserver/metadata.py

index cf21c211f597b41c77ca6a3ef7adc19520c57a81..fb6af1cb2015986c04524d20a57d06b5d71b39b1 100644 (file)
@@ -154,9 +154,14 @@ class FieldValidator():
 valuetypes = {
     FieldValidator("Integer",
                    r'^[1-9][0-9]*$', None,
-                   ['FlattrID'],
+                   [],
                    ['vercode']),
 
+    FieldValidator("Hexadecimal",
+                   r'^[0-9a-f]+$', None,
+                   ['FlattrID'],
+                   []),
+
     FieldValidator("HTTP link",
                    r'^http[s]?://', None,
                    ["Web Site", "Source Code", "Issue Tracker", "Donate"], []),