[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gfsd]Re: has an assumed precondition bug

From: Paul Fisher
Subject: [gfsd]Re: has an assumed precondition bug
Date: Mon, 3 Jun 2002 23:38:44 -0400
User-agent: Mutt/1.3.25i

On Mon, Jun 03, 2002 at 11:19:02PM -0400, Bradley M. Kuhn wrote:
> assumes that the category_id number 1 is the very top
> category.

No such assumption exists.  The top level category (root_node) is the
category named 'index'.

>From, in function handler:

    c.execute ("select id from category where name=%s", ('index',))
    root_node = c.fetchone ()[0]

I suppose that could be changed to depend on the root node being null,
but regardless, there's nothing in that hard codes
the value of root_node to 1.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]