Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aa2add39ad | ||
|
|
a928047147 | ||
|
|
88dc64653e |
@@ -12,7 +12,7 @@ from signals import *
|
|||||||
__all__ = (document.__all__ + fields.__all__ + connection.__all__ +
|
__all__ = (document.__all__ + fields.__all__ + connection.__all__ +
|
||||||
queryset.__all__ + signals.__all__)
|
queryset.__all__ + signals.__all__)
|
||||||
|
|
||||||
VERSION = (0, 6, 4)
|
VERSION = (0, 6, 6)
|
||||||
|
|
||||||
|
|
||||||
def get_version():
|
def get_version():
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ try:
|
|||||||
from django.contrib.auth.hashers import check_password, make_password
|
from django.contrib.auth.hashers import check_password, make_password
|
||||||
except ImportError:
|
except ImportError:
|
||||||
"""Handle older versions of Django"""
|
"""Handle older versions of Django"""
|
||||||
|
from django.utils.hashcompat import md5_constructor, sha_constructor
|
||||||
|
|
||||||
def get_hexdigest(algorithm, salt, raw_password):
|
def get_hexdigest(algorithm, salt, raw_password):
|
||||||
raw_password, salt = smart_str(raw_password), smart_str(salt)
|
raw_password, salt = smart_str(raw_password), smart_str(salt)
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ class SessionStore(SessionBase):
|
|||||||
|
|
||||||
def create(self):
|
def create(self):
|
||||||
while True:
|
while True:
|
||||||
self.session_key = self._get_new_session_key()
|
self._session_key = self._get_new_session_key()
|
||||||
try:
|
try:
|
||||||
self.save(must_create=True)
|
self.save(must_create=True)
|
||||||
except CreateError:
|
except CreateError:
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
%define srcname mongoengine
|
%define srcname mongoengine
|
||||||
|
|
||||||
Name: python-%{srcname}
|
Name: python-%{srcname}
|
||||||
Version: 0.6.4
|
Version: 0.6.6
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: A Python Document-Object Mapper for working with MongoDB
|
Summary: A Python Document-Object Mapper for working with MongoDB
|
||||||
|
|
||||||
@@ -51,6 +51,18 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
# %{python_sitearch}/*
|
# %{python_sitearch}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Apr 24 2012 Ross Lawley <ross.lawley@gmail.com> 0.6.5
|
||||||
|
- 0.6.6 released
|
||||||
|
* Wed Apr 18 2012 Ross Lawley <ross.lawley@gmail.com> 0.6.5
|
||||||
|
- 0.6.5 released
|
||||||
|
* Wed Apr 18 2012 Ross Lawley <ross.lawley@gmail.com> 0.6.5
|
||||||
|
- 0.6.4 released
|
||||||
|
* Wed Mar 24 2012 Ross Lawley <ross.lawley@gmail.com> 0.6.5
|
||||||
|
- 0.6.3 released
|
||||||
|
* Wed Mar 22 2012 Ross Lawley <ross.lawley@gmail.com> 0.6.5
|
||||||
|
- 0.6.2 released
|
||||||
|
* Wed Mar 05 2012 Ross Lawley <ross.lawley@gmail.com> 0.6.5
|
||||||
|
- 0.6.1 released
|
||||||
* Mon Mar 05 2012 Ross Lawley <ross.lawley@gmail.com> 0.6
|
* Mon Mar 05 2012 Ross Lawley <ross.lawley@gmail.com> 0.6
|
||||||
- 0.6 released
|
- 0.6 released
|
||||||
* Thu Oct 27 2011 Pau Aliagas <linuxnow@gmail.com> 0.5.3-1
|
* Thu Oct 27 2011 Pau Aliagas <linuxnow@gmail.com> 0.5.3-1
|
||||||
|
|||||||
@@ -12,6 +12,10 @@ from django.core.paginator import Paginator
|
|||||||
|
|
||||||
settings.configure()
|
settings.configure()
|
||||||
|
|
||||||
|
from django.contrib.sessions.tests import SessionTestsMixin
|
||||||
|
from mongoengine.django.sessions import SessionStore, MongoSession
|
||||||
|
|
||||||
|
|
||||||
class QuerySetTest(unittest.TestCase):
|
class QuerySetTest(unittest.TestCase):
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
@@ -88,3 +92,14 @@ class QuerySetTest(unittest.TestCase):
|
|||||||
end = p * 2
|
end = p * 2
|
||||||
start = end - 1
|
start = end - 1
|
||||||
self.assertEqual(t.render(Context(d)), u'%d:%d:' % (start, end))
|
self.assertEqual(t.render(Context(d)), u'%d:%d:' % (start, end))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
class MongoDBSessionTest(SessionTestsMixin, unittest.TestCase):
|
||||||
|
backend = SessionStore
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
connect(db='mongoenginetest')
|
||||||
|
MongoSession.drop_collection()
|
||||||
|
super(MongoDBSessionTest, self).setUp()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user