Re: syncdb and missing many-to-many tables

2007-04-05 Thread Adrian Holovaty
On 4/4/07, SmileyChris <[EMAIL PROTECTED]> wrote: > I'd like to challenge the closing of > http://code.djangoproject.com/ticket/2229#comment:4 > > I do see Russell's point about syncdb not having schema-evolution > behaviour for data fields, but it DOES have schema-evolution for > missing tables

Re: #3075 - Ifequal tag extension to handle mask operators

2007-04-05 Thread Adrian Holovaty
On 4/5/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > Well, by law of order of operations, the and operator takes priority, > so that would be (a == x and b == y) or c == z. > > However, in the if tag, combination of 'and' and 'or' in the same tag > is not allowed, precisely because the orde

Re: OneToOne fields - why not?

2007-04-05 Thread Malcolm Tredinnick
On Thu, 2007-04-05 at 16:57 -0700, Simon G. wrote: > Hi Alex, > > I marked that as invalid since (as I understand it), we're trying to > get rid of edit_inline. However, I'm not sure how far off the admin- > newforms rewrite is, and it's probably a good idea to get this simple > fix in anyway (es

Re: #3075 - Ifequal tag extension to handle mask operators

2007-04-05 Thread Russell Keith-Magee
On 4/6/07, Will McCutchen <[EMAIL PROTECTED]> wrote: > > But what does the following mean? > > {% ifequal a x and b y or c z %} > > Should all of the clauses be required to use the same operators? Ie, > must they all use "and" or must they all use "or"? Maybe I'm just > missing the simple logic

Re: #3075 - Ifequal tag extension to handle mask operators

2007-04-05 Thread Will McCutchen
On Apr 5, 5:25 am, "Yann VR" <[EMAIL PROTECTED]> wrote: > I just wanted to bring attention to the > tickethttp://code.djangoproject.com/ticket/3075 It looks like Adrian approves: http://code.djangoproject.com/ticket/3075#comment:6 Used like so, the intent is clear: {% ifequal a x and b y %} {%

Re: OneToOne fields - why not?

2007-04-05 Thread Simon G.
Hi Alex, I marked that as invalid since (as I understand it), we're trying to get rid of edit_inline. However, I'm not sure how far off the admin- newforms rewrite is, and it's probably a good idea to get this simple fix in anyway (especially if people are having problems with). --Simon. --~--

Re: problems serving PDF file from view

2007-04-05 Thread Mike Axiak
Well I can't help but post a more complete solution (;-)) located at http://www.djangosnippets.org/snippets/157/. To be honest, I find Django tries very hard to be compliant with W3C (adding things in favor of WCAG, using XHTML when possible, etc). This usually isn't a problem because most browse

OneToOne fields - why not?

2007-04-05 Thread [EMAIL PROTECTED]
Hello All, I have read here: http://www.djangoproject.com/documentation/model-api/ "The semantics of one-to-one relationships will be changing soon, so we don't recommend you use them. If that doesn't scare you away, keep reading." I have successfully used OneToOne field in many projects, and i

problems serving PDF file from view

2007-04-05 Thread [EMAIL PROTECTED]
Hi All, I found that Django can not serve PDF files from view, and I feel this is wrong and must be fixed, so I try to raise this topic now. Problem description: We've build e-commerce site which sells PDF files as well. For obvious reasons I can not put all our PDF files as static files on med

Re: svn trunk broken since [4919], encoding problems

2007-04-05 Thread Michael Radziej
On Fri, Apr 06, Malcolm Tredinnick wrote: > I'm familiar with the problems. Fixing all occurrences is harder than > understanding them, sadly. :-) ;-) Well, I wasn't successful with the test case, and I don't know how much exposure to computers I'll get during Eastern, but I've got to leave the

Re: svn trunk broken since [4919], encoding problems

2007-04-05 Thread Malcolm Tredinnick
On Thu, 2007-04-05 at 17:42 +0200, Michael Radziej wrote: > On Fri, Apr 06, Malcolm Tredinnick wrote: > > > I actually understand the problem now that it's been pointed out. Don't > > waste too much time looking into this if you don't want. Your diagnosis > > in the ticket is essentially correct.

Re: svn trunk broken since [4919], encoding problems

2007-04-05 Thread Michael Radziej
On Fri, Apr 06, Malcolm Tredinnick wrote: > I actually understand the problem now that it's been pointed out. Don't > waste too much time looking into this if you don't want. Your diagnosis > in the ticket is essentially correct. You can see the same problem at > the Python prompt. We have the eq

Re: Slight (backwards-incompat) change to {% url %} tag

2007-04-05 Thread Ivan Sagalaev
Malcolm Tredinnick wrote: > I thought all those discussion had been settled. There didn't seem to be > any serious technical objections to named urls -- which both Adrian and > I thought were a good approach -- so that's now in the tree. Which are > still the open issues? I remember of asking Adr

Re: svn trunk broken since [4919], encoding problems

2007-04-05 Thread Malcolm Tredinnick
Hey Michael, On Thu, 2007-04-05 at 17:06 +0200, Michael Radziej wrote: > Hi Malcolm, > > On Fri, Apr 06, Malcolm Tredinnick wrote: > > > > > On Thu, 2007-04-05 at 16:06 +0200, Michael Radziej wrote: > > > Hi, > > > > > > changeset [4919] made the escape filter tag return unicode strings inste

Re: svn trunk broken since [4919], encoding problems

2007-04-05 Thread Michael Radziej
Hi Malcolm, On Fri, Apr 06, Malcolm Tredinnick wrote: > > On Thu, 2007-04-05 at 16:06 +0200, Michael Radziej wrote: > > Hi, > > > > changeset [4919] made the escape filter tag return unicode strings instead > > of bytestrings, which seems to create problems as soon as you use non-ASCII > > cha

Re: svn trunk broken since [4919], encoding problems

2007-04-05 Thread Malcolm Tredinnick
On Thu, 2007-04-05 at 16:06 +0200, Michael Radziej wrote: > Hi, > > changeset [4919] made the escape filter tag return unicode strings instead > of bytestrings, which seems to create problems as soon as you use non-ASCII > characters. I've reverted that portion of the change. There's a whole rat

svn trunk broken since [4919], encoding problems

2007-04-05 Thread Michael Radziej
Hi, changeset [4919] made the escape filter tag return unicode strings instead of bytestrings, which seems to create problems as soon as you use non-ASCII characters. If you see any encoding problems, especially with oldforms or the admin interface, please take a look at ticket #3924. The except

Re: Slight (backwards-incompat) change to {% url %} tag

2007-04-05 Thread Malcolm Tredinnick
On Thu, 2007-04-05 at 17:07 +0400, Ivan Sagalaev wrote: > SmileyChris wrote: > > Like you mentioned, it's quite a specific use-case for requiring a > > variable in the {% url %} tag. To solve that case, just use > > django.core.urlresolvers.reverse in your view and pass the url rather > > than lea

Re: Slight (backwards-incompat) change to {% url %} tag

2007-04-05 Thread Ivan Sagalaev
SmileyChris wrote: > Like you mentioned, it's quite a specific use-case for requiring a > variable in the {% url %} tag. To solve that case, just use > django.core.urlresolvers.reverse in your view and pass the url rather > than leaving it to the template to resolve. > > -0 I'm -0 on this too wi

[no subject]

2007-04-05 Thread meyyitfani
The Second Station of the Thirteenth Word In the Name of God, the Merciful, the Compassionate. [A conversation held with some young people who, though surrounded by temptation, had not yet lost their power of reason.] Being assaulted by the deceptive, seductive amusements of the present time,

#3075 - Ifequal tag extension to handle mask operators

2007-04-05 Thread Yann VR
I just wanted to bring attention to the ticket http://code.djangoproject.com/ticket/3075 which is a feature that would be so useful, I feel the need for it regularly. I am surely not the only one and hence I am posting this. Regards, Yann --~--~-~--~~~---~--~~

Re: newforms, "reverse inline" editing, fieldsets

2007-04-05 Thread [EMAIL PROTECTED]
I have exactly the same issue with another kind of models (working with lawyers here): Class Contract: client(..) date(..) Class SellContract: contract= models.ForeignKey(Contract, edit_inline=true) Class BuyContract: contract= models.ForeignKey(Contract, edit_inline=true) I'm current