Re: Re: Maybe problems with Metakit 2.4.9.3

Yasushi Iwata <[email protected]>
Newsgroups gmane.comp.db.metakit
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.