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
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
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
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
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
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/
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
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
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