[sqlalchemy] Re: why something not show the updated items ?

2008-04-07 Thread ZhangShen Peng(Uestc graduating...)
now I use like this class Feed(Entity): has_property('posts',dynamic_loader(Post)) everything is ok ! My english is pool , so I don't know how to express the appreciate for your help . I just want to say THANKS VERY VERY MUCH :) On Mon, Apr 7, 2008 at 12:39 AM, Michael Bayer <[EMAIL PRO

[sqlalchemy] Re: why something not show the updated items ?

2008-04-06 Thread Michael Bayer
On Apr 6, 2008, at 11:27 AM, ZhangShen Peng(Uestc graduating...) wrote: > I tried both remove and clear > but seems have no effect > > I think maybe two reason: > > 1.elixir cached the query when I used Iike feed.posts ( OneToMany) mmm I dont think elixir is caching anything additional. Howeve

[sqlalchemy] Re: why something not show the updated items ?

2008-04-06 Thread ZhangShen Peng(Uestc graduating...)
I tried both remove and clear but seems have no effect I think maybe two reason: 1.elixir cached the query when I used Iike feed.posts ( OneToMany) OR 2.mako cached the query result , because I did the feed.posts query in template . A headache problem . On Sun, Apr 6, 2008 at

[sqlalchemy] Re: why something not show the updated items ?

2008-04-05 Thread Michael Bayer
On Apr 5, 2008, at 1:13 PM, 张沈鹏(电子科大 毕/就业倒计 时...) wrote: > thanks for you answer :) > > but I still have some problems > > It's to say I should clear session manual once I update the database ? > > can I set timeout somewhere to auto do this job ? > for a web application, you usually use a Se

[sqlalchemy] Re: why something not show the updated items ?

2008-04-05 Thread 张沈鹏(电子科大 毕/就业倒计时...)
thanks for you answer :) but I still have some problems It's to say I should clear session manual once I update the database ? can I set timeout somewhere to auto do this job ? On Sat, Apr 5, 2008 at 11:58 PM, Michael Bayer <[EMAIL PROTECTED]> wrote: > > > On Apr 5, 2008, at 12:19 AM, 张沈鹏(电子

[sqlalchemy] Re: why something not show the updated items ?

2008-04-05 Thread Michael Bayer
On Apr 5, 2008, at 12:19 AM, 张沈鹏(电子科大 毕/就业倒计 时...) wrote: > I write a web with pylons 0.97 dev beta3 > > use sqlalchemy4.5 with elixir > > and the template system is moko > > when I update the datebase then refresh the page > > the updated items sometimes show and sometimes not > > I think mayb