Skip to content

Instantly share code, notes, and snippets.

@reverocean
Created May 4, 2012 08:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reverocean/2593435 to your computer and use it in GitHub Desktop.
Save reverocean/2593435 to your computer and use it in GitHub Desktop.
Following error
ERROR: test_should_render_alldata_view_if_logged_in (datawinners.alldata.tests.test_alldata.TestAllData)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/alldata/tests/test_alldata.py", line 16, in test_should_render_alldata_view_if_logged_in
response = self.client.get('/alldata/')
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/test/client.py", line 445, in get
response = super(Client, self).get(path, data=data, **extra)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/test/client.py", line 229, in get
return self.request(**r)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/accountmanagement/views.py", line 83, in wrapper
if not len(get_all_projects(get_database_manager(args[0].user))) and not user.groups.filter(
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/project/models.py", line 308, in get_all_projects
return dbm.load_all_rows_in_view('all_projects')
File "/Users/phoenix/mangroveorg/mangrove/mangrove/datastore/database.py", line 182, in load_all_rows_in_view
rows = self.database.view(full_view_name, **values).rows
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 1003, in rows
self._fetch()
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 990, in _fetch
data = self.view._exec(self.options)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 880, in _exec
_, _, data = self.resource.get_json(**self._encode_options(options))
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 393, in get_json
status, headers, data = self.get(*a, **k)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 374, in get
return self._request('GET', path, headers=headers, **params)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 419, in _request
credentials=self.credentials)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 304, in request
raise ResourceNotFound(error)
ResourceNotFound: ('not_found', 'missing')
-------------------- >> begin captured stdout << ---------------------
[DEBUG] loading view: all_projects/all_projects
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
django.request: ERROR: Internal Server Error: /alldata/
Traceback (most recent call last):
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/accountmanagement/views.py", line 83, in wrapper
if not len(get_all_projects(get_database_manager(args[0].user))) and not user.groups.filter(
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/project/models.py", line 308, in get_all_projects
return dbm.load_all_rows_in_view('all_projects')
File "/Users/phoenix/mangroveorg/mangrove/mangrove/datastore/database.py", line 182, in load_all_rows_in_view
rows = self.database.view(full_view_name, **values).rows
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 1003, in rows
self._fetch()
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 990, in _fetch
data = self.view._exec(self.options)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 880, in _exec
_, _, data = self.resource.get_json(**self._encode_options(options))
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 393, in get_json
status, headers, data = self.get(*a, **k)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 374, in get
return self._request('GET', path, headers=headers, **params)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 419, in _request
credentials=self.credentials)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 304, in request
raise ResourceNotFound(error)
ResourceNotFound: ('not_found', 'missing')
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_should_render_dashboard_view_if_logged_in (datawinners.dashboard.tests.test_dashboard.TestDashboard)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/dashboard/tests/test_dashboard.py", line 17, in test_should_render_dashboard_view_if_logged_in
response = self.client.get('/dashboard/')
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/test/client.py", line 445, in get
response = super(Client, self).get(path, data=data, **extra)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/test/client.py", line 229, in get
return self.request(**r)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/accountmanagement/views.py", line 58, in wrapper
return f(*args, **kw)
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/accountmanagement/views.py", line 109, in wrapper
return f(*args, **kw)
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/dashboard/views.py", line 86, in dashboard
rows = manager.load_all_rows_in_view('all_projects', descending=True, limit=4)
File "/Users/phoenix/mangroveorg/mangrove/mangrove/datastore/database.py", line 182, in load_all_rows_in_view
rows = self.database.view(full_view_name, **values).rows
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 1003, in rows
self._fetch()
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 990, in _fetch
data = self.view._exec(self.options)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 880, in _exec
_, _, data = self.resource.get_json(**self._encode_options(options))
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 393, in get_json
status, headers, data = self.get(*a, **k)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 374, in get
return self._request('GET', path, headers=headers, **params)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 419, in _request
credentials=self.credentials)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 304, in request
raise ResourceNotFound(error)
ResourceNotFound: ('not_found', 'missing')
-------------------- >> begin captured stdout << ---------------------
[DEBUG] loading view: all_projects/all_projects
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
django.request: ERROR: Internal Server Error: /dashboard/
Traceback (most recent call last):
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/accountmanagement/views.py", line 58, in wrapper
return f(*args, **kw)
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/accountmanagement/views.py", line 109, in wrapper
return f(*args, **kw)
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/dashboard/views.py", line 86, in dashboard
rows = manager.load_all_rows_in_view('all_projects', descending=True, limit=4)
File "/Users/phoenix/mangroveorg/mangrove/mangrove/datastore/database.py", line 182, in load_all_rows_in_view
rows = self.database.view(full_view_name, **values).rows
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 1003, in rows
self._fetch()
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 990, in _fetch
data = self.view._exec(self.options)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 880, in _exec
_, _, data = self.resource.get_json(**self._encode_options(options))
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 393, in get_json
status, headers, data = self.get(*a, **k)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 374, in get
return self._request('GET', path, headers=headers, **params)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 419, in _request
credentials=self.credentials)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 304, in request
raise ResourceNotFound(error)
ResourceNotFound: ('not_found', 'missing')
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_should_associate_datasender (datawinners.entity.tests.test_entity_logged_in.TestEntityLoggedIn)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/entity/tests/test_entity_logged_in.py", line 40, in test_should_associate_datasender
response = self.client.post('/entity/associate/',{'project_id' : project_id,'ids' : ids})
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/test/client.py", line 455, in post
response = super(Client, self).post(path, data=data, content_type=content_type, **extra)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/test/client.py", line 256, in post
return self.request(**r)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 52, in wrapped_view
return view_func(*args, **kwargs)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 39, in wrapped_view
resp = view_func(*args, **kwargs)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/accountmanagement/views.py", line 83, in wrapper
if not len(get_all_projects(get_database_manager(args[0].user))) and not user.groups.filter(
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/project/models.py", line 308, in get_all_projects
return dbm.load_all_rows_in_view('all_projects')
File "/Users/phoenix/mangroveorg/mangrove/mangrove/datastore/database.py", line 182, in load_all_rows_in_view
rows = self.database.view(full_view_name, **values).rows
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 1003, in rows
self._fetch()
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 990, in _fetch
data = self.view._exec(self.options)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 880, in _exec
_, _, data = self.resource.get_json(**self._encode_options(options))
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 393, in get_json
status, headers, data = self.get(*a, **k)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 374, in get
return self._request('GET', path, headers=headers, **params)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 419, in _request
credentials=self.credentials)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 304, in request
raise ResourceNotFound(error)
ResourceNotFound: ('not_found', 'missing')
-------------------- >> begin captured stdout << ---------------------
[DEBUG] loading view: all_projects/all_projects
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
django.request: ERROR: Internal Server Error: /entity/associate/
Traceback (most recent call last):
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 52, in wrapped_view
return view_func(*args, **kwargs)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 39, in wrapped_view
resp = view_func(*args, **kwargs)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/accountmanagement/views.py", line 83, in wrapper
if not len(get_all_projects(get_database_manager(args[0].user))) and not user.groups.filter(
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/project/models.py", line 308, in get_all_projects
return dbm.load_all_rows_in_view('all_projects')
File "/Users/phoenix/mangroveorg/mangrove/mangrove/datastore/database.py", line 182, in load_all_rows_in_view
rows = self.database.view(full_view_name, **values).rows
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 1003, in rows
self._fetch()
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 990, in _fetch
data = self.view._exec(self.options)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 880, in _exec
_, _, data = self.resource.get_json(**self._encode_options(options))
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 393, in get_json
status, headers, data = self.get(*a, **k)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 374, in get
return self._request('GET', path, headers=headers, **params)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 419, in _request
credentials=self.credentials)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 304, in request
raise ResourceNotFound(error)
ResourceNotFound: ('not_found', 'missing')
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_should_disassociate_datasender (datawinners.entity.tests.test_entity_logged_in.TestEntityLoggedIn)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/entity/tests/test_entity_logged_in.py", line 46, in test_should_disassociate_datasender
response = self.client.post('/entity/disassociate/',{'project_id' : project_id,'ids' : ids})
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/test/client.py", line 455, in post
response = super(Client, self).post(path, data=data, content_type=content_type, **extra)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/test/client.py", line 256, in post
return self.request(**r)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 52, in wrapped_view
return view_func(*args, **kwargs)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 39, in wrapped_view
resp = view_func(*args, **kwargs)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/accountmanagement/views.py", line 83, in wrapper
if not len(get_all_projects(get_database_manager(args[0].user))) and not user.groups.filter(
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/project/models.py", line 308, in get_all_projects
return dbm.load_all_rows_in_view('all_projects')
File "/Users/phoenix/mangroveorg/mangrove/mangrove/datastore/database.py", line 182, in load_all_rows_in_view
rows = self.database.view(full_view_name, **values).rows
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 1003, in rows
self._fetch()
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 990, in _fetch
data = self.view._exec(self.options)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 880, in _exec
_, _, data = self.resource.get_json(**self._encode_options(options))
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 393, in get_json
status, headers, data = self.get(*a, **k)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 374, in get
return self._request('GET', path, headers=headers, **params)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 419, in _request
credentials=self.credentials)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 304, in request
raise ResourceNotFound(error)
ResourceNotFound: ('not_found', 'missing')
-------------------- >> begin captured stdout << ---------------------
[DEBUG] loading view: all_projects/all_projects
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
django.request: ERROR: Internal Server Error: /entity/disassociate/
Traceback (most recent call last):
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 52, in wrapped_view
return view_func(*args, **kwargs)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 39, in wrapped_view
resp = view_func(*args, **kwargs)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/accountmanagement/views.py", line 83, in wrapper
if not len(get_all_projects(get_database_manager(args[0].user))) and not user.groups.filter(
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/project/models.py", line 308, in get_all_projects
return dbm.load_all_rows_in_view('all_projects')
File "/Users/phoenix/mangroveorg/mangrove/mangrove/datastore/database.py", line 182, in load_all_rows_in_view
rows = self.database.view(full_view_name, **values).rows
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 1003, in rows
self._fetch()
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 990, in _fetch
data = self.view._exec(self.options)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 880, in _exec
_, _, data = self.resource.get_json(**self._encode_options(options))
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 393, in get_json
status, headers, data = self.get(*a, **k)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 374, in get
return self._request('GET', path, headers=headers, **params)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 419, in _request
credentials=self.credentials)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 304, in request
raise ResourceNotFound(error)
ResourceNotFound: ('not_found', 'missing')
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_should_render_all_subjects_view_if_logged_in (datawinners.entity.tests.test_entity_logged_in.TestEntityLoggedIn)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/entity/tests/test_entity_logged_in.py", line 34, in test_should_render_all_subjects_view_if_logged_in
response = self.client.get('/entity/subjects/')
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/test/client.py", line 445, in get
response = super(Client, self).get(path, data=data, **extra)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/test/client.py", line 229, in get
return self.request(**r)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 52, in wrapped_view
return view_func(*args, **kwargs)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 39, in wrapped_view
resp = view_func(*args, **kwargs)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/accountmanagement/views.py", line 83, in wrapper
if not len(get_all_projects(get_database_manager(args[0].user))) and not user.groups.filter(
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/project/models.py", line 308, in get_all_projects
return dbm.load_all_rows_in_view('all_projects')
File "/Users/phoenix/mangroveorg/mangrove/mangrove/datastore/database.py", line 182, in load_all_rows_in_view
rows = self.database.view(full_view_name, **values).rows
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 1003, in rows
self._fetch()
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 990, in _fetch
data = self.view._exec(self.options)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 880, in _exec
_, _, data = self.resource.get_json(**self._encode_options(options))
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 393, in get_json
status, headers, data = self.get(*a, **k)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 374, in get
return self._request('GET', path, headers=headers, **params)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 419, in _request
credentials=self.credentials)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 304, in request
raise ResourceNotFound(error)
ResourceNotFound: ('not_found', 'missing')
-------------------- >> begin captured stdout << ---------------------
[DEBUG] loading view: all_projects/all_projects
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
django.request: ERROR: Internal Server Error: /entity/subjects/
Traceback (most recent call last):
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 52, in wrapped_view
return view_func(*args, **kwargs)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 39, in wrapped_view
resp = view_func(*args, **kwargs)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/accountmanagement/views.py", line 83, in wrapper
if not len(get_all_projects(get_database_manager(args[0].user))) and not user.groups.filter(
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/project/models.py", line 308, in get_all_projects
return dbm.load_all_rows_in_view('all_projects')
File "/Users/phoenix/mangroveorg/mangrove/mangrove/datastore/database.py", line 182, in load_all_rows_in_view
rows = self.database.view(full_view_name, **values).rows
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 1003, in rows
self._fetch()
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 990, in _fetch
data = self.view._exec(self.options)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 880, in _exec
_, _, data = self.resource.get_json(**self._encode_options(options))
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 393, in get_json
status, headers, data = self.get(*a, **k)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 374, in get
return self._request('GET', path, headers=headers, **params)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 419, in _request
credentials=self.credentials)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 304, in request
raise ResourceNotFound(error)
ResourceNotFound: ('not_found', 'missing')
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_should_render_entity_datasenders_view_if_logged_in (datawinners.entity.tests.test_entity_logged_in.TestEntityLoggedIn)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/entity/tests/test_entity_logged_in.py", line 21, in test_should_render_entity_datasenders_view_if_logged_in
response = self.client.get('/entity/datasenders/')
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/test/client.py", line 445, in get
response = super(Client, self).get(path, data=data, **extra)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/test/client.py", line 229, in get
return self.request(**r)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 52, in wrapped_view
return view_func(*args, **kwargs)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 39, in wrapped_view
resp = view_func(*args, **kwargs)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/accountmanagement/views.py", line 83, in wrapper
if not len(get_all_projects(get_database_manager(args[0].user))) and not user.groups.filter(
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/project/models.py", line 308, in get_all_projects
return dbm.load_all_rows_in_view('all_projects')
File "/Users/phoenix/mangroveorg/mangrove/mangrove/datastore/database.py", line 182, in load_all_rows_in_view
rows = self.database.view(full_view_name, **values).rows
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 1003, in rows
self._fetch()
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 990, in _fetch
data = self.view._exec(self.options)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 880, in _exec
_, _, data = self.resource.get_json(**self._encode_options(options))
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 393, in get_json
status, headers, data = self.get(*a, **k)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 374, in get
return self._request('GET', path, headers=headers, **params)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 419, in _request
credentials=self.credentials)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 304, in request
raise ResourceNotFound(error)
ResourceNotFound: ('not_found', 'missing')
-------------------- >> begin captured stdout << ---------------------
[DEBUG] loading view: all_projects/all_projects
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
django.request: ERROR: Internal Server Error: /entity/datasenders/
Traceback (most recent call last):
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 52, in wrapped_view
return view_func(*args, **kwargs)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 39, in wrapped_view
resp = view_func(*args, **kwargs)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/accountmanagement/views.py", line 83, in wrapper
if not len(get_all_projects(get_database_manager(args[0].user))) and not user.groups.filter(
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/project/models.py", line 308, in get_all_projects
return dbm.load_all_rows_in_view('all_projects')
File "/Users/phoenix/mangroveorg/mangrove/mangrove/datastore/database.py", line 182, in load_all_rows_in_view
rows = self.database.view(full_view_name, **values).rows
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 1003, in rows
self._fetch()
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 990, in _fetch
data = self.view._exec(self.options)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 880, in _exec
_, _, data = self.resource.get_json(**self._encode_options(options))
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 393, in get_json
status, headers, data = self.get(*a, **k)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 374, in get
return self._request('GET', path, headers=headers, **params)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 419, in _request
credentials=self.credentials)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 304, in request
raise ResourceNotFound(error)
ResourceNotFound: ('not_found', 'missing')
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_should_render_subject_create_view_if_logged_in (datawinners.entity.tests.test_entity_logged_in.TestEntityLoggedIn)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/entity/tests/test_entity_logged_in.py", line 17, in test_should_render_subject_create_view_if_logged_in
response = self.client.get('/entity/subject/create/clinic/')
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/test/client.py", line 445, in get
response = super(Client, self).get(path, data=data, **extra)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/test/client.py", line 229, in get
return self.request(**r)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/accountmanagement/views.py", line 109, in wrapper
return f(*args, **kw)
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/entity/views.py", line 340, in create_subject
form_model = get_form_model_by_entity_type(manager, [entity_type.lower()])
File "/Users/phoenix/mangroveorg/mangrove/mangrove/form_model/form_model.py", line 51, in get_form_model_by_entity_type
rows = dbm.view.registration_form_model_by_entity_type(key=entity_type, include_docs=True)
File "/Users/phoenix/mangroveorg/mangrove/mangrove/datastore/database.py", line 145, in _execute
return self._load_all_rows_in_view(**values)
File "/Users/phoenix/mangroveorg/mangrove/mangrove/datastore/database.py", line 137, in _load_all_rows_in_view
rows = self.database.view(full_view_name, **values).rows
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 1003, in rows
self._fetch()
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 990, in _fetch
data = self.view._exec(self.options)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 880, in _exec
_, _, data = self.resource.get_json(**self._encode_options(options))
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 393, in get_json
status, headers, data = self.get(*a, **k)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 374, in get
return self._request('GET', path, headers=headers, **params)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 419, in _request
credentials=self.credentials)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 304, in request
raise ResourceNotFound(error)
ResourceNotFound: ('not_found', 'missing')
-------------------- >> begin captured stdout << ---------------------
[DEBUG] loading view: registration_form_model_by_entity_type/registration_form_model_by_entity_type
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
django.request: ERROR: Internal Server Error: /entity/subject/create/clinic/
Traceback (most recent call last):
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/accountmanagement/views.py", line 109, in wrapper
return f(*args, **kw)
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/entity/views.py", line 340, in create_subject
form_model = get_form_model_by_entity_type(manager, [entity_type.lower()])
File "/Users/phoenix/mangroveorg/mangrove/mangrove/form_model/form_model.py", line 51, in get_form_model_by_entity_type
rows = dbm.view.registration_form_model_by_entity_type(key=entity_type, include_docs=True)
File "/Users/phoenix/mangroveorg/mangrove/mangrove/datastore/database.py", line 145, in _execute
return self._load_all_rows_in_view(**values)
File "/Users/phoenix/mangroveorg/mangrove/mangrove/datastore/database.py", line 137, in _load_all_rows_in_view
rows = self.database.view(full_view_name, **values).rows
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 1003, in rows
self._fetch()
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 990, in _fetch
data = self.view._exec(self.options)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 880, in _exec
_, _, data = self.resource.get_json(**self._encode_options(options))
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 393, in get_json
status, headers, data = self.get(*a, **k)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 374, in get
return self._request('GET', path, headers=headers, **params)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 419, in _request
credentials=self.credentials)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 304, in request
raise ResourceNotFound(error)
ResourceNotFound: ('not_found', 'missing')
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_get_hierarchy_from_location (datawinners.location.tests.test_location_tree.TestLocationTree)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/location/tests/test_location_tree.py", line 16, in test_get_hierarchy_from_location
self.assertEqual([u'AMBOANJO',u'MANAKARA ATSIMO',u'VATOVAVY FITOVINANY',u'Madagascar'], get_location_hierarchy('Amboanjo'))
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/location/LocationTree.py", line 59, in get_location_hierarchy
cursor.execute(sql, [lowest_level, lowest_level, lowest_level, lowest_level, lowest_level])
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 44, in execute
return self.cursor.execute(query, args)
DatabaseError: current transaction is aborted, commands ignored until end of transaction block
======================================================================
ERROR: test_should_get_filtered_list_group_by_levels (datawinners.location.tests.test_location_tree.TestLocationTree)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/location/tests/test_location_tree.py", line 29, in test_should_get_filtered_list_group_by_levels
actual_location_groups = get_location_groups_for_country(country="Madagascar", start_with="amb")
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/location/LocationTree.py", line 35, in get_location_groups_for_country
cursor.execute(sql, data_dict)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 44, in execute
return self.cursor.execute(query, args)
DatabaseError: current transaction is aborted, commands ignored until end of transaction block
======================================================================
ERROR: test_should_get_location_hierarchy_for_geocode (datawinners.location.tests.test_location_tree.TestLocationTree)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/location/tests/test_location_tree.py", line 25, in test_should_get_location_hierarchy_for_geocode
long=46.854321))
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/location/LocationTree.py", line 81, in get_location_hierarchy_for_geocode
row = self._get_location_level_row_for_geo_code(lat, long)
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/location/LocationTree.py", line 110, in _get_location_level_row_for_geo_code
rows = list(LocationLevel.objects.filter(geom__contains=point))
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/db/models/query.py", line 84, in __len__
self._result_cache.extend(self._iter)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/db/models/query.py", line 273, in iterator
for row in compiler.results_iter():
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 680, in results_iter
for rows in self.execute_sql(MULTI):
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 735, in execute_sql
cursor.execute(sql, params)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 44, in execute
return self.cursor.execute(query, args)
DatabaseError: invalid byte sequence for encoding "UTF8": 0x00
======================================================================
ERROR: test_should_return_empty_list_for_unknown_country (datawinners.location.tests.test_location_tree.TestLocationTree)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/location/tests/test_location_tree.py", line 33, in test_should_return_empty_list_for_unknown_country
actual_location_groups = get_location_groups_for_country(country="India", start_with="amb")
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/location/LocationTree.py", line 35, in get_location_groups_for_country
cursor.execute(sql, data_dict)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 44, in execute
return self.cursor.execute(query, args)
DatabaseError: current transaction is aborted, commands ignored until end of transaction block
======================================================================
ERROR: test_should_return_none_for_location_unknown (datawinners.location.tests.test_location_tree.TestLocationTree)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/location/tests/test_location_tree.py", line 41, in test_should_return_none_for_location_unknown
self.assertEqual(None, self.tree.get_centroid(location='pune', level='3'))
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/location/LocationTree.py", line 103, in get_centroid
if not row:
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/db/models/query.py", line 113, in __nonzero__
iter(self).next()
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/db/models/query.py", line 107, in _result_iter
self._fill_cache()
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/db/models/query.py", line 772, in _fill_cache
self._result_cache.append(self._iter.next())
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/db/models/query.py", line 273, in iterator
for row in compiler.results_iter():
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 680, in results_iter
for rows in self.execute_sql(MULTI):
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 735, in execute_sql
cursor.execute(sql, params)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 44, in execute
return self.cursor.execute(query, args)
DatabaseError: current transaction is aborted, commands ignored until end of transaction block
======================================================================
ERROR: test_should_return_same_value_if_not_in_path (datawinners.location.tests.test_location_tree.TestLocationTree)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/location/tests/test_location_tree.py", line 19, in test_should_return_same_value_if_not_in_path
self.assertEqual(['pune','mh'], get_location_hierarchy('pune,mh'))
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/location/LocationTree.py", line 59, in get_location_hierarchy
cursor.execute(sql, [lowest_level, lowest_level, lowest_level, lowest_level, lowest_level])
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 44, in execute
return self.cursor.execute(query, args)
DatabaseError: current transaction is aborted, commands ignored until end of transaction block
======================================================================
ERROR: test_places (datawinners.location.tests.test_places.TestPlaces)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/location/tests/test_places.py", line 11, in test_places
client.login(username="tester150411@gmail.com", password="tester150411")
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/test/client.py", line 505, in login
user = authenticate(**credentials)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/contrib/auth/__init__.py", line 55, in authenticate
user = backend.authenticate(**credentials)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/contrib/auth/backends.py", line 17, in authenticate
user = User.objects.get(username=username)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/db/models/manager.py", line 132, in get
return self.get_query_set().get(*args, **kwargs)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/db/models/query.py", line 344, in get
num = len(clone)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/db/models/query.py", line 82, in __len__
self._result_cache = list(self.iterator())
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/db/models/query.py", line 273, in iterator
for row in compiler.results_iter():
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 680, in results_iter
for rows in self.execute_sql(MULTI):
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 735, in execute_sql
cursor.execute(sql, params)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 44, in execute
return self.cursor.execute(query, args)
DatabaseError: current transaction is aborted, commands ignored until end of transaction block
======================================================================
ERROR: test_should_render_project_view_if_logged_in (datawinners.project.tests.test_project.TestProject)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/project/tests/test_project.py", line 17, in test_should_render_project_view_if_logged_in
response = self.client.post('/project/')
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/test/client.py", line 455, in post
response = super(Client, self).post(path, data=data, content_type=content_type, **extra)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/test/client.py", line 256, in post
return self.request(**r)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/accountmanagement/views.py", line 83, in wrapper
if not len(get_all_projects(get_database_manager(args[0].user))) and not user.groups.filter(
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/project/models.py", line 308, in get_all_projects
return dbm.load_all_rows_in_view('all_projects')
File "/Users/phoenix/mangroveorg/mangrove/mangrove/datastore/database.py", line 182, in load_all_rows_in_view
rows = self.database.view(full_view_name, **values).rows
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 1003, in rows
self._fetch()
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 990, in _fetch
data = self.view._exec(self.options)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 880, in _exec
_, _, data = self.resource.get_json(**self._encode_options(options))
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 393, in get_json
status, headers, data = self.get(*a, **k)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 374, in get
return self._request('GET', path, headers=headers, **params)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 419, in _request
credentials=self.credentials)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 304, in request
raise ResourceNotFound(error)
ResourceNotFound: ('not_found', 'missing')
-------------------- >> begin captured stdout << ---------------------
[DEBUG] loading view: all_projects/all_projects
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
django.request: ERROR: Internal Server Error: /project/
Traceback (most recent call last):
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/accountmanagement/views.py", line 83, in wrapper
if not len(get_all_projects(get_database_manager(args[0].user))) and not user.groups.filter(
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/project/models.py", line 308, in get_all_projects
return dbm.load_all_rows_in_view('all_projects')
File "/Users/phoenix/mangroveorg/mangrove/mangrove/datastore/database.py", line 182, in load_all_rows_in_view
rows = self.database.view(full_view_name, **values).rows
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 1003, in rows
self._fetch()
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 990, in _fetch
data = self.view._exec(self.options)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/client.py", line 880, in _exec
_, _, data = self.resource.get_json(**self._encode_options(options))
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 393, in get_json
status, headers, data = self.get(*a, **k)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 374, in get
return self._request('GET', path, headers=headers, **params)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 419, in _request
credentials=self.credentials)
File "/Users/phoenix/Python/virtualenvs/django-1.2-env/lib/python2.7/site-packages/couchdb/http.py", line 304, in request
raise ResourceNotFound(error)
ResourceNotFound: ('not_found', 'missing')
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: test_should_render_home_view (datawinners.home.tests.test_home.TestHome)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/home/tests/test_home.py", line 14, in test_should_render_home_view
self.assertEquals(response.status_code,200)
AssertionError: 404 != 200
======================================================================
FAIL: test_should_render_link_to_trial_registration (datawinners.home.tests.test_home.TestHome)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/phoenix/mangroveorg/datawinners/datawinners/../datawinners/home/tests/test_home.py", line 20, in test_should_render_link_to_trial_registration
self.assertRegexpMatches(response.content, r'href="/register/trial"')
AssertionError: Regexp didn't match: 'href="/register/trial"' not found in '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n<html>\n<head>\n <link rel="shortcut icon" href="/media/images/favicon.ico" type="image/x-icon">\n <link rel="icon" href="/media/images/favicon.ico" type="image/x-icon">\n \n <title>\n \n </title>\n\n \n\n\n \n <link rel="stylesheet" href="/media/CACHE/css/3557bef22301.css" type="text/css" media="screen, projection" /><link rel="stylesheet" href="/media/CACHE/css/70981016509c.css" type="text/css" media="screen" /><link rel="stylesheet" href="/media/CACHE/css/af6140f331e2.css" type="text/css" media="print" /><link rel="stylesheet" href="/media/CACHE/css/bd0793e7247e.css" type="text/css" />\n\n <!--[if gte IE 7]>\n <link href="/media/css/plugins/960gd/ie.css" rel="stylesheet" type="text/css" media="screen" />\n <![endif]-->\n <!--[if IE 7]>\n <link href="/media/css/plugins/960gd/ie7.css" rel="stylesheet" type="text/css" media="screen" />\n <![endif]-->\n\n <script type="text/javascript" src="/jsi18n/"></script>\n\n <script type="text/javascript" src="/media/CACHE/js/7c0334a21285.js"></script>\n\n</head>\n\n<body>\n <noscript>\n <p class="message-box margin_left_20">Javascript is disabled in your browser, Please enable it.</p>\n </noscript>\n <div id="global_error">\n </div>\n <input type="hidden" id="debug" name="debug" value="False">\n \n \n <div id="container_header_application">\n <div class="container_24" id="header_application">\n \n<div id="container_header_wizard" >\n <div class="container_24" id="header_wizard">\n <div id="header" class="grid_24">\n \n <div class="grid_24 omega login text_align_right">\n <div class="grid_11 alpha logo">\n </div>\n <span> <a href="/switch/fr/">Fran&ccedil;ais</a> </span>\n <span> <a href="/switch/en/">English</a> </span>\n <span> <a href="/login/">Sign In</a> </span>\n <span> <a href="/register/"\n \n \n >Sign Up</a> </span>\n </div>\n \n </div>\n </div>\n</div>\n\n \n\n\n <div id="main_tab">\n <div class="grid_6 alpha logo">\n <img src="/media/images/datawinners_logo.png"/>\n </div>\n <ul class="">\n <li class ="inactive">\n <a id="global_dashboard_link" href="/dashboard/" class="">Dashboard</a>\n </li>\n <li class ="inactive">\n <a id="global_projects_link" href="/project/" class="">Projects</a>\n </li>\n <li class ="inactive">\n <a id="global_datasenders_link" href="/entity/datasenders/" class="">All Data Senders</a>\n </li>\n <li class ="inactive">\n <a id="global_subjects_link" href="/entity/subjects/" class="">All Subjects</a>\n </li>\n <li class ="inactive padding_right_null">\n <a id="global_all_data_link" href="/alldata">All Data</a>\n </li>\n </ul>\n </div>\n\n\n </div>\n </div>\n\n \n\n \n <div id="container_content">\n\n <div id="page_title">\n \n \n </div>\n <div class="container_24">\n\n \n <div class="grid_23 content">\n \n<h1>Page not found</h1>\n\n<p>Sorry, but the requested page could not be found.</p>\n\n\n </div>\n\n </div>\n </div>\n \n\n</body>\n</html>\n'
----------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment