Commits

Anonymous committed afae718

Continue rename

Comments (0)

Files changed (10)

 [egg_info]
 tag_build = dev
 tag_svn_revision = true
+
+[global]
+command_packages = buildutils.pudge_command, buildutils.publish_command
+
+[pudge]
+organization = Python Paste
+highlighter = pygments
+settings = no_about=true
+        link1=/ Paste
+	link4=http://pypi.python.org/pypi/WebOb/
+	extra_credits=Hosting courtesy of <a href="http://tummy.com">Tummy.com</a>
+dest = docs/html
+docs = docs/index.txt docs/license.txt
+title = WebOb
+modules = webob
+doc_base = docs/
+theme = pythonpaste.org
+mailing_list_url = /community/mailing-list.html
+organization_url = http://pythonpaste.org/
+trac_url = http://trac.pythonpaste.org/
+
+[publish]
+doc-dest = scp://ianb@webwareforpython.org/home/paste/htdocs/webob/
+make-dirs = 1
+doc-dir = docs/html
+
+[aliases]
+distribute = register sdist bdist_egg upload pudge publish
+
 
 version = '0.1'
 
-setup(name='WSGIObj',
+setup(name='WebOb',
       version=version,
       description="WSGI request and response object",
       long_description="""\
       keywords='wsgi request web http',
       author='Ian Bicking',
       author_email='ianb@colorstudy.com',
-      url='',
+      url='http://pythonpaste.org/webob/',
       license='MIT',
       packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
       include_package_data=True,
-      zip_safe=False,
+      zip_safe=True,
       #install_requires=[
       #],
       #entry_points="""

tests/conftest.py

 import os, sys
 sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))
 import pkg_resources
-pkg_resources.require('wsgiobj')
+pkg_resources.require('WebOb')

tests/test_request.py

 from paste.fixture import *
-from wsgiobj import Request
+from webob import Request
 from py.test import raises
 
 def simpleapp(environ, start_response):

tests/test_request.txt

 fresh environment dictionary with all the basic keys such a dictionary
 should have.
 
-    >>> from wsgiobj import Request, UTC
+    >>> from webob import Request, UTC
     >>> req = Request.blank('/')
     >>> req # doctest: +ELLIPSIS
     <Request at ... GET http://localhost/>

tests/test_response.py

-from wsgiobj import *
+from webob import *
 
 def simple_app(environ, start_response):
     start_response('200 OK', [

tests/test_response.txt

 This demonstrates how the Response object works, and tests it at the
 same time.
 
-    >>> from wsgiobj import Response, UTC
+    >>> from webob import Response, UTC
     >>> from datetime import datetime
     >>> res = Response('200 OK', [], 'Test')
 
 request object attached.
 
     >>> res.location = '/test.html'
-    >>> from wsgiobj import Request
+    >>> from webob import Request
     >>> res.request = Request.blank('/')
     >>> res.location
     'http://localhost/test.html'

webob/__init__.py

 from datetime import datetime, date, timedelta, tzinfo
 import time
 import calendar
-from wsgiobj.datastruct import EnvironHeaders
-from wsgiobj.multidict import MultiDict, UnicodeMultiDict, NestedMultiDict, NoVars
-from wsgiobj.acceptlang import parse_accept_language
-from wsgiobj.useragent import UserAgent, parse_search_query
-from wsgiobj.etag import AnyETag, ETagMatcher
-from wsgiobj.headerdict import HeaderDict
-from wsgiobj.statusreasons import status_reasons
-from wsgiobj.cachecontrol import CacheControl
-from wsgiobj.acceptparse import Accept, MIMEAccept, NilAccept, MIMENilAccept
+from webob.datastruct import EnvironHeaders
+from webob.multidict import MultiDict, UnicodeMultiDict, NestedMultiDict, NoVars
+from webob.acceptlang import parse_accept_language
+from webob.useragent import UserAgent, parse_search_query
+from webob.etag import AnyETag, ETagMatcher
+from webob.headerdict import HeaderDict
+from webob.statusreasons import status_reasons
+from webob.cachecontrol import CacheControl
+from webob.acceptparse import Accept, MIMEAccept, NilAccept, MIMENilAccept
 
 _CHARSET_RE = re.compile(r';\s*charset=([^;]*)', re.I)
 _SCHEME_RE = re.compile(r'^[a-z]+:', re.I)
         """
         if self.method != 'POST':
             return NoVars('Not a POST request')
-        if 'wsgiobj._parsed_post_vars' in self.environ:
-            vars, body = self.environ['wsgiobj._parsed_post_vars']
+        if 'webob._parsed_post_vars' in self.environ:
+            vars, body = self.environ['webob._parsed_post_vars']
             if body is self.body:
                 return vars
         content_type = self.content_type
                               keep_blank_values=True)
         vars = MultiDict.from_fieldstorage(fs)
         FakeCGIBody.update_environ(self.environ, vars)
-        self.environ['wsgiobj._parsed_post_vars'] = (vars, self.body)
+        self.environ['webob._parsed_post_vars'] = (vars, self.body)
         return vars
     str_postvars = property(str_postvars, doc=str_postvars.__doc__)
 
         QUERY_STRING.
         """
         source = self.environ.get('QUERY_STRING', '')
-        if 'wsgiobj._parsed_query_vars' in self.environ:
-            vars, qs = self.environ['wsgiobj._parsed_query_vars']
+        if 'webob._parsed_query_vars' in self.environ:
+            vars, qs = self.environ['webob._parsed_query_vars']
             if qs == source:
                 return vars
         if not source:
             vars = MultiDict(cgi.parse_qsl(
                 source, keep_blank_values=True,
                 strict_parsing=False))
-        self.environ['wsgiobj._parsed_query_vars'] = (vars, source)
+        self.environ['webob._parsed_query_vars'] = (vars, source)
         return vars
     str_queryvars = property(str_queryvars, doc=str_queryvars.__doc__)
 
         Return a *plain* dictionary of cookies as found in the request.
         """
         source = self.environ.get('HTTP_COOKIE', '')
-        if 'wsgiobj._parsed_cookies' in self.environ:
-            vars, var_source = self.environ['wsgiobj._parsed_cookies']
+        if 'webob._parsed_cookies' in self.environ:
+            vars, var_source = self.environ['webob._parsed_cookies']
             if var_source == source:
                 return vars
         vars = {}
             cookies.load(source)
             for name in cookies:
                 vars[name] = cookies[name].value
-        self.environ['wsgiobj._parsed_cookies'] = (vars, source)
+        self.environ['webob._parsed_cookies'] = (vars, source)
         return vars
     str_cookies = property(str_cookies, doc=str_cookies.__doc__)
 

webob/cachecontrol.py

 import re
-from wsgiobj.updatedict import UpdateDict
+from webob.updatedict import UpdateDict
 
 token_re = re.compile(
     r'([a-zA-Z][a-zA-Z_-]*)\s*(?:=(?:"([^"]*)"|([^ \t",;]*)))?')

webob/headerdict.py

-from wsgiobj.multidict import MultiDict
+from webob.multidict import MultiDict
 
 class HeaderDict(MultiDict):