Anonymous committed afae718

Continue rename

Comments (0)

Files changed (10)

 tag_build = dev
 tag_svn_revision = true
+command_packages = buildutils.pudge_command, buildutils.publish_command
+organization = Python Paste
+highlighter = pygments
+settings = no_about=true
+        link1=/ Paste
+	link4=
+	extra_credits=Hosting courtesy of <a href=""></a>
+dest = docs/html
+docs = docs/index.txt docs/license.txt
+title = WebOb
+modules = webob
+doc_base = docs/
+theme =
+mailing_list_url = /community/mailing-list.html
+organization_url =
+trac_url =
+doc-dest = scp://
+make-dirs = 1
+doc-dir = docs/html
+distribute = register sdist bdist_egg upload pudge publish
 version = '0.1'
       description="WSGI request and response object",
       keywords='wsgi request web http',
       author='Ian Bicking',
-      url='',
+      url='',
       packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
-      zip_safe=False,
+      zip_safe=True,


 import os, sys
 sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))
 import pkg_resources


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


 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/>


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


 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


 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
         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__)
         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,
-        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 = {}
             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__)


 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",;]*)))?')


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