Cheap Wii Console
On its earnings call today, EA made reference to several titles that are in the works and when they would hit retail. Check out the full list of titles and dates after the jump, but a few highlights include the following titles that are in the works, including a new Dragon Age title and a shooter from EPIC:
Medal of Honor Title TBA
Monopoly Title TBA
MySims Title TBA
Need For Speed Title TBA
DTC Game For Console Online (4)
EA SPORTS Active Title TBA
EA SPORTS Active Title TBA
Hasbro Family Game Night Title TBA
Hasbro Littlest Pet Shop Title TBA
Harry Potter Title TBA
The Sims 3 on Console Title TBA
Dragon Age Title TBA
Shooter from Epic TBA (3)
Need For Speed Title TBA
Action Title TBA (4)
Fighting Title TBA
Hasbro Title TBA (4)
New Sims Title TBA
Spore Title TBA
1) Handhelds include mobile handsets
(2) Distribution Title
(3) Co-Published Title
(4) Console Full Game Download
I'm trying to sort out a problem in the console with editing an
object. The user-reported problem, which I verified, is that changes
made in the edit form are not made in the database; the user gets no
error message, but their changes aren't made, either.
I narrowed the problem down to form validation in the view, and using
pdb and some debug logging commands I got the validation errors out.
Here's the problematic code:
if request.method == 'POST':
data = request.POST.copy()
import pdb; pdb.set_trace() # My debugger call
a = AthleteForm(data,instance=athlete_obj)
pf = AthleteProfileForm(data,instance=athleteprofile)
Now, in the debugger:
-> a = AthleteForm(data,instance=athlete_obj)
(Pdb) n
> /Users/morse/Sites/wmm/console/athletes/views.py(538)athletes_edit()
-> pf = AthleteProfileForm(data,instance=athleteprofile)
(Pdb) n
(Pdb) pf.is_valid()
False
(Pdb) pf.errors
{'athlete': [u'This field is required.'], 'language': [u'This field is
required.']}
(Pdb) athleteprofile.language
<Language: US (US)>
(Pdb) athleteprofile.athlete
<Athlete: Martin Lel>
So I've established that the AthleteProfile object the
AthleteProfileForm is bound to has these values set, but the
AthleteProfileForm does not. Does this mean the fields are missing
from the “data” (and therefore from the request.POST)?
(Pdb) pf.base_fields
{'athlete': <django.forms.models.ModelChoiceField object at
0×15b05b0>, 'language': <django.forms.models.ModelChoiceField object
at 0×13a8050>, 'pbest': <django.forms.fields.CharField object at
0×13d4c10>, 'highlights': <django.forms.fields.CharField object at
0×13d4910>, 'career_notes': <django.forms.fields.CharField object at
0×13d45b0>, 'personal_notes': <django.forms.fields.CharField object at
0×13d4e70>, 'additional_career_highlights':
<django.forms.fields.CharField object at 0×13d4ed0>,
'other_personal_bests': <django.forms.fields.CharField object at
0×13d4f30>, 'upcoming_marathons': <django.forms.fields.CharField
object at 0×13d4f90>, 'wmm_highlights': <django.forms.fields.CharField
object at 0×13d4ff0>, 'translated': <django.forms.fields.BooleanField
object at 0×13e2070>}
And, edited for brevity:
(Pdb) data
<QueryDict: {u'other_personal_bests': , u'translated': ,
u'surname': , u'name': , u'dob': ,
u'gender': , u'image': ,
u'additional_career_highlights': [u'27Oct02 Venice Marathon 2nd
2:10:02'], u'wmm_highlights': [u'[string omitted]'], u'pbest':
[u'2:05:15 (London, 2010)'], u'career_notes': [u"[string omitted]“],
u'personal_notes': [u"[string omitted]“], u'user': ,
u'highlights': , u'y': , u'x': , u'country':
, u'upcoming_marathons': }>
The DOB and 'pbest' fields are blatantly false, data I submitted to
establish that nothing was changing in the database. Notice that some
of the fields are part of the Athlete model and not the AthleteProfile
model.
How can I give the AthleteProfileForm correct values (either in the
form for data submission, or directly in the view code) so it will
validate? Also, is there another debugging method I can use to better
reveal what's going wrong here?
I've looked through the list archives for the last year or so and
haven't found anything similar; I fear that's because it's so obvious
everyone else is figuring it out for themselves. The site is running
on Django 1.0.2 due to decisions made before my involvement with the
project (and part of my level of frustration here is that I've never
seen this particular code working correctly, which is making it very
hard for me to understand what's going wrong.)
Thanks,
pjm
–
–
You received this message because you are subscribed to the Google Groups “Django users” group.
To post to this group, send email to django-users <at> googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Wii is not just a gaming console, it's a reason to get together with your friends and family and play today's hottest games.
Wii Remote wrist strap replacement details; Important Safety Information for Playing Wii; What is Wii? Accessories; Register your Console; Tech Support; Nintendo Wi-Fi Connection
Tags: cheap wii systems, wii console, wii console for sale, wii discount, wii systems for sale
Leave a Comment