[Dev-flock] TODO list

Daniel Ring danring at MIT.EDU
Thu Dec 6 13:52:01 EST 2007


What error was it giving you?  In general, if you're having trouble
adding entries to the database, you'll get better error descriptions
from the shell than from AJAX calls:
./manage.py shell
from db.models import *
b = Behavior(label="test")
b.save()
# throws an exception:
OperationalError: (1048, "Column 'dimension_id' cannot be null")

Both dimension_id and node_id must be provided.  Note that the form
field for "dimension" is a text field, but behaviors require a
dimension_id referencing a Dimension object.  (I suspect that was the
problem you were having, Mike?)  We can either create a dimension with
whatever text the user gives, and then use that id, or we can provide a
list of existing dimensions.  We should do the latter for now.

Anyway, the commit should fix behavior_add for now.

Dan


Mike Eggar wrote:
> I can add the drop-down for dimension when you add a behavior, the code
> won't be pretty but it'll work for friday, and I'll fix it up
> design-wise over the weekend. 
> 
> Dan, mabye you can help me out with adding a behavior, (add_new_behavior
> in main.py), I've tried messing with the Behavior model, and every
> insert configuration I can think of.
> 
> Mike
> 
> 
>> Date: Wed, 5 Dec 2007 01:04:59 -0500
>> From: lucy at thoughtandmemory.org
>> To: danring at mit.edu; dev-flock at mit.edu
>> Subject: Re: [Dev-flock] TODO list
>>
>> Ok.
>>
>> The ratings and evaluations are definitely higher priority than rich
>> text editing. We can remove that feature for the launch until we get
>> the bug fixed.
>>
>> ps - revision spam is a beautiful sight indeed
>>
>> On Dec 5, 2007 12:51 AM, Daniel Ring <danring at mit.edu> wrote:
>> > I'm planning to work on ratings (obviously) and evaluations from the
>> > TODO list first.
>> >
>> > About that Add Argument -> Add Behavior bug - the bug has something to
>> > do with jquery.rte... using FireBug, I can see that jquery.rte.js Line
>> > 44 is failing (designMode something or other). I think the broken pipe
>> > is because there are too many requests (because rte.css gets requested
>> > non stop). It doesn't seem to happen with Firefox 3.0, and I haven't
>> > tried with anything else yet, but maybe it's just Firefox 2?
>> >
>> > Sorry about the spam.
>> > Dan
>> > _______________________________________________
>> > Dev-flock mailing list
>> > Dev-flock at mit.edu
>> > http://mailman.mit.edu/mailman/listinfo/dev-flock
>> >
>> _______________________________________________
>> Dev-flock mailing list
>> Dev-flock at mit.edu
>> http://mailman.mit.edu/mailman/listinfo/dev-flock
> 
> ------------------------------------------------------------------------
> Get the power of Windows + Web with the new Windows Live. Power up!
> <http://www.windowslive.com?ocid=TXT_TAGLM_Wave2_powerofwindows_112007>



More information about the Dev-flock mailing list