Hi,

On Wed, 21 Apr 2004 09:41:43 -0400 Brian Kelley wrote:

> The spaces were certainly wrong, but they probably shouldn't have
> caused a crash, so maybe the metakit.view() in the append statement is
> broken.  To be safe you could use 'notes': None which will insert the
> default object, in this case the view.

I tried to use 'notes': None but TypeError raised.

  $ python2.3 foo.py
  Appending 1...
  Traceback (most recent call last):
    File "test4.py", line 11, in ?
      comments.append({
  TypeError: Not a sequence


> 
> To access the view you will need to find the right row, such as
> 
> index = comments.find(user='00000001', paragraph='P1')
> if index != -1:
>    notes = comments[index].notes
>    notes.append(...)
> 
> Brian
> 
>  > _____________________________________________ Metakit mailing list
>  > -  [EMAIL PROTECTED] http://www.equi4.com/mailman/listinfo/metakit
> 
> 
> 
_____________________________________________
Metakit mailing list  -  [EMAIL PROTECTED]
http://www.equi4.com/mailman/listinfo/metakit

Reply via email to