Sorry for my mistake!

Because my code is on a PC without Internet Connection, I can not just
coyp and paste the function name.

I've an idea about how to elminate the loop.  Add an optional para to
the function which included all processed Foreign Key RelationShip in
the form of

[ [table1Name, Col1Name, table2Name, ColName], ....]

And before any FK to be processed, it must be check that if it's
already in this para.

Perhaps it's not so efficient, but I think it will work.

I will fill a ticket as soon as possible.

Malcolm Tredinnick wrote:
> On Tue, 2006-08-15 at 23:22 -0700, 一首诗 wrote:
> > Hah!
> >
> > I've just found what happened!
> >
> > django.db.models.fill_cache_table is a function that calls itself until
> > it processed all table connected by FK.
>
> For anybody else wondering why they can't this method, it's called
> fill_table_cache() (I just spent a few minutes trying to work out why
> the original poster felt so confident and I couldn't find the method).
>
> > But if there is a loop in FK relations,  it will never stopped!
>
> Wow. Looks like you're right. Good debugging!
>
> That's probably either going to be really easy to fix or really hard.
> Hopefully you can think of something. Otherwise, please do file a ticket
> about this and we'll have a look at it and fix it.
>
> If you can't find a solution easily, don't worry too much. That's a part
> of the code that I'm working on at the moment (rewriting a large chunk
> of it), so I'll add your problem to my pile. 
> 
> Regards,
> Malcolm


--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to