Commits

Anonymous committed 39f7077

fixed boolean check of :class:`FileStorage`
fixed package loading for :class:`SharedDataMiddleware`.
Some documentation changes.

Comments (0)

Files changed (6)

 -------------
 (bugfix release for 0.5, release date yet unknown)
 
-- fixed boolean check of :class:`FieldStorage`
+- fixed boolean check of :class:`FileStorage`
 - url routing system properly supports unicode URL rules now.
 - file upload streams no longer have to provide a truncate()
   method.
 - fixed some minor bugs in the atom feed generator.
 - fixed a bug with client cookie header parsing being case sensitive.
 - fixed a not-working deprecation warning.
-- fixed package loading for :cls:`SharedDataMiddleware`.
+- fixed package loading for :class:`SharedDataMiddleware`.
 - fixed a bug in the secure cookie that made server-side expiration
   on servers with a local time that was not set to UTC impossible.
 
 from werkzeug import __version__ as release
 if 'dev' in release:
     release = release[:release.find('dev') + 3]
-version = re.match(r'\d+\.\d+', release).group()
+version = re.match(r'\d+\.\d+(?:\.\d+)?', release).group()
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.

docs/datastructures.rst

    :members:
 
 .. autoclass:: ImmutableTypeConversionDict
+   :members: copy
 
 .. autoclass:: MultiDict
    :members:
    :inherited-members:
 
 .. autoclass:: ImmutableMultiDict
+   :members: copy
 
 .. autoclass:: CombinedMultiDict
 
 .. autoclass:: ImmutableDict
+   :members: copy
 
 .. autoclass:: ImmutableList
 

docs/tutorial.rst

 exception check the line number and compare your code with the code we have
 in the code boxes above.
 
+To run your application for development purposes you can also use the manage
+script.  Just execute this command from your command line::
+
+    python manage.py runserver
+
+The server will then listen on `localhost:5000 <http://localhost:5000/>`_
+for incoming requests and show your application.  But we need to implement
+some more things before we can run the server without errors.
+
 Now that the script system is running we can start writing our database models.
 
 
 
 setup(
     name='Werkzeug',
-    version='0.6',
+    version='0.5.1',
     url='http://werkzeug.pocoo.org/',
     license='BSD',
     author='Armin Ronacher',

werkzeug/datastructures.py

     """
 
     def copy(self):
-        """Return a shallow mutable copy of this object."""
+        """Return a shallow mutable copy of this object.  Keep in mind that
+        the standard library's :func:`copy` funciton is a no-op for this class
+        like for any other python immutable type (eg: :class:`tuple`).
+        """
         return TypeConversionDict(self)
 
     def __copy__(self):
 
     def __init__(self, mapping=None):
         if isinstance(mapping, MultiDict):
-            dict.__init__(self, ((k, l[:]) for k, l in mapping.lists()))
+            dict.__init__(self, ((k, l[:]) for k, l in mapping.iterlists()))
         elif isinstance(mapping, dict):
             tmp = {}
             for key, value in mapping.iteritems():
     __repr__ = _proxy_repr(dict)
 
     def copy(self):
-        """Return a shallow mutable copy of this object."""
-        return TypeConversionDict(self)
+        """Return a shallow mutable copy of this object.  Keep in mind that
+        the standard library's :func:`copy` funciton is a no-op for this class
+        like for any other python immutable type (eg: :class:`tuple`).
+        """
+        return dict(self)
 
     def __copy__(self):
         return self
     """
 
     def copy(self):
-        """Return a shallow mutable copy of this object."""
-        return TypeConversionDict(self)
+        """Return a shallow mutable copy of this object.  Keep in mind that
+        the standard library's :func:`copy` funciton is a no-op for this class
+        like for any other python immutable type (eg: :class:`tuple`).
+        """
+        return MultiDict(self)
 
     def __copy__(self):
         return self