Commits

Lynn Rees committed 9f93d88

[svn]

Comments (0)

Files changed (2)

branches/0.3/setup.py

     from distutils.core import setup
 
 setup(name='wsgiform',
-      version='0.2.7',
+      version='0.3',
       description='''WSGI form parsing and validation middleware''',
-      long_description='''WSGI middleware for validating and parsing HTML form
-submissions into dictionaries, individual 'environ' entries, FieldStorage
-instances, or keyword arguments passed to a WSGI application in the 'environ'
-dictionary. Supports data escaping and sterilization.
+      long_description='''WSGI middleware for validating form
+submissions and parsing them into dictionaries, individual WSGI 'environ'
+dictionary entries, FieldStorage instances, or keyword arguments passed to
+a WSGI application. Supports data escaping and sterilization.
 
-Simplistic usage example:
+# Simple wsgiform usage format example:
 
 from wsgiform import form
 
 @form()
 def app(environ, start_response):
-    return environ['wsgiform.dict']
-
-if __name__ == '__main__':
-    http = make_server('', 8080, app)
-    http.serve_forever()''',
+    return environ['wsgiform.dict']['name']''',
       author='L. C. Rees',
       author_email='lcrees@gmail.com',
       license='BSD',
-      test_suite='test_wsgiform',
-      packages = ['wsgiform'],
+      test_suite='tests.test_wsgiform',
+      packages = ['wsgiform', 'wsgiform.tests'],
       zip_safe = True,
       keywords='WSGI dispatch middleware web HTTP decorators',
       classifiers=['Development Status :: 3 - Alpha',

branches/0.3/wsgiform/tests/test_validators.py

+#This file was originally generated by PyScripter's unitest wizard
+
+import unittest
+import validators
+
+class TestGlobalFunctions(unittest.TestCase):
+
+
+    def testisascii(self):
+        pass
+
+    def testisunicode(self):
+        pass
+
+    def testisnumber(self):
+        pass
+
+    def testisalpha(self):
+        pass
+
+    def testisalphanum(self):
+        pass
+
+    def testisspace(self):
+        pass
+
+    def testistitle(self):
+        pass
+
+    def testisupper(self):
+        pass
+
+    def testislower(self):
+        pass
+
+    def testislength(self):
+        pass
+
+    def testisempty(self):
+        pass
+
+    def testnotmalicious(self):
+        pass
+
+    def testisxml(self):
+        pass
+
+    def testishtml(self):
+        pass
+
+    def testisip4(self):
+        pass
+
+    def testisip6(self):
+        pass
+
+    def testismacaddr(self):
+        pass
+
+    def testisemail(self):
+        pass
+
+    def testisurl(self):
+        pass
+
+    def testisliveurl(self):
+        pass
+
+    def testisname(self):
+        pass
+
+    def testispassword(self):
+        pass
+
+    def testiszip(self):
+        pass
+
+    def testisukpost(self):
+        pass
+
+    def testisnapost(self):
+        pass
+
+    def testisprovince(self):
+        pass
+
+    def testisstate(self):
+        pass
+
+    def testisdatetime(self):
+        pass
+
+    def testisedatetime(self):
+        pass
+
+    def testiscreditcard(self):
+        pass
+
+    def testisisbn(self):
+        pass
+
+    def testisssn(self):
+        pass
+
+    def testisvat(self):
+        pass
+
+    def testisusd(self):
+        pass
+
+    def testisphone(self):
+        pass
+
+    def testisukphone(self):
+        pass
+
+    def testisusphone(self):
+        pass
+
+if __name__ == '__main__':
+    unittest.main()