Automatic-manipulator, very slow..... design-decision/bug/misunderstanding?

2006-08-31 Thread Gábor Farkas
hi, yesterday i was bitten by something in the manipulator-behaviour, which i did not really expect to work that way...and i'm now not sure if i should submit a bugreport, or it should behave like that. also, it's quite possible that i understood this wrong, if that's the case please correct

initial SQL thinks it's a format string

2006-08-31 Thread [EMAIL PROTECTED]
Hello Djangonauts, I've found an issue with initial data and SQLite - if any of the fields in the initial data has a "%" in it, the import fails. Pysqlite is apparently processing the query for string formatting args. Now, I'm *not* getting this error on MySQLdb, but haven't tested postgres/ado_

Re: RDBMS vs ODBMS

2006-08-31 Thread Kevin Teague
Hi off-topic'ers, Having done a decent amount of work in both an RDBMS and an ODBMS (mainly PostgreSQL and the ZODB). It has definitely been a love/hate relationship for me - when I am working in an RDBMS I yearn for a ODBMS and vice-versa. The grass is always greener ... Some Pros for an

Re: Automatic-manipulator, very slow..... design-decision/bug/misunderstanding?

2006-08-31 Thread Michael Radziej
Gábor Farkas wrote: > = > class Owner(Model): > name = CharField(maxlength=500) > thing = ForeignKey(Thing) > = > > now let's say you have a LOT of Things... like 5. > > now, when you call Owner.AddManipulator(), he's going to fetch the WHO

Re: Automatic-manipulator, very slow..... design-decision/bug/misunderstanding?

2006-08-31 Thread Gábor Farkas
Michael Radziej wrote: > Gábor Farkas wrote: >> = >> class Owner(Model): >> name = CharField(maxlength=500) >> thing = ForeignKey(Thing) >> = >> >> now let's say you have a LOT of Things... like 5. >> >> now, when you call Owner.AddManipulato

Re: Automatic-manipulator, very slow..... design-decision/bug/misunderstanding?

2006-08-31 Thread Ivan Sagalaev
Gábor Farkas wrote: > now, when you call Owner.AddManipulator(), he's going to fetch the WHOLE > Thing-table. just to construct the AddManipulator. I've seen that in one of my projects and fixed it by filtering out unneeded selected with 'follow'. And it seems to me like it should be this wa

Re: Automatic-manipulator, very slow..... design-decision/bug/misunderstanding?

2006-08-31 Thread Gábor Farkas
Ivan Sagalaev wrote: > Gábor Farkas wrote: >> now, when you call Owner.AddManipulator(), he's going to fetch the WHOLE >> Thing-table. just to construct the AddManipulator. > > I've seen that in one of my projects and fixed it by filtering out > unneeded selected with 'follow'. And it seems t

Re: Django and psycopg2 problems

2006-08-31 Thread Jacob Kaplan-Moss
On Aug 31, 2006, at 12:31 AM, crankycoder wrote: > I basically need to be able to handle about a dozen languages all at > the same time. That basically means I need Unicode to work. There's > some patches in Trac that I've put up that handle all the cases that > I'm currently aware of - some of

Re: Automatic-manipulator, very slow..... design-decision/bug/misunderstanding?

2006-08-31 Thread Ivan Sagalaev
Gábor Farkas wrote: > is there a way to filter with the "follow"? > for me it seems you can enable/disable certain fields... > > and that does not help with the AddManipulator, because then those > fields are not even saved... I mean when you're creating a manipulator you can list fields that y

Re: Django and psycopg2 problems

2006-08-31 Thread Ivan Sagalaev
crankycoder wrote: > I really *really* need to be able to save and load unicode data in a > non-painful way. I have to support at least English, Vietnamese, Thai > and a half dozen other scripts. Why can't you use utf-8 for this? I support a two-language site (Russian, English) with psycopg1 an

Re: Integrating Django and SQLAlchemy

2006-08-31 Thread Christopher Lenz
Am 31.08.2006 um 05:34 schrieb Adrian Holovaty: > On 8/30/06, Jay Parlar <[EMAIL PROTECTED]> wrote: >> A question then: Once the SQLAlchemy stuff is in and solid, will >> there >> be any reason *not* to use it? > > We'll decide that when we get there, but I'm inclined to answer your > question w

Re: Automatic-manipulator, very slow..... design-decision/bug/misunderstanding?

2006-08-31 Thread Jeremy Dunck
On 8/31/06, Ivan Sagalaev <[EMAIL PROTECTED]> wrote: > I mean when you're creating a manipulator you can list fields that you > don't want it to touch: > > manipulator = Owner.AddManipulator(follow={'thing': False}) Thanks; I don't see that documented. Probably because manipulators will go

Re: Template variable evaluation for True/False ?

2006-08-31 Thread dummy
Hi all, the usecase for the False/True template evaluation comes from this templatetag here: http://svn.sourceforge.net/viewvc/django-userlibs/trunk/libs.common/src/common/templatetags/commonmedia.py?revision=22&view=markup function yes_no_icon_url(boolean_value) Normally the boolean_value co

Feel proud today, very very proud especially of 0.95 and MR

2006-08-31 Thread antonio
Hi Django developers, So for those of you that I haven't met or corresponded with, I'm the founder of Tabblo, a relatively young website for telling stories with photos, words, and highly stylized templates via a 100% web-based interface that is usable by normal humans. We've been using Django si

Re: Feel proud today, very very proud especially of 0.95 and MR

2006-08-31 Thread Tom Tobin
On 8/31/06, antonio <[EMAIL PROTECTED]> wrote: > > Anyhow, this week, we completed our migration to 0.95 and magic removal > which was painful but has shown us how much more great work you guys > have been up to. Before the move, we were running on a hacked version > of 0.91 that we had spent some

name of test database

2006-08-31 Thread Michael Radziej
Hi, I'm checking out the changes from the last three weeks in svn ... seems like the test suite is a little bit different now ;-) I can't say much about it now other than I appreciate all the hard work by Russell, and that there's a nice test framework in place now. Only ... I find the naming o

Re: Django and psycopg2 problems

2006-08-31 Thread Victor Ng
Fair enough - any chance we can get that unicode branch opened up soon? vic On 8/31/06, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > Essentially the problem is that this makes the psycopg2 backend > behave differently from all the other backends. Thus many framework > tests fail when using ps

Re: schema-evolution: status?

2006-08-31 Thread Derek Anderson
i merged with head before i checked it in. unless i really frelled up w/ svn, it should only be ~2 weeks behind. could you send just your models? (+ load script, original schema) Matthew Flanagan wrote: > Derek, > > On 31/08/06, Derek Anderson <[EMAIL PROTECTED]> wrote: >> hey matt, >> >> wo

Re: Integrating Django and SQLAlchemy

2006-08-31 Thread zzzeek
Adrian Holovaty wrote: > We'll decide that when we get there, but I'm inclined to answer your > question with a single word: "Simplicity." Django will continue to > work out of the box, with no dependencies. you know, I get the "no dependencies" thing, I really have a similar inclination to produ

Re: Integrating Django and SQLAlchemy

2006-08-31 Thread Brantley Harris
That's all well and good but there are a few projects going on that would be rendered useless if Django eventually did adopt SQLAlchemy, including the Schema Evolution and the multiple DB branch. Also this puts into question the philosophy of the full-stack, and if you really want to be tied to S

Re: Row level permission problem in admin for inline edited objects

2006-08-31 Thread Chris Long
It would work, but there it's not very flexible. The current show_all_rows setting uses the change permission to determine if the object should be shown on the change list. Which makes sense, since the objects listed on the change list are those the user is able to edit. For a related object in a

Filters no longer parsed for unresolved variables

2006-08-31 Thread SmileyChris
Changeset [3268] made the following change for the resolve method in django/template/__init__.py: -obj = settings.TEMPLATE_STRING_IF_INVALID +if ignore_failures: +return None +else: +return settings.TEMPLATE_STRING_IF_INVALID Bec

Re: (OT) Feel proud today, very very proud especially of 0.95 and MR

2006-08-31 Thread Luke Plant
On Thursday 31 August 2006 17:28, antonio wrote: > cumbersome: just send me an email (antonio at tabblo dot com) I just discovered a cool thing: I copied and pasted 'antonio at tabblo dot com' into the 'To' field in a new e-mail in KMail, and it automatically translated the 'at' and the 'dot

Re: Filters no longer parsed for unresolved variables

2006-08-31 Thread SmileyChris
Guess I should just make a ticket anyway: http://code.djangoproject.com/ticket/2637 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@g

Re: XSS comments from PHP Creator

2006-08-31 Thread [EMAIL PROTECTED]
Ian Holsman wrote: > On 21/08/2006, at 9:24 PM, [EMAIL PROTECTED] wrote: > > You deny everything by default, and have holes added when you need them. > and when you poke a hole you have a reference to why it is required > (ie what module needs a particular variable unfiltered) > > Things which yo

POST data is corrupted, or is it really?

2006-08-31 Thread [EMAIL PROTECTED]
Hi, I am new to Django and Python, and web programming in general. I have a very simple form and the dictionary request.POST does not store the information correctly. I may be doing something wrong, so please help me. urls.py: urlpatterns += patterns( (r'^photo/info/$', 'views.info'), ) form

Fwd: [CAR] Error (EXTERNAL IP): /aggy/filter/

2006-08-31 Thread Ian Holsman
hmm.. anyone else ever see google misbehave? check out the weird dates google is putting in it's parameter lists. car-chatter.com 66.249.65.235 - - [31/Aug/2006:11:43:57 +] "GET / aggy/filter/? date_modified__day=17&date_modified__month=7&ot=asc&date_modified__year= 2006&o=1 HTTP/1.1" 200

Re: XSS comments from PHP Creator

2006-08-31 Thread Jeremy Dunck
On 8/22/06, Ahmad Alhashemi <[EMAIL PROTECTED]> wrote: > But if you keep poking holes in all the wrong places, then it is not > the frameworks fault. > > Autoescaping might be a nice DRY feature, but I don't think it has > anything to do with being secure by default. Usable security is about maki

Re: Fwd: [CAR] Error (EXTERNAL IP): /aggy/filter/

2006-08-31 Thread [EMAIL PROTECTED]
That's really weird. I've never seen that before - isn't 7F a control character? 7B's "}" so it's not like it's trying to guess sensible URLs. The IP looks right for google, but given that control character usage, I'd say it looks fairly dodgy. --Simon --~--~-~--~~~

Re: Automatic-manipulator, very slow..... design-decision/bug/misunderstanding?

2006-08-31 Thread Gary Wilson
Jeremy Dunck wrote: > On 8/31/06, Ivan Sagalaev <[EMAIL PROTECTED]> wrote: > > I mean when you're creating a manipulator you can list fields that you > > don't want it to touch: > > > > manipulator = Owner.AddManipulator(follow={'thing': False}) > > Thanks; I don't see that documented. Proba

Re: multiple authentication and session keys

2006-08-31 Thread Gary Wilson
Adrian Holovaty wrote: > Thanks for bringing this up, Gary. The get_and_delete_messages() thing > has always bothered me -- if it's activated, we do it for every > request. I suppose we could make the 'messages' part of the context > processor lazy, so that it would only call get_and_delete_messag

Re: schema-evolution: status?

2006-08-31 Thread Matthew Flanagan
On 01/09/06, Derek Anderson <[EMAIL PROTECTED]> wrote: > > i merged with head before i checked it in. unless i really frelled up > w/ svn, it should only be ~2 weeks behind. I think you may have "frelled up". Your branch was created on 07/11/06 and from the revision log [1] it does appear that y