Commits

Gregory Petukhov committed c9d9073

Fix bug in image:random_image

Comments (0)

Files changed (9)

     img = generate_image(size)
     img.save(tmpfile, 'JPEG')
     tmpfile.seek(0)
-    return File(open(tmpfile), name=hashname)
+    return File(tmpfile, name=hashname)

docs/_build/doctrees/environment.pickle

Binary file modified.

docs/_build/html/genindex.html

   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     
-    <title>Index &mdash; django-common v0.1.31 documentation</title>
+    <title>Index &mdash; django-common v0.1.32 documentation</title>
     <link rel="stylesheet" href="_static/default.css" type="text/css" />
     <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
     <script type="text/javascript">
       var DOCUMENTATION_OPTIONS = {
         URL_ROOT:    '',
-        VERSION:     '0.1.31',
+        VERSION:     '0.1.32',
         COLLAPSE_INDEX: false,
         FILE_SUFFIX: '.html',
         HAS_SOURCE:  true
     <script type="text/javascript" src="_static/jquery.js"></script>
     <script type="text/javascript" src="_static/underscore.js"></script>
     <script type="text/javascript" src="_static/doctools.js"></script>
-    <link rel="top" title="django-common v0.1.31 documentation" href="index.html" /> 
+    <link rel="top" title="django-common v0.1.32 documentation" href="index.html" /> 
   </head>
   <body>
     <div class="related">
         <li class="right" >
           <a href="py-modindex.html" title="Python Module Index"
              >modules</a> |</li>
-        <li><a href="index.html">django-common v0.1.31 documentation</a> &raquo;</li> 
+        <li><a href="index.html">django-common v0.1.32 documentation</a> &raquo;</li> 
       </ul>
     </div>  
 
         <li class="right" >
           <a href="py-modindex.html" title="Python Module Index"
              >modules</a> |</li>
-        <li><a href="index.html">django-common v0.1.31 documentation</a> &raquo;</li> 
+        <li><a href="index.html">django-common v0.1.32 documentation</a> &raquo;</li> 
       </ul>
     </div>
     <div class="footer">

docs/_build/html/index.html

   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     
-    <title>django-common &mdash; django-common v0.1.31 documentation</title>
+    <title>django-common &mdash; django-common v0.1.32 documentation</title>
     <link rel="stylesheet" href="_static/default.css" type="text/css" />
     <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
     <script type="text/javascript">
       var DOCUMENTATION_OPTIONS = {
         URL_ROOT:    '',
-        VERSION:     '0.1.31',
+        VERSION:     '0.1.32',
         COLLAPSE_INDEX: false,
         FILE_SUFFIX: '.html',
         HAS_SOURCE:  true
     <script type="text/javascript" src="_static/jquery.js"></script>
     <script type="text/javascript" src="_static/underscore.js"></script>
     <script type="text/javascript" src="_static/doctools.js"></script>
-    <link rel="top" title="django-common v0.1.31 documentation" href="#" /> 
+    <link rel="top" title="django-common v0.1.32 documentation" href="#" /> 
   </head>
   <body>
     <div class="related">
         <li class="right" >
           <a href="py-modindex.html" title="Python Module Index"
              >modules</a> |</li>
-        <li><a href="#">django-common v0.1.31 documentation</a> &raquo;</li> 
+        <li><a href="#">django-common v0.1.32 documentation</a> &raquo;</li> 
       </ul>
     </div>  
 
         <li class="right" >
           <a href="py-modindex.html" title="Python Module Index"
              >modules</a> |</li>
-        <li><a href="#">django-common v0.1.31 documentation</a> &raquo;</li> 
+        <li><a href="#">django-common v0.1.32 documentation</a> &raquo;</li> 
       </ul>
     </div>
     <div class="footer">

docs/_build/html/objects.inv

 # Sphinx inventory version 2
 # Project: django-common
-# Version: 0.1.31
+# Version: 0.1.32
 # The remainder of this file is compressed using zlib.
 xڕ�K�1
 �U��9��먴\���4F�'�T����_�|0o�(.�G1���2}

docs/_build/html/py-modindex.html

   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     
-    <title>Python Module Index &mdash; django-common v0.1.31 documentation</title>
+    <title>Python Module Index &mdash; django-common v0.1.32 documentation</title>
     <link rel="stylesheet" href="_static/default.css" type="text/css" />
     <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
     <script type="text/javascript">
       var DOCUMENTATION_OPTIONS = {
         URL_ROOT:    '',
-        VERSION:     '0.1.31',
+        VERSION:     '0.1.32',
         COLLAPSE_INDEX: false,
         FILE_SUFFIX: '.html',
         HAS_SOURCE:  true
     <script type="text/javascript" src="_static/jquery.js"></script>
     <script type="text/javascript" src="_static/underscore.js"></script>
     <script type="text/javascript" src="_static/doctools.js"></script>
-    <link rel="top" title="django-common v0.1.31 documentation" href="index.html" />
+    <link rel="top" title="django-common v0.1.32 documentation" href="index.html" />
  
 
 
         <li class="right" >
           <a href="#" title="Python Module Index"
              >modules</a> |</li>
-        <li><a href="index.html">django-common v0.1.31 documentation</a> &raquo;</li> 
+        <li><a href="index.html">django-common v0.1.32 documentation</a> &raquo;</li> 
       </ul>
     </div>  
 
         <li class="right" >
           <a href="#" title="Python Module Index"
              >modules</a> |</li>
-        <li><a href="index.html">django-common v0.1.31 documentation</a> &raquo;</li> 
+        <li><a href="index.html">django-common v0.1.32 documentation</a> &raquo;</li> 
       </ul>
     </div>
     <div class="footer">

docs/_build/html/search.html

   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     
-    <title>Search &mdash; django-common v0.1.31 documentation</title>
+    <title>Search &mdash; django-common v0.1.32 documentation</title>
     <link rel="stylesheet" href="_static/default.css" type="text/css" />
     <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
     <script type="text/javascript">
       var DOCUMENTATION_OPTIONS = {
         URL_ROOT:    '',
-        VERSION:     '0.1.31',
+        VERSION:     '0.1.32',
         COLLAPSE_INDEX: false,
         FILE_SUFFIX: '.html',
         HAS_SOURCE:  true
     <script type="text/javascript" src="_static/underscore.js"></script>
     <script type="text/javascript" src="_static/doctools.js"></script>
     <script type="text/javascript" src="_static/searchtools.js"></script>
-    <link rel="top" title="django-common v0.1.31 documentation" href="index.html" />
+    <link rel="top" title="django-common v0.1.32 documentation" href="index.html" />
   <script type="text/javascript">
     jQuery(function() { Search.loadIndex("searchindex.js"); });
   </script>
         <li class="right" >
           <a href="py-modindex.html" title="Python Module Index"
              >modules</a> |</li>
-        <li><a href="index.html">django-common v0.1.31 documentation</a> &raquo;</li> 
+        <li><a href="index.html">django-common v0.1.32 documentation</a> &raquo;</li> 
       </ul>
     </div>  
 
         <li class="right" >
           <a href="py-modindex.html" title="Python Module Index"
              >modules</a> |</li>
-        <li><a href="index.html">django-common v0.1.31 documentation</a> &raquo;</li> 
+        <li><a href="index.html">django-common v0.1.32 documentation</a> &raquo;</li> 
       </ul>
     </div>
     <div class="footer">
 #!/bin/sh
+hg push
 python setup.py register sdist upload build_sphinx upload_sphinx
 from setuptools import setup
 
 PACKAGE = 'common'
-VERSION = '0.1.32'
+VERSION = '0.1.33'
 
 if __name__ == '__main__':
     # Compile the list of packages available, because distutils doesn't have