Recent activity
Subscribe to this feed
Geoff replied on August 30, 2008 22:15 to the problem "Adding request by inmate name causes error" in Midwest Pages to Prisoners Project:
This problem is caused by the inmate search mechanism when adding a request. This happens at btp/core/views.py line 681:
> inmate = Inmate.objects.get(number=inmate_number)
This causes a problem because testament now deals with people without an inmate number. In most cases, these are people in jails. On the back end, this is represented with inmate_number = 0. So if there are multiple inmates with the same inmate number (either because they are in jail with inmate_number = 0 or if people in different states have the same number.
This should be fixed with more advanced inmate identification logic.
Geoff reported a problem in Midwest Pages to Prisoners Project on August 14, 2008 15:46:
Adding request by inmate name causes errorWhen I tried to add a request for an inmate by name (they don't have a DOC# because they're in a jail), I got a MultipleObjectsReturned exception.
Environment:
Request Method: POST
Request URL: http://btptestament.com/requests/add/
Django Version: 0.97-pre-SVN-7554
Python Version: 2.5.2
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'btp.core']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.middleware.doc.XViewMiddleware',
'btp.core.middleware.RequireLoginMiddleware')
Traceback:
File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py" in get_response
82. response = callback(request, *callback_args, **callback_kwargs)
File "/var/www/testament/testament_trunk/btp/core/views.py" in add_requests
682. inmate = Inmate.objects.get(number=inmate_number)
File "/usr/lib/python2.5/site-packages/django/db/models/manager.py" in get
82. return self.get_query_set().get(*args, **kwargs)
File "/usr/lib/python2.5/site-packages/django/db/models/query.py" in get
199. % (self.model._meta.object_name, num, kwargs))
Exception Type: MultipleObjectsReturned at /requests/add/
Exception Value: get() returned more than one Inmate -- it returned 8! Lookup parameters were {'number': u''}
Brandon replied on August 02, 2008 05:29 to the question "printable list of contacts that includes details" in I want Sandy:
Brandon started following the question "printable list of contacts that includes details" in I want Sandy.
Ron Sherwood replied on June 15, 2008 00:09 to the question "printable list of contacts that includes details" in I want Sandy:
bob started following the question "printable list of contacts that includes details" in I want Sandy.
Ron Sherwood started following the question "printable list of contacts that includes details" in I want Sandy.
Ron started following the question "printable list of contacts that includes details" in I want Sandy.
Geoff shared an idea in Midwest Pages to Prisoners Project on June 02, 2008 17:33:
posting additional infomationI have always wanted to use Testament not only to track information about packages but also artwork from inmates, stories, etc. I'm lazy and don't want to code all this support up (though I have implemented a very basic Media model in the stuff I'll push soon). One (very web 2.0) way to provide this functionality might be to integrate with the Tumblr service (tumblr.com).
Geoff reported a problem in Midwest Pages to Prisoners Project on May 24, 2008 22:01:
Abandoned package inmate/prison context is not forgottenIf the system is left in one of the second or greater steps of log a package, and you step back to the first step, the inmate, facility, and other context details are still visible on the first step of the log a package page.
Starting over from step 1, new information is changed, but some older information remains until it has been re-entered. (For instance, inmate name changes, but not facility).
Ideally, there would be a 'start over' link on each page of log a package.
Geoff replied on May 24, 2008 01:10 to the idea "Longer recent package history" in Midwest Pages to Prisoners Project:
Geoff shared an idea in Midwest Pages to Prisoners Project on May 24, 2008 01:08:
Longer recent package historyQuoting Jess from the NYC group:
It would be even more neat to have something come up every time we put in a person's ID, off to the side -- even when they've recieved books quite a
while back: not just that we've sent them a pkg and on what date, but what
titles. If you think there's space on the right hand side of the screen for
that info while you're entering another package. This will let us know
whether we've already sent somebody who's asking about Malcolm X (for
example) the autobiography, and so we should send him something different. At the moment we do some hopping back and forth putting the prisoner's number into the bowse tab to see what the person got earlier. It'll also make us more easily aware of the dictionary collectors. Not that that's
a widespread problem, but there are folks who do it, and you know how scarce dictionaries can be. it'll give us an opportunity to write them a postcard asking them what's up.
Paul started following the question "Including phone or e-mail information in a todo" in I want Sandy.
Bill Blue started following the question "Including phone or e-mail information in a todo" in I want Sandy.
Bill Blue started following the question "printable list of contacts that includes details" in I want Sandy.
Bill Blue started following the question "printable list of contacts that includes details" in I want Sandy.
norbiq replied on April 14, 2008 17:20 to the question "Including phone or e-mail information in a todo" in I want Sandy:
Geoff replied on April 14, 2008 17:13 to the question "Including phone or e-mail information in a todo" in I want Sandy:
norbiq replied on April 14, 2008 17:11 to the question "Including phone or e-mail information in a todo" in I want Sandy:
Geoff asked a question in I want Sandy on April 14, 2008 16:14:
printable list of contacts that includes detailsIs there a way of viewing a list of contacts for printing that shows the contact details. When I try to do this, it just shows me the contacts name?
| next » « previous |
Loading Profile...


