Re: Q:parameter from url

2005-12-30 Thread limodou
2005/12/31, James Bennett <[EMAIL PROTECTED]>: > > On 12/31/05, limodou <[EMAIL PROTECTED]> wrote: > > I know that in url dispatcher, I can get a parameter from the regular > > expression, and then pass it to a method which need it. But I wish I > > can also get the parameters from other places, e

Re: Q:parameter from url

2005-12-30 Thread James Bennett
On 12/31/05, limodou <[EMAIL PROTECTED]> wrote: > I know that in url dispatcher, I can get a parameter from the regular > expression, and then pass it to a method which need it. But I wish I > can also get the parameters from other places, e.g. POST, cookie, etc. > It seems that I couldn't do that

Q:parameter from url

2005-12-30 Thread limodou
I know that in url dispatcher, I can get a parameter from the regular expression, and then pass it to a method which need it. But I wish I can also get the parameters from other places, e.g. POST, cookie, etc. It seems that I couldn't do that, but some other python web frameworks can do this just

Re: Cumbersome object creation

2005-12-30 Thread Brant Harris
It's a simple and old bug. If you do: mod = MyModel(anything=something) It'll work as expected. You need at least one keyword argument in there. So, in your example: """mod = MyModel(foo_id=1) mod.bar_id = 2 mod.save()""" Works. On 12/30/05, Wojtek/brandlay.com <[EMAIL PROTECTED]> wrote: > > S

Re: Interpretation of kwarg queries across many-to-many joins

2005-12-30 Thread Russell Keith-Magee
Hi again; I've just added ticket #1143 to make parse_lookup implement the pre r1792 behaviour of ManyToMany kwarg queries, and allow reverse queries providing analogous behaviour. While this fixes the immediate bug, it doesn't solve the larger question of what constitutes correct behaviour. You

MERRY CHRISTMAS AND HAPPY NEW YEAR 2006

2005-12-30 Thread SUNAYANA
hi Dear Member Wishing U A Merry Christmas and Happy New Year 2006 FROM ALL TEAM MEMBERS OF ALL TEAM MEMBERS OF A2Z GROP OF COMPANIES JOIN & DOWNLOAD FREE FIREWORKS(crackers) SCREEN SAVER FROM http://finance.groups.yahoo.com/group/CHETANA4JOBS/join? http://groups.yahoo.com/group/CHETANA4JOBS/

More fine-grained select_related

2005-12-30 Thread Wojtek/brandlay.com
Often I want to select some related objects in get_list(), but select_related only allows to traverse the reference tree right to the bottom of it. Would it be hard to have select_related either be set to True if one wants to select the whole tree, or be set to the names of relations that one wan

Cumbersome object creation

2005-12-30 Thread Wojtek/brandlay.com
So i did: def MyModel(meta.Model): foo = meta.ForeignKey(Foo) bar = meta.ForeignKey(Bar) added = meta.Date(auto_add_now = True) mod = MyModel() mod.foo_id = 1 mod.bar_id = 2 mod.save() And it did not work, saying that my object has no 'id' attribute. Why would it have an 'id' attribute since

Interpretation of kwarg queries across many-to-many joins

2005-12-30 Thread Russell Keith-Magee
Hi all, In working on the patch that was committed to magic-removal as r1792, I noticed that there are some areas of test non-coverage in the many-to-many processing section of parse_lookup. However, writing the test cases is proving a little hairy, because I can't work out what the correct behav