My favorites | Sign in
Google
             
Details: Show all Hide all

Today

  • 2 hours ago
    issue 154 (test failures in runObject* and default page request with r1...) reported by kumar.mcmillan   -   What steps will reproduce the problem? 1. Download r100 of google-app-engine-django 2. install latest Django 1.1.1 as django.zip 3. run python manage.py test What is the expected output? What do you see instead? All tests should pass. Instead, four fail: ====================================================================== ERROR: a request to the default page works in the dev_appserver ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/kumar/dev/chirpradio/appengine_django/tests/integration_test.py", line 168, in setUp port = start_server() File "/Users/kumar/dev/chirpradio/appengine_django/tests/integration_test.py", line 51, in start_serve r clear_datastore=False) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Cont ents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 3499, in SetupStubs blobstore_path = config['blobstore_path'] KeyError: 'blobstore_path' ====================================================================== ERROR: runObjectWithNonExistantParentTest ---------------------------------------------------------------------- Traceback (most recent call last): File "<string>", line 1, in <lambda> File "/Users/kumar/dev/chirpradio/appengine_django/tests/serialization_test.py", line 286, in runObjec tWithNonExistantParentTest self.SERIALIZED_WITH_NON_EXISTANT_PARENT, format) File "/Users/kumar/dev/chirpradio/appengine_django/tests/serialization_test.py", line 187, in doModelK eyDeserialisationReferenceTest result[0].save() File "/Users/kumar/dev/chirpradio/appengine_django/__init__.py", line 331, in save self.object.save() File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Cont ents/Resources/google_appengine/google/appengine/ext/db/__init__.py", line 796, in put self._populate_internal_entity() File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Cont ents/Resources/google_appengine/google/appengine/ext/db/__init__.py", line 775, in _populate_internal_en tity self._entity = self._populate_entity(_entity_class=_entity_class) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Cont ents/Resources/google_appengine/google/appengine/ext/db/__init__.py", line 832, in _populate_entity entity = _entity_class(self.kind(), **kwds) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Cont ents/Resources/google_appengine/google/appengine/api/datastore.py", line 341, in __init__ (_app_namespace, parent.app_id_namespace())) BadArgumentError: <google.appengine.api.datastore_types.AppIdNamespace object at 0xc2c730> doesn't matc h parent's app_namespace <google.appengine.api.datastore_types.AppIdNamespace object at 0xc2c750> ====================================================================== ERROR: runObjectWithNonExistantParentTest ---------------------------------------------------------------------- Traceback (most recent call last): File "<string>", line 1, in <lambda> File "/Users/kumar/dev/chirpradio/appengine_django/tests/serialization_test.py", line 286, in runObjec tWithNonExistantParentTest self.SERIALIZED_WITH_NON_EXISTANT_PARENT, format) File "/Users/kumar/dev/chirpradio/appengine_django/tests/serialization_test.py", line 187, in doModelK eyDeserialisationReferenceTest result[0].save() File "/Users/kumar/dev/chirpradio/appengine_django/__init__.py", line 331, in save self.object.save() File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Cont ents/Resources/google_appengine/google/appengine/ext/db/__init__.py", line 796, in put self._populate_internal_entity() File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Cont ents/Resources/google_appengine/google/appengine/ext/db/__init__.py", line 775, in _populate_internal_en tity self._entity = self._populate_entity(_entity_class=_entity_class) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Cont ents/Resources/google_appengine/google/appengine/ext/db/__init__.py", line 832, in _populate_entity entity = _entity_class(self.kind(), **kwds) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Cont ents/Resources/google_appengine/google/appengine/api/datastore.py", line 341, in __init__ (_app_namespace, parent.app_id_namespace())) BadArgumentError: <google.appengine.api.datastore_types.AppIdNamespace object at 0x27ae650> doesn't mat ch parent's app_namespace <google.appengine.api.datastore_types.AppIdNamespace object at 0x256cef0> ====================================================================== ERROR: runObjectWithNonExistantParentTest ---------------------------------------------------------------------- Traceback (most recent call last): File "<string>", line 1, in <lambda> File "/Users/kumar/dev/chirpradio/appengine_django/tests/serialization_test.py", line 286, in runObjec tWithNonExistantParentTest self.SERIALIZED_WITH_NON_EXISTANT_PARENT, format) File "/Users/kumar/dev/chirpradio/appengine_django/tests/serialization_test.py", line 187, in doModelK eyDeserialisationReferenceTest result[0].save() File "/Users/kumar/dev/chirpradio/appengine_django/__init__.py", line 331, in save self.object.save() File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Cont ents/Resources/google_appengine/google/appengine/ext/db/__init__.py", line 796, in put self._populate_internal_entity() File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Cont ents/Resources/google_appengine/google/appengine/ext/db/__init__.py", line 775, in _populate_internal_en tity self._entity = self._populate_entity(_entity_class=_entity_class) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Cont ents/Resources/google_appengine/google/appengine/ext/db/__init__.py", line 832, in _populate_entity entity = _entity_class(self.kind(), **kwds) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Cont ents/Resources/google_appengine/google/appengine/api/datastore.py", line 341, in __init__ (_app_namespace, parent.app_id_namespace())) BadArgumentError: <google.appengine.api.datastore_types.AppIdNamespace object at 0x254a8f0> doesn't mat ch parent's app_namespace <google.appengine.api.datastore_types.AppIdNamespace object at 0x254a9b0> ---------------------------------------------------------------------- I should note that everything seems to be working fine. What version of the product are you using? On what operating system? Specified above + Version 2.5.2 of Python Version 1.3.0 of Google App Engine SDK Please provide any additional information below. I had originally had an older Django version in there (maybe 1.1 or 1.0) and only three tests fail. In case it helps, I was upgrading our version of google-app-engine-django here http://code.google.com/p/chirpradio/
    What steps will reproduce the problem? 1. Download r100 of google-app-engine-django 2. install latest Django 1.1.1 as django.zip 3. run python manage.py test What is the expected output? What do you see instead? All tests should pass. Instead, four fail: ====================================================================== ERROR: a request to the default page works in the dev_appserver ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/kumar/dev/chirpradio/appengine_django/tests/integration_test.py", line 168, in setUp port = start_server() File "/Users/kumar/dev/chirpradio/appengine_django/tests/integration_test.py", line 51, in start_serve r clear_datastore=False) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Cont ents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 3499, in SetupStubs blobstore_path = config['blobstore_path'] KeyError: 'blobstore_path' ====================================================================== ERROR: runObjectWithNonExistantParentTest ---------------------------------------------------------------------- Traceback (most recent call last): File "<string>", line 1, in <lambda> File "/Users/kumar/dev/chirpradio/appengine_django/tests/serialization_test.py", line 286, in runObjec tWithNonExistantParentTest self.SERIALIZED_WITH_NON_EXISTANT_PARENT, format) File "/Users/kumar/dev/chirpradio/appengine_django/tests/serialization_test.py", line 187, in doModelK eyDeserialisationReferenceTest result[0].save() File "/Users/kumar/dev/chirpradio/appengine_django/__init__.py", line 331, in save self.object.save() File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Cont ents/Resources/google_appengine/google/appengine/ext/db/__init__.py", line 796, in put self._populate_internal_entity() File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Cont ents/Resources/google_appengine/google/appengine/ext/db/__init__.py", line 775, in _populate_internal_en tity self._entity = self._populate_entity(_entity_class=_entity_class) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Cont ents/Resources/google_appengine/google/appengine/ext/db/__init__.py", line 832, in _populate_entity entity = _entity_class(self.kind(), **kwds) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Cont ents/Resources/google_appengine/google/appengine/api/datastore.py", line 341, in __init__ (_app_namespace, parent.app_id_namespace())) BadArgumentError: <google.appengine.api.datastore_types.AppIdNamespace object at 0xc2c730> doesn't matc h parent's app_namespace <google.appengine.api.datastore_types.AppIdNamespace object at 0xc2c750> ====================================================================== ERROR: runObjectWithNonExistantParentTest ---------------------------------------------------------------------- Traceback (most recent call last): File "<string>", line 1, in <lambda> File "/Users/kumar/dev/chirpradio/appengine_django/tests/serialization_test.py", line 286, in runObjec tWithNonExistantParentTest self.SERIALIZED_WITH_NON_EXISTANT_PARENT, format) File "/Users/kumar/dev/chirpradio/appengine_django/tests/serialization_test.py", line 187, in doModelK eyDeserialisationReferenceTest result[0].save() File "/Users/kumar/dev/chirpradio/appengine_django/__init__.py", line 331, in save self.object.save() File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Cont ents/Resources/google_appengine/google/appengine/ext/db/__init__.py", line 796, in put self._populate_internal_entity() File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Cont ents/Resources/google_appengine/google/appengine/ext/db/__init__.py", line 775, in _populate_internal_en tity self._entity = self._populate_entity(_entity_class=_entity_class) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Cont ents/Resources/google_appengine/google/appengine/ext/db/__init__.py", line 832, in _populate_entity entity = _entity_class(self.kind(), **kwds) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Cont ents/Resources/google_appengine/google/appengine/api/datastore.py", line 341, in __init__ (_app_namespace, parent.app_id_namespace())) BadArgumentError: <google.appengine.api.datastore_types.AppIdNamespace object at 0x27ae650> doesn't mat ch parent's app_namespace <google.appengine.api.datastore_types.AppIdNamespace object at 0x256cef0> ====================================================================== ERROR: runObjectWithNonExistantParentTest ---------------------------------------------------------------------- Traceback (most recent call last): File "<string>", line 1, in <lambda> File "/Users/kumar/dev/chirpradio/appengine_django/tests/serialization_test.py", line 286, in runObjec tWithNonExistantParentTest self.SERIALIZED_WITH_NON_EXISTANT_PARENT, format) File "/Users/kumar/dev/chirpradio/appengine_django/tests/serialization_test.py", line 187, in doModelK eyDeserialisationReferenceTest result[0].save() File "/Users/kumar/dev/chirpradio/appengine_django/__init__.py", line 331, in save self.object.save() File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Cont ents/Resources/google_appengine/google/appengine/ext/db/__init__.py", line 796, in put self._populate_internal_entity() File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Cont ents/Resources/google_appengine/google/appengine/ext/db/__init__.py", line 775, in _populate_internal_en tity self._entity = self._populate_entity(_entity_class=_entity_class) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Cont ents/Resources/google_appengine/google/appengine/ext/db/__init__.py", line 832, in _populate_entity entity = _entity_class(self.kind(), **kwds) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Cont ents/Resources/google_appengine/google/appengine/api/datastore.py", line 341, in __init__ (_app_namespace, parent.app_id_namespace())) BadArgumentError: <google.appengine.api.datastore_types.AppIdNamespace object at 0x254a8f0> doesn't mat ch parent's app_namespace <google.appengine.api.datastore_types.AppIdNamespace object at 0x254a9b0> ---------------------------------------------------------------------- I should note that everything seems to be working fine. What version of the product are you using? On what operating system? Specified above + Version 2.5.2 of Python Version 1.3.0 of Google App Engine SDK Please provide any additional information below. I had originally had an older Django version in there (maybe 1.1 or 1.0) and only three tests fail. In case it helps, I was upgrading our version of google-app-engine-django here http://code.google.com/p/chirpradio/

Last 7 days

  • Jan 04, 2010
    issue 140 (How to instantiate a modelmanager?) commented on by dherbst   -   As far as I know the ModelManager just delegates calls back to the BaseModel object. This is set up in the PropertiedClassWithDjango.__new__ function. If you are trying to port the django Manager objects to appengine with the helper, it looks to me like you need to move the functions from the Manager to the BaseModel. This is because calls on BaseModel.objects.xxx() are delegated back to the BaseModel in the ModelManager. Please correct me if I'm wrong. To separate the BaseModel from the ModelManager, we probably need to add a meta property on BaseModel which the PropertiedClassWithDjango.__new__ will read and then instantiate that class instead of the ModelManager if this meta property is set. Note, you will still need a reference to the BaseModel object to call the shortcut functions save/get/delete. If the project maintainers think they will accept this kind of patch I'm willing to work on it because this will make my life easier.
    As far as I know the ModelManager just delegates calls back to the BaseModel object. This is set up in the PropertiedClassWithDjango.__new__ function. If you are trying to port the django Manager objects to appengine with the helper, it looks to me like you need to move the functions from the Manager to the BaseModel. This is because calls on BaseModel.objects.xxx() are delegated back to the BaseModel in the ModelManager. Please correct me if I'm wrong. To separate the BaseModel from the ModelManager, we probably need to add a meta property on BaseModel which the PropertiedClassWithDjango.__new__ will read and then instantiate that class instead of the ModelManager if this meta property is set. Note, you will still need a reference to the BaseModel object to call the shortcut functions save/get/delete. If the project maintainers think they will accept this kind of patch I'm willing to work on it because this will make my life easier.
  • Jan 04, 2010
    issue 102 (Django sitemaps not working) commented on by dherbst   -   The attached patch fixes this issue for me with one exception. I don't see how to hook the post_syncdb signal the original sites app does to create the first Site automatically. If someone has an idea on how to solve this please let me know. Otherwise, I just use the method Site.bootstrap and place the site.key().id() returned in the settings.py file if it is not 1.
    The attached patch fixes this issue for me with one exception. I don't see how to hook the post_syncdb signal the original sites app does to create the first Site automatically. If someone has an idea on how to solve this please let me know. Otherwise, I just use the method Site.bootstrap and place the site.key().id() returned in the settings.py file if it is not 1.
  • Jan 04, 2010
    issue 146 ('super' object has no attribute 'expire_date') Status changed by mattbrown.nz   -  
    Status: Invalid
    Status: Invalid
  • Jan 04, 2010
    issue 147 (inbound mail) Status changed by mattbrown.nz   -   This is not related to the Django helper. Please seek support in the appengine forums.
    Status: Invalid
    This is not related to the Django helper. Please seek support in the appengine forums.
    Status: Invalid
  • Jan 04, 2010
    issue 153 (Chunk reading of large uploaded file) Status changed by mattbrown.nz   -  
    Status: Accepted
    Status: Accepted
  • Jan 04, 2010
    issue 149 (Failing run local django) Status changed by mattbrown.nz   -   Please use the mailing list for installation problems and support.
    Status: Invalid
    Please use the mailing list for installation problems and support.
    Status: Invalid
  • Jan 04, 2010
    issue 113 (deprecated django signal code causing error) commented on by molhokwai   -   Ok, the issue is gone now... Maintenance? Code, Server work? Thanks
    Ok, the issue is gone now... Maintenance? Code, Server work? Thanks
  • Jan 04, 2010
    issue 113 (deprecated django signal code causing error) commented on by molhokwai   -   Hello, I'm having the issue at this moment: http://www.molhokwai.net. First I get a google.appengine.runtime.DeadlineExceededError: <class 'google.appengine.runtime.DeadlineExceededError'>: Traceback (most recent call last): File "/base/data/home/apps/molhokwai-net/7.338928266194351594/main.py", line 49, in <module> main() File "/base/data/home/apps/molhokwai-net/7.338928266194351594/main.py", line 46, in main util.run_wsgi_app(application) File "/base/python_lib/versions/1/google/appengine/ext/webapp/util.py", line 97, in run_wsgi_app run_bare_wsgi_app(add_wsgi_middleware(application)) File "/base/python_lib/versions/1/google/appengine/ext/webapp/util.py", line 115, in run_bare_wsgi_app result = application(env, _start_response) File "/base/python_lib/versions/third_party/django- 0.96/django/core/handlers/wsgi.py", line 189, in __call__ response = self.get_response(request) File "/base/python_lib/versions/third_party/django- 0.96/django/core/handlers/base.py", line 122, in get_response message = "%s\n\n%s" % (self._get_traceback(exc_info), request_repr) File "/base/python_lib/versions/third_party/django- 0.96/django/core/handlers/base.py", line 131, in _get_traceback return '\n'.join(traceback.format_exception(*(exc_info or sys.exc_info()))) File "/base/python_dist/lib/python2.5/traceback.py", line 142, in format_exception list = list + format_tb(tb, limit) File "/base/python_dist/lib/python2.5/traceback.py", line 76, in format_tb return format_list(extract_tb(tb, limit)) File "/base/python_dist/lib/python2.5/traceback.py", line 101, in extract_tb line = linecache.getline(filename, lineno, f.f_globals) File "/base/python_dist/lib/python2.5/linecache.py", line 14, in getline lines = getlines(filename, module_globals) File "/base/python_dist/lib/python2.5/linecache.py", line 40, in getlines return updatecache(filename, module_globals) File "/base/python_dist/lib/python2.5/linecache.py", line 80, in updatecache stat = os.stat(fullname) <class 'google.appengine.runtime.DeadlineExceededError'>: Then when I retry immediately after, the django.dispatch.errors.DispatcherKeyError: <class 'django.dispatch.errors.DispatcherKeyError'>: 'No receivers found for signal <object object at 0x3c620696dc487fc8> from sender _Any' Traceback (most recent call last): File "/base/data/home/apps/molhokwai-net/7.338928266194351594/main.py", line 41, in <module> django.core.signals.got_request_exception) File "/base/python_lib/versions/third_party/django- 0.96/django/dispatch/dispatcher.py", line 213, in disconnect sender <class 'django.dispatch.errors.DispatcherKeyError'>: 'No receivers found for signal <object object at 0x3c620696dc487fc8> from sender _Any'
    Hello, I'm having the issue at this moment: http://www.molhokwai.net. First I get a google.appengine.runtime.DeadlineExceededError: <class 'google.appengine.runtime.DeadlineExceededError'>: Traceback (most recent call last): File "/base/data/home/apps/molhokwai-net/7.338928266194351594/main.py", line 49, in <module> main() File "/base/data/home/apps/molhokwai-net/7.338928266194351594/main.py", line 46, in main util.run_wsgi_app(application) File "/base/python_lib/versions/1/google/appengine/ext/webapp/util.py", line 97, in run_wsgi_app run_bare_wsgi_app(add_wsgi_middleware(application)) File "/base/python_lib/versions/1/google/appengine/ext/webapp/util.py", line 115, in run_bare_wsgi_app result = application(env, _start_response) File "/base/python_lib/versions/third_party/django- 0.96/django/core/handlers/wsgi.py", line 189, in __call__ response = self.get_response(request) File "/base/python_lib/versions/third_party/django- 0.96/django/core/handlers/base.py", line 122, in get_response message = "%s\n\n%s" % (self._get_traceback(exc_info), request_repr) File "/base/python_lib/versions/third_party/django- 0.96/django/core/handlers/base.py", line 131, in _get_traceback return '\n'.join(traceback.format_exception(*(exc_info or sys.exc_info()))) File "/base/python_dist/lib/python2.5/traceback.py", line 142, in format_exception list = list + format_tb(tb, limit) File "/base/python_dist/lib/python2.5/traceback.py", line 76, in format_tb return format_list(extract_tb(tb, limit)) File "/base/python_dist/lib/python2.5/traceback.py", line 101, in extract_tb line = linecache.getline(filename, lineno, f.f_globals) File "/base/python_dist/lib/python2.5/linecache.py", line 14, in getline lines = getlines(filename, module_globals) File "/base/python_dist/lib/python2.5/linecache.py", line 40, in getlines return updatecache(filename, module_globals) File "/base/python_dist/lib/python2.5/linecache.py", line 80, in updatecache stat = os.stat(fullname) <class 'google.appengine.runtime.DeadlineExceededError'>: Then when I retry immediately after, the django.dispatch.errors.DispatcherKeyError: <class 'django.dispatch.errors.DispatcherKeyError'>: 'No receivers found for signal <object object at 0x3c620696dc487fc8> from sender _Any' Traceback (most recent call last): File "/base/data/home/apps/molhokwai-net/7.338928266194351594/main.py", line 41, in <module> django.core.signals.got_request_exception) File "/base/python_lib/versions/third_party/django- 0.96/django/dispatch/dispatcher.py", line 213, in disconnect sender <class 'django.dispatch.errors.DispatcherKeyError'>: 'No receivers found for signal <object object at 0x3c620696dc487fc8> from sender _Any'
  • Jan 04, 2010
    issue 113 (deprecated django signal code causing error) commented on by molhokwai   -   Hello, I'm having the issue at this moment: http://www.molhokwai.net. First I get a google.appengine.runtime.DeadlineExceededError: <pre> <class 'google.appengine.runtime.DeadlineExceededError'>: Traceback (most recent call last): File "/base/data/home/apps/molhokwai-net/7.338928266194351594/main.py", line 49, in <module> main() File "/base/data/home/apps/molhokwai-net/7.338928266194351594/main.py", line 46, in main util.run_wsgi_app(application) File "/base/python_lib/versions/1/google/appengine/ext/webapp/util.py", line 97, in run_wsgi_app run_bare_wsgi_app(add_wsgi_middleware(application)) File "/base/python_lib/versions/1/google/appengine/ext/webapp/util.py", line 115, in run_bare_wsgi_app result = application(env, _start_response) File "/base/python_lib/versions/third_party/django- 0.96/django/core/handlers/wsgi.py", line 189, in __call__ response = self.get_response(request) File "/base/python_lib/versions/third_party/django- 0.96/django/core/handlers/base.py", line 122, in get_response message = "%s\n\n%s" % (self._get_traceback(exc_info), request_repr) File "/base/python_lib/versions/third_party/django- 0.96/django/core/handlers/base.py", line 131, in _get_traceback return '\n'.join(traceback.format_exception(*(exc_info or sys.exc_info()))) File "/base/python_dist/lib/python2.5/traceback.py", line 142, in format_exception list = list + format_tb(tb, limit) File "/base/python_dist/lib/python2.5/traceback.py", line 76, in format_tb return format_list(extract_tb(tb, limit)) File "/base/python_dist/lib/python2.5/traceback.py", line 101, in extract_tb line = linecache.getline(filename, lineno, f.f_globals) File "/base/python_dist/lib/python2.5/linecache.py", line 14, in getline lines = getlines(filename, module_globals) File "/base/python_dist/lib/python2.5/linecache.py", line 40, in getlines return updatecache(filename, module_globals) File "/base/python_dist/lib/python2.5/linecache.py", line 80, in updatecache stat = os.stat(fullname) <class 'google.appengine.runtime.DeadlineExceededError'>: </pre> Then when I retry immediately after, the django.dispatch.errors.DispatcherKeyError: <pre> <class 'django.dispatch.errors.DispatcherKeyError'>: 'No receivers found for signal <object object at 0x3c620696dc487fc8> from sender _Any' Traceback (most recent call last): File "/base/data/home/apps/molhokwai-net/7.338928266194351594/main.py", line 41, in <module> django.core.signals.got_request_exception) File "/base/python_lib/versions/third_party/django- 0.96/django/dispatch/dispatcher.py", line 213, in disconnect sender <class 'django.dispatch.errors.DispatcherKeyError'>: 'No receivers found for signal <object object at 0x3c620696dc487fc8> from sender _Any' </pre>
    Hello, I'm having the issue at this moment: http://www.molhokwai.net. First I get a google.appengine.runtime.DeadlineExceededError: <pre> <class 'google.appengine.runtime.DeadlineExceededError'>: Traceback (most recent call last): File "/base/data/home/apps/molhokwai-net/7.338928266194351594/main.py", line 49, in <module> main() File "/base/data/home/apps/molhokwai-net/7.338928266194351594/main.py", line 46, in main util.run_wsgi_app(application) File "/base/python_lib/versions/1/google/appengine/ext/webapp/util.py", line 97, in run_wsgi_app run_bare_wsgi_app(add_wsgi_middleware(application)) File "/base/python_lib/versions/1/google/appengine/ext/webapp/util.py", line 115, in run_bare_wsgi_app result = application(env, _start_response) File "/base/python_lib/versions/third_party/django- 0.96/django/core/handlers/wsgi.py", line 189, in __call__ response = self.get_response(request) File "/base/python_lib/versions/third_party/django- 0.96/django/core/handlers/base.py", line 122, in get_response message = "%s\n\n%s" % (self._get_traceback(exc_info), request_repr) File "/base/python_lib/versions/third_party/django- 0.96/django/core/handlers/base.py", line 131, in _get_traceback return '\n'.join(traceback.format_exception(*(exc_info or sys.exc_info()))) File "/base/python_dist/lib/python2.5/traceback.py", line 142, in format_exception list = list + format_tb(tb, limit) File "/base/python_dist/lib/python2.5/traceback.py", line 76, in format_tb return format_list(extract_tb(tb, limit)) File "/base/python_dist/lib/python2.5/traceback.py", line 101, in extract_tb line = linecache.getline(filename, lineno, f.f_globals) File "/base/python_dist/lib/python2.5/linecache.py", line 14, in getline lines = getlines(filename, module_globals) File "/base/python_dist/lib/python2.5/linecache.py", line 40, in getlines return updatecache(filename, module_globals) File "/base/python_dist/lib/python2.5/linecache.py", line 80, in updatecache stat = os.stat(fullname) <class 'google.appengine.runtime.DeadlineExceededError'>: </pre> Then when I retry immediately after, the django.dispatch.errors.DispatcherKeyError: <pre> <class 'django.dispatch.errors.DispatcherKeyError'>: 'No receivers found for signal <object object at 0x3c620696dc487fc8> from sender _Any' Traceback (most recent call last): File "/base/data/home/apps/molhokwai-net/7.338928266194351594/main.py", line 41, in <module> django.core.signals.got_request_exception) File "/base/python_lib/versions/third_party/django- 0.96/django/dispatch/dispatcher.py", line 213, in disconnect sender <class 'django.dispatch.errors.DispatcherKeyError'>: 'No receivers found for signal <object object at 0x3c620696dc487fc8> from sender _Any' </pre>
  • Jan 03, 2010
    issue 53 (Helper unable to properly parse fixtures for models with com...) commented on by aggieben   -   I am also experiencing a similar issue: I have a ListProperty that's supposed to contain google.appengine.ext.db.Key instances, and the serializer doesn't know to convert the json string data to google.appengine.ext.db.Key before validating. I could contribute here, possibly, if you have a desired approach in mind and just haven't had the time to get to it.
    I am also experiencing a similar issue: I have a ListProperty that's supposed to contain google.appengine.ext.db.Key instances, and the serializer doesn't know to convert the json string data to google.appengine.ext.db.Key before validating. I could contribute here, possibly, if you have a desired approach in mind and just haven't had the time to get to it.
  • Jan 02, 2010
    issue 103 (Support changing the location of appstore data) commented on by dherbst   -   Here's a patch for runserver. Please let me know if this is acceptable. svn diff appengine_django/management/commands/runserver.py Index: appengine_django/management/commands/runserver.py =================================================================== --- appengine_django/management/commands/runserver.py (revision 100) +++ appengine_django/management/commands/runserver.py (working copy) @@ -35,7 +35,7 @@ # hack __main__ so --help in dev_appserver_main works OK. sys.modules['__main__'] = dev_appserver_main # Set bind ip/port if specified. - if len(sys.argv) > 2: + if len(sys.argv) > 2 and not sys.argv[2].startswith("--"): addrport = sys.argv[2] try: addr, port = addrport.split(":") @@ -62,8 +62,18 @@ # Pass the application specific datastore location to the server. p = get_datastore_paths() - args.extend(["--datastore_path", p[0], "--history_path", p[1]]) + datastore_path = p[0] + history_path = p[1] + if len(sys.argv) > 2: + for arg in sys.argv[2:]: + if arg.startswith("--datastore_path="): + datastore_path=arg[arg.index("=")+1:] + elif arg.startswith("--history_path="): + history_path = arg[arg.index("=")+1:] + + args.extend(["--datastore_path", datastore_path, "--history_path", history_path]) + # Append the current working directory to the arguments. dev_appserver_main.main([progname] + args + [os.getcwdu()])
    Here's a patch for runserver. Please let me know if this is acceptable. svn diff appengine_django/management/commands/runserver.py Index: appengine_django/management/commands/runserver.py =================================================================== --- appengine_django/management/commands/runserver.py (revision 100) +++ appengine_django/management/commands/runserver.py (working copy) @@ -35,7 +35,7 @@ # hack __main__ so --help in dev_appserver_main works OK. sys.modules['__main__'] = dev_appserver_main # Set bind ip/port if specified. - if len(sys.argv) > 2: + if len(sys.argv) > 2 and not sys.argv[2].startswith("--"): addrport = sys.argv[2] try: addr, port = addrport.split(":") @@ -62,8 +62,18 @@ # Pass the application specific datastore location to the server. p = get_datastore_paths() - args.extend(["--datastore_path", p[0], "--history_path", p[1]]) + datastore_path = p[0] + history_path = p[1] + if len(sys.argv) > 2: + for arg in sys.argv[2:]: + if arg.startswith("--datastore_path="): + datastore_path=arg[arg.index("=")+1:] + elif arg.startswith("--history_path="): + history_path = arg[arg.index("=")+1:] + + args.extend(["--datastore_path", datastore_path, "--history_path", history_path]) + # Append the current working directory to the arguments. dev_appserver_main.main([progname] + args + [os.getcwdu()])
  • Jan 01, 2010
    issue 153 (Chunk reading of large uploaded file) reported by kalys.osmonov   -   When I tried to use request.FILES['file'].chunk() I've got Exception that only TemporaryFile class is implemented in tempfile module. Django uses NamedTemporaryFile. I've just changed NamedTemporaryFile to TemporaryFile in django/core/files/uploadfile.py and file uploading works well. Also I've overrided uploadfile.py module in appengine_django/__init__.py.
    When I tried to use request.FILES['file'].chunk() I've got Exception that only TemporaryFile class is implemented in tempfile module. Django uses NamedTemporaryFile. I've just changed NamedTemporaryFile to TemporaryFile in django/core/files/uploadfile.py and file uploading works well. Also I've overrided uploadfile.py module in appengine_django/__init__.py.

Last 30 days

  • Dec 31, 2009
    issue 152 (BaseModel instance doesn't have 'id' attribute) reported by tr...@phamcom.com   -   What steps will reproduce the problem? 1. create a deprived instance of BaseModel class 2. save it 3. call MyClassInstance.id What is the expected output? What do you see instead? expect id attribute to return an integer. instead exception is raised What version of the product are you using? On what operating system? django 1.1 mac helper r100 Please provide any additional information below. calling the id attribute should be the equivalent of MyClassInstance.key().id(). We should set the 'id' attribute that after saving the object and after retrieving it back from DataStore.
    What steps will reproduce the problem? 1. create a deprived instance of BaseModel class 2. save it 3. call MyClassInstance.id What is the expected output? What do you see instead? expect id attribute to return an integer. instead exception is raised What version of the product are you using? On what operating system? django 1.1 mac helper r100 Please provide any additional information below. calling the id attribute should be the equivalent of MyClassInstance.key().id(). We should set the 'id' attribute that after saving the object and after retrieving it back from DataStore.
  • Dec 31, 2009
    issue 151 (django.db.models.signals don't get trigger for BaseModel) reported by tr...@phamcom.com   -   What steps will reproduce the problem? 1. create a deprived instance of BaseModel 2. hook up post_save signal 3. call save() 4. expect post_save signal to trigger and execute the handler What is the expected output? What do you see instead? post_save signal doesn't get triggered. What version of the product are you using? On what operating system? django 1.1 mac helper r100 Please provide any additional information below. reference to django signal http://docs.djangoproject.com/en/dev/topics/signals/#topics-signals
    What steps will reproduce the problem? 1. create a deprived instance of BaseModel 2. hook up post_save signal 3. call save() 4. expect post_save signal to trigger and execute the handler What is the expected output? What do you see instead? post_save signal doesn't get triggered. What version of the product are you using? On what operating system? django 1.1 mac helper r100 Please provide any additional information below. reference to django signal http://docs.djangoproject.com/en/dev/topics/signals/#topics-signals
  • Dec 28, 2009
    issue 150 (Update documentation (README & ariticles) about using django...) reported by matteo.redaelli   -   Is it possibile to update the README and articles (for instance http://code.google.com/appengine/articles/appengine_helper_for_django.html) about using the "google" Django 1.1 ("Django 1.0.2 and 1.1 are also available in the runtime when running on App Engine") instead of the user/zipped one?
    Is it possibile to update the README and articles (for instance http://code.google.com/appengine/articles/appengine_helper_for_django.html) about using the "google" Django 1.1 ("Django 1.0.2 and 1.1 are also available in the runtime when running on App Engine") instead of the user/zipped one?
  • Dec 27, 2009
    issue 140 (How to instantiate a modelmanager?) commented on by ghinch   -   After some digging around I was able to get my manager to work, but not sure if this is a bug. I had to attach the manager to the model after defining it, ie: class MyManager(ModelManager): # methods class MyModel(db.Models): # properties MyModel.objects = MyManager(MyModel) As you can see I also had to pass a reference to the model into the manager when instantiating it. Is this the desired (or required) behavior?
    After some digging around I was able to get my manager to work, but not sure if this is a bug. I had to attach the manager to the model after defining it, ie: class MyManager(ModelManager): # methods class MyModel(db.Models): # properties MyModel.objects = MyManager(MyModel) As you can see I also had to pass a reference to the model into the manager when instantiating it. Is this the desired (or required) behavior?
  • Dec 26, 2009
    issue 140 (How to instantiate a modelmanager?) commented on by g...@mightydeep.com   -   I agree this is quite confusing. I'm trying to use it as you would a normal Django Manager, but I get an error "TypeError: __init__() takes exactly 2 arguments (1 given)". In my model class, I am creating a Manager which takes ModelManager as its attribute, and then setting my model's objects property to the Manager. Apparently I should be passing some argument to this but I don't know what
    I agree this is quite confusing. I'm trying to use it as you would a normal Django Manager, but I get an error "TypeError: __init__() takes exactly 2 arguments (1 given)". In my model class, I am creating a Manager which takes ModelManager as its attribute, and then setting my model's objects property to the Manager. Apparently I should be passing some argument to this but I don't know what
  • Dec 24, 2009
    issue 149 (Failing run local django) reported by anton.danilchenko   -   U using latest version r100 on my Ubuntu PC. I complete all steps described in README file. And I see errors. anton@anton-desktop:~/workspace/django$ python manage.py diffsettings Traceback (most recent call last): File "manage.py", line 18, in <module> InstallAppengineHelperForDjango() File "/home/anton/workspace/django/appengine_django/__init__.py", line 515, in InstallAppengineHelperForDjango LoadDjango(version) File "/home/anton/workspace/django/appengine_django/__init__.py", line 170, in LoadDjango use_library('django', check_version) File "/home/anton/workspace/google_appengine/google/appengine/dist/_library.py", line 282, in use_library CheckInstalledLibrary(name, version) File "/home/anton/workspace/google_appengine/google/appengine/dist/_library.py", line 167, in CheckInstalledLibrary CheckInstalledVersion(name, desired, explicit=True) File "/home/anton/workspace/google_appengine/google/appengine/dist/_library.py", line 185, in CheckInstalledVersion installed_version = find_version() File "/home/anton/workspace/google_appengine/google/appengine/dist/_library.py", line 66, in DjangoVersion import django ImportError: No module named django If I run application in web browser (with started dev_appserver.py) I se next errors in browser: --> --> --> Traceback (most recent call last): File "/home/anton/workspace/google_appengine/google/appengine/tools/dev_appserve r.py", line 3177, in _HandleRequest self._Dispatch(dispatcher, self.rfile, outfile, env_dict) File "/home/anton/workspace/google_appengine/google/appengine/tools/dev_appserve r.py", line 3120, in _Dispatch base_env_dict=env_dict) File "/home/anton/workspace/google_appengine/google/appengine/tools/dev_appserve r.py", line 515, in Dispatch base_env_dict=base_env_dict) File "/home/anton/workspace/google_appengine/google/appengine/tools/dev_appserve r.py", line 2379, in Dispatch self._module_dict) File "/home/anton/workspace/google_appengine/google/appengine/tools/dev_appserve r.py", line 2289, in ExecuteCGI reset_modules = exec_script(handler_path, cgi_path, hook) File "/home/anton/workspace/google_appengine/google/appengine/tools/dev_appserve r.py", line 2185, in ExecuteOrImportScript exec module_code in script_module.__dict__ File "/home/anton/workspace/django/main.py", line 29, in <module> InstallAppengineHelperForDjango() File "/home/anton/workspace/django/appengine_django/__init__.py", line 515, in InstallAppengineHelperForDjango LoadDjango(version) File "/home/anton/workspace/django/appengine_django/__init__.py", line 170, in LoadDjango use_library('django', check_version) File "/home/anton/workspace/google_appengine/google/appengine/dist/_library.py", line 282, in use_library CheckInstalledLibrary(name, version) File "/home/anton/workspace/google_appengine/google/appengine/dist/_library.py", line 167, in CheckInstalledLibrary CheckInstalledVersion(name, desired, explicit=True) File "/home/anton/workspace/google_appengine/google/appengine/dist/_library.py", line 183, in CheckInstalledVersion CallSetAllowedModule(name, desired) File "/home/anton/workspace/google_appengine/google/appengine/dist/_library.py", line 201, in CallSetAllowedModule SetAllowedModule(name) File "/home/anton/workspace/google_appengine/google/appengine/tools/dev_appserve r.py", line 1053, in SetAllowedModule stream, pathname, description = imp.find_module(name) ImportError: No module named django
    U using latest version r100 on my Ubuntu PC. I complete all steps described in README file. And I see errors. anton@anton-desktop:~/workspace/django$ python manage.py diffsettings Traceback (most recent call last): File "manage.py", line 18, in <module> InstallAppengineHelperForDjango() File "/home/anton/workspace/django/appengine_django/__init__.py", line 515, in InstallAppengineHelperForDjango LoadDjango(version) File "/home/anton/workspace/django/appengine_django/__init__.py", line 170, in LoadDjango use_library('django', check_version) File "/home/anton/workspace/google_appengine/google/appengine/dist/_library.py", line 282, in use_library CheckInstalledLibrary(name, version) File "/home/anton/workspace/google_appengine/google/appengine/dist/_library.py", line 167, in CheckInstalledLibrary CheckInstalledVersion(name, desired, explicit=True) File "/home/anton/workspace/google_appengine/google/appengine/dist/_library.py", line 185, in CheckInstalledVersion installed_version = find_version() File "/home/anton/workspace/google_appengine/google/appengine/dist/_library.py", line 66, in DjangoVersion import django ImportError: No module named django If I run application in web browser (with started dev_appserver.py) I se next errors in browser: --> --> --> Traceback (most recent call last): File "/home/anton/workspace/google_appengine/google/appengine/tools/dev_appserve r.py", line 3177, in _HandleRequest self._Dispatch(dispatcher, self.rfile, outfile, env_dict) File "/home/anton/workspace/google_appengine/google/appengine/tools/dev_appserve r.py", line 3120, in _Dispatch base_env_dict=env_dict) File "/home/anton/workspace/google_appengine/google/appengine/tools/dev_appserve r.py", line 515, in Dispatch base_env_dict=base_env_dict) File "/home/anton/workspace/google_appengine/google/appengine/tools/dev_appserve r.py", line 2379, in Dispatch self._module_dict) File "/home/anton/workspace/google_appengine/google/appengine/tools/dev_appserve r.py", line 2289, in ExecuteCGI reset_modules = exec_script(handler_path, cgi_path, hook) File "/home/anton/workspace/google_appengine/google/appengine/tools/dev_appserve r.py", line 2185, in ExecuteOrImportScript exec module_code in script_module.__dict__ File "/home/anton/workspace/django/main.py", line 29, in <module> InstallAppengineHelperForDjango() File "/home/anton/workspace/django/appengine_django/__init__.py", line 515, in InstallAppengineHelperForDjango LoadDjango(version) File "/home/anton/workspace/django/appengine_django/__init__.py", line 170, in LoadDjango use_library('django', check_version) File "/home/anton/workspace/google_appengine/google/appengine/dist/_library.py", line 282, in use_library CheckInstalledLibrary(name, version) File "/home/anton/workspace/google_appengine/google/appengine/dist/_library.py", line 167, in CheckInstalledLibrary CheckInstalledVersion(name, desired, explicit=True) File "/home/anton/workspace/google_appengine/google/appengine/dist/_library.py", line 183, in CheckInstalledVersion CallSetAllowedModule(name, desired) File "/home/anton/workspace/google_appengine/google/appengine/dist/_library.py", line 201, in CallSetAllowedModule SetAllowedModule(name) File "/home/anton/workspace/google_appengine/google/appengine/tools/dev_appserve r.py", line 1053, in SetAllowedModule stream, pathname, description = imp.find_module(name) ImportError: No module named django
  • Dec 18, 2009
    issue 146 ('super' object has no attribute 'expire_date') commented on by aggieben   -   Thanks a ton! I knew the problem was in the openid project's Session class, but I wasn't able to get a simple reproduction of the problem working before I got busy again. Thanks for your persistence!
    Thanks a ton! I knew the problem was in the openid project's Session class, but I wasn't able to get a simple reproduction of the problem working before I got busy again. Thanks for your persistence!
  • Dec 17, 2009
    issue 148 (Can't validate a form with a required boolean property that ...) commented on by mimika...@googlemail.com   -   In newforms/fields.py, Field.clean raises ValidationError if a value is None. This is called by BooleanField.clean which calls its super. But a checkbox that is unchecked will make the value None, because it just omits it from the CGI parameters. So this is a bug in newforms. Workaround: Make a BooleanField that does not call its super, like this: class MyBooleanField(fields.Field): widget = forms.CheckboxInput def clean(self, value): return bool(value) Google, maybe this is fixed in later Django? Need to update Django or back-patch.
    In newforms/fields.py, Field.clean raises ValidationError if a value is None. This is called by BooleanField.clean which calls its super. But a checkbox that is unchecked will make the value None, because it just omits it from the CGI parameters. So this is a bug in newforms. Workaround: Make a BooleanField that does not call its super, like this: class MyBooleanField(fields.Field): widget = forms.CheckboxInput def clean(self, value): return bool(value) Google, maybe this is fixed in later Django? Need to update Django or back-patch.
  • Dec 17, 2009
    issue 146 ('super' object has no attribute 'expire_date') commented on by senaduka   -   Ok .. I had the same problem and I figured it out. It's because you are using this project http://code.google.com/p/google-app-engine-django-openid/ to implement openid functionality ... And it creates a model class Session that uses the same datastore table name as the regular django Session model, but doesn't set the expire_date attribute. So as the result - you get records that have no expire_date .... To fix the issue, I just changed the name of openid's Session class to OpenIDSession, and changed the code to reflect the change of class name (in the openid app Session is created in 2 places in __init__.py). So now it works ...
    Ok .. I had the same problem and I figured it out. It's because you are using this project http://code.google.com/p/google-app-engine-django-openid/ to implement openid functionality ... And it creates a model class Session that uses the same datastore table name as the regular django Session model, but doesn't set the expire_date attribute. So as the result - you get records that have no expire_date .... To fix the issue, I just changed the name of openid's Session class to OpenIDSession, and changed the code to reflect the change of class name (in the openid app Session is created in 2 places in __init__.py). So now it works ...
  • Dec 17, 2009
    appengine_helper_for_django-r100.zip (Google App Engine Helper for Django (r100)) file uploaded by mattbrown.nz   -  
    Labels: Featured Type-Archive OpSys-All
    Labels: Featured Type-Archive OpSys-All
  • Dec 17, 2009
    r100 (Remove unnecessary check that required objects being deseria...) committed by mattbrown.nz   -   Remove unnecessary check that required objects being deserialized to have a key_name.
    Remove unnecessary check that required objects being deserialized to have a key_name.
  • Dec 16, 2009
    issue 148 (Can't validate a form with a required boolean property that ...) reported by richard.brooksby   -   A ModelForm derived from a Model with a required BoolProperty has a checkbox. But if you submit the form with the checkbox unchecked (because you want the property to be False) the form won't validate. An app which demonstrates this is attached. It's very simple and more or less straight out of "Using the Google App Engine Helper for Django" http://code.google.com/appengine/articles/appengine_helper_for_django.html Try to submit the form with the checkbox unchecked. You will get "this field is required". I suspect somewhere in the code someone used "if x" when they mean "if x != None". (This is one of my beefs with Python.) Code review should pick that up.
    A ModelForm derived from a Model with a required BoolProperty has a checkbox. But if you submit the form with the checkbox unchecked (because you want the property to be False) the form won't validate. An app which demonstrates this is attached. It's very simple and more or less straight out of "Using the Google App Engine Helper for Django" http://code.google.com/appengine/articles/appengine_helper_for_django.html Try to submit the form with the checkbox unchecked. You will get "this field is required". I suspect somewhere in the code someone used "if x" when they mean "if x != None". (This is one of my beefs with Python.) Code review should pick that up.
  • Dec 10, 2009
    issue 147 (inbound mail) commented on by sfornengo   -   I found request.raw_post_data but I didn't succeed in extracting clean data. is it possible to use InboundMailHandler to obtain a InboundEmailMessage object ?
    I found request.raw_post_data but I didn't succeed in extracting clean data. is it possible to use InboundMailHandler to obtain a InboundEmailMessage object ?
  • Dec 09, 2009
    issue 147 (inbound mail) reported by sfornengo   -   how to handle inbound mail with django ? in my urls.py I have a: (r'^_ah/mail/.+$','app.views.incoming_mail') that calls this view: def incoming_mail(request): return HttpResponse() but how to get the message and its components (subject, body, attachements) in this view ?
    how to handle inbound mail with django ? in my urls.py I have a: (r'^_ah/mail/.+$','app.views.incoming_mail') that calls this view: def incoming_mail(request): return HttpResponse() but how to get the message and its components (subject, body, attachements) in this view ?

Older

  • Dec 08, 2009
    issue 144 (shell seems to use a different datastore than the site) commented on by eug.song   -   I ran into this problem as well. I'm rather disappointed in the solution, as there is a bit of time overhead to stopping/starting the server, and the alternative is the not-so-interactive "Interactive Console" in the admin console. At least it seems like I don't have to close the shell for the data to update for the server, but only restart the server. Also, I agree with allyourcode...this is certainly not an invalid issue!
    I ran into this problem as well. I'm rather disappointed in the solution, as there is a bit of time overhead to stopping/starting the server, and the alternative is the not-so-interactive "Interactive Console" in the admin console. At least it seems like I don't have to close the shell for the data to update for the server, but only restart the server. Also, I agree with allyourcode...this is certainly not an invalid issue!
  • Nov 29, 2009
    issue 146 ('super' object has no attribute 'expire_date') commented on by mattbrown.nz   -   The problem does not appear to be with setting a value on the session. The problem is that the session object that is retrieved has no expire_date attribute, so the App Engine expando model code is raising an error when it tries to read it in the course of validating that the session is correct - before the attribute setting code is even touched. How was your session data created? Maybe you have bogus data in your datastore? Try clearing all your session models via the admin console. Starting from a clean datastore can you provide a reproducible set of steps to demonstrate this issue?
    The problem does not appear to be with setting a value on the session. The problem is that the session object that is retrieved has no expire_date attribute, so the App Engine expando model code is raising an error when it tries to read it in the course of validating that the session is correct - before the attribute setting code is even touched. How was your session data created? Maybe you have bogus data in your datastore? Try clearing all your session models via the admin console. Starting from a clean datastore can you provide a reproducible set of steps to demonstrate this issue?
  • Nov 28, 2009
    issue 146 ('super' object has no attribute 'expire_date') commented on by aggieben   -   I can run this in the interactive console on /_ah/admin: from google.appengine.api import users from appengine_django.sessions.models import Session s = Session.all().get() print s.expire_date The printed results are correct, so now I'm more confused.
    I can run this in the interactive console on /_ah/admin: from google.appengine.api import users from appengine_django.sessions.models import Session s = Session.all().get() print s.expire_date The printed results are correct, so now I'm more confused.
  • Nov 28, 2009
    issue 146 ('super' object has no attribute 'expire_date') commented on by aggieben   -   I lose track of what's happening on appengine_django\sessions\backends\db.py:63. The session_key is correct as best I can tell (and the datastore only has one session entity anyway), but what gets loaded here is an openidgae.models.Session instead of appengine_django.sessions.models.Session. I have no idea why, and I'm not sure how to tell exactly which it is that's stored in the datastore.
    I lose track of what's happening on appengine_django\sessions\backends\db.py:63. The session_key is correct as best I can tell (and the datastore only has one session entity anyway), but what gets loaded here is an openidgae.models.Session instead of appengine_django.sessions.models.Session. I have no idea why, and I'm not sure how to tell exactly which it is that's stored in the datastore.
  • Nov 28, 2009
    issue 146 ('super' object has no attribute 'expire_date') commented on by aggieben   -   It appears that openidgae has sessions models that stomp on django...
    It appears that openidgae has sessions models that stomp on django...
  • Nov 28, 2009
    issue 146 ('super' object has no attribute 'expire_date') reported by aggieben   -   What steps will reproduce the problem? 1. process request in a view 2. try to call _setitem_ on session like this: 'request.session['key'] = [val] What is the expected output? What do you see instead? I expect to see the template rendered by the view, but instead, I see a debug page with a backtrace: Environment: Request Method: GET Request URL: http://localhost:8080/pub/ Django Version: 1.1.1 Python Version: 2.5.4 Installed Applications: ('appengine_django', 'openidgae', 'django.contrib.sessions', 'pub', 'fb') Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'openidgae.middleware.OpenIDMiddleware') Traceback: File "C:\Python25\lib\site-packages\django\core\handlers\base.py" in get_response 92. response = callback(request, *callback_args, **callback_kwargs) File "C:\Users\Ben\Development\workspace\ringbot\src\pub\views.py" in index 25. request.session.set_expiry(0) File "C:\Python25\lib\site-packages\django\contrib\sessions\backends\base.py" in set_expiry 220. self['_session_expiry'] = value File "C:\Python25\lib\site-packages\django\contrib\sessions\backends\base.py" in __setitem__ 49. self._session[key] = value File "C:\Python25\lib\site-packages\django\contrib\sessions\backends\base.py" in _get_session 172. self._session_cache = self.load() File "C:\Users\Ben\Development\workspace\ringbot\src\appengine_django\sessions\backends\db.py" in load 29. session = self._get_session(self.session_key) File "C:\Users\Ben\Development\workspace\ringbot\src\appengine_django\sessions\backends\db.py" in _get_session 65. if session.expire_date > datetime.now(): File "C:\Program Files\Google\google_appengine\google\appengine\ext\db\__init__.py" in __getattr__ 1396. return getattr(super(Expando, self), key) Exception Type: AttributeError at /pub/ Exception Value: 'super' object has no attribute 'expire_date' What version of the product are you using? On what operating system? django-1.1.1, google-app-engine-django r99 (first discovered in r95) Please provide any additional information below. As always, I am probably just doing something wrong, but I haven't yet been able to figure out what.
    What steps will reproduce the problem? 1. process request in a view 2. try to call _setitem_ on session like this: 'request.session['key'] = [val] What is the expected output? What do you see instead? I expect to see the template rendered by the view, but instead, I see a debug page with a backtrace: Environment: Request Method: GET Request URL: http://localhost:8080/pub/ Django Version: 1.1.1 Python Version: 2.5.4 Installed Applications: ('appengine_django', 'openidgae', 'django.contrib.sessions', 'pub', 'fb') Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'openidgae.middleware.OpenIDMiddleware') Traceback: File "C:\Python25\lib\site-packages\django\core\handlers\base.py" in get_response 92. response = callback(request, *callback_args, **callback_kwargs) File "C:\Users\Ben\Development\workspace\ringbot\src\pub\views.py" in index 25. request.session.set_expiry(0) File "C:\Python25\lib\site-packages\django\contrib\sessions\backends\base.py" in set_expiry 220. self['_session_expiry'] = value File "C:\Python25\lib\site-packages\django\contrib\sessions\backends\base.py" in __setitem__ 49. self._session[key] = value File "C:\Python25\lib\site-packages\django\contrib\sessions\backends\base.py" in _get_session 172. self._session_cache = self.load() File "C:\Users\Ben\Development\workspace\ringbot\src\appengine_django\sessions\backends\db.py" in load 29. session = self._get_session(self.session_key) File "C:\Users\Ben\Development\workspace\ringbot\src\appengine_django\sessions\backends\db.py" in _get_session 65. if session.expire_date > datetime.now(): File "C:\Program Files\Google\google_appengine\google\appengine\ext\db\__init__.py" in __getattr__ 1396. return getattr(super(Expando, self), key) Exception Type: AttributeError at /pub/ Exception Value: 'super' object has no attribute 'expire_date' What version of the product are you using? On what operating system? django-1.1.1, google-app-engine-django r99 (first discovered in r95) Please provide any additional information below. As always, I am probably just doing something wrong, but I haven't yet been able to figure out what.
  • Nov 25, 2009
    issue 137 (Basic patch to get appengine_django.zip to work with django) commented on by john.larooy   -   I think there was a note in the TODO that this wasn't working. ie you had to unzip appengine_django.zip for django to find it.
    I think there was a note in the TODO that this wasn't working. ie you had to unzip appengine_django.zip for django to find it.
  • Nov 24, 2009
    issue 144 (shell seems to use a different datastore than the site) commented on by allyourcode   -   Can we make this an enhancement then? This behavior should at least be mentioned in the "Playing with the API" section on this page: http://code.google.com/appengine/articles/appengine_helper_for_django.html Also, this should be marked as wontfix instead of invalid, as this is a totally legitimate complaint!
    Can we make this an enhancement then? This behavior should at least be mentioned in the "Playing with the API" section on this page: http://code.google.com/appengine/articles/appengine_helper_for_django.html Also, this should be marked as wontfix instead of invalid, as this is a totally legitimate complaint!
  • Nov 24, 2009
    issue 144 (shell seems to use a different datastore than the site) commented on by allyourcode   -   Can we make this an enhancement then? This behavior should at least be mentioned in the "Playing with the API" section on this page: http://code.google.com/appengine/articles/appengine_helper_for_django.html
    Can we make this an enhancement then? This behavior should at least be mentioned in the "Playing with the API" section on this page: http://code.google.com/appengine/articles/appengine_helper_for_django.html
  • Nov 24, 2009
    issue 113 (deprecated django signal code causing error) Status changed by mattbrown.nz   -   Please provide a working set of steps to reproduce this if you would like us to look further at it.
    Status: Invalid
    Please provide a working set of steps to reproduce this if you would like us to look further at it.
    Status: Invalid
  • Nov 24, 2009
    issue 119 (Error initial setup - TypeError("Initialization arguments ar...) commented on by mattbrown.nz   -   Is this still an issue?
    Is this still an issue?
  • Nov 24, 2009
    issue 122 (DuplicatePropertyError: Class Model already has property cho...) Status changed by mattbrown.nz   -  
    Status: Invalid
    Status: Invalid
  • Nov 24, 2009
    issue 127 (manage.py test fails on windows error AttributeError: 'Strin...) Status changed by mattbrown.nz   -   Is this still an issue? I think it may have been fixed in r95. Please re-open if this still does not work.
    Status: Fixed
    Is this still an issue? I think it may have been fixed in r95. Please re-open if this still does not work.
    Status: Fixed
  • Nov 24, 2009
    issue 131 (Admin) Status changed by mattbrown.nz   -  
    Status: WontFix
    Status: WontFix
  • Nov 24, 2009
    issue 135 (PIL is in PATH; installed and working in shell but won't im...) Status changed by mattbrown.nz   -   What makes you think this is a problem with the helper itself? This looks like a normal python import problem from the details you have provided.
    Status: Invalid
    What makes you think this is a problem with the helper itself? This looks like a normal python import problem from the details you have provided.
    Status: Invalid
  • Nov 24, 2009
    issue 137 (Basic patch to get appengine_django.zip to work with django) commented on by mattbrown.nz   -   What is the problem you are trying to fix here? We need more details.
    What is the problem you are trying to fix here? We need more details.
  • Nov 24, 2009
    issue 139 (Typo in appengine_django/__init__.py) Status changed by mattbrown.nz   -   Fixed in r98, thanks.
    Status: Fixed
    Fixed in r98, thanks.
    Status: Fixed
  • Nov 24, 2009
    issue 141 (Add a file system) Status changed by mattbrown.nz   -  
    Status: Invalid
    Status: Invalid
  • Nov 24, 2009
    issue 143 (name 'request' is not defined) Status changed by mattbrown.nz   -   Your python is incorrect. You have specified request to the class, which means it is looking for a class named request to inherit from. request is the standard variable name for the first argument passed to handle methods such as your get method. Please refer to the tutorials for further information.
    Status: Invalid
    Your python is incorrect. You have specified request to the class, which means it is looking for a class named request to inherit from. request is the standard variable name for the first argument passed to handle methods such as your get method. Please refer to the tutorials for further information.
    Status: Invalid
  • Nov 24, 2009
    issue 144 (shell seems to use a different datastore than the site) Status changed by mattbrown.nz   -   Both the shell and runserver are configured to use the same datastore. It will be located at /tmp/django_APPNAME.datastore It is only loaded/saved at the start/end of the scripts, so it won't work if you have the shell and server running concurrently. If you have only one running at a time and close the shell before starting the server then you'll see the data in both as you expect.
    Status: Invalid
    Both the shell and runserver are configured to use the same datastore. It will be located at /tmp/django_APPNAME.datastore It is only loaded/saved at the start/end of the scripts, so it won't work if you have the shell and server running concurrently. If you have only one running at a time and close the shell before starting the server then you'll see the data in both as you expect.
    Status: Invalid
  • Nov 24, 2009
    issue 142 (ImportError: No module named appengine.dist) changed by mattbrown.nz   -   This issue was closed by revision r99.
    Status: Fixed
    This issue was closed by revision r99.
    Status: Fixed
  • Nov 24, 2009
    r99 (Add an import hack to fix reported import problems on Ubuntu...) committed by mattbrown.nz   -   Add an import hack to fix reported import problems on Ubuntu 9.10 Fixes Issue #142
    Add an import hack to fix reported import problems on Ubuntu 9.10 Fixes Issue #142
  • Nov 24, 2009
    issue 145 ('module' object has no attribute 'disconnc') changed by mattbrown.nz   -   This issue was closed by revision r98.
    Status: Fixed
    This issue was closed by revision r98.
    Status: Fixed