Re: Syndication Contrib and HTTP Not Modified

2007-03-07 Thread Malcolm Tredinnick
On Thu, 2007-03-08 at 01:33 -0500, Jeremy Bowers wrote: > Malcolm Tredinnick wrote: > > Since we already have middleware for attaching ETags (CommonMiddleware) > > and supporting conditional GETs (ConditionalGetMiddleware), it would be > > nice to work out why they aren't just doing the right thin

Re: Syndication Contrib and HTTP Not Modified

2007-03-07 Thread Jeremy Bowers
Malcolm Tredinnick wrote: > Since we already have middleware for attaching ETags (CommonMiddleware) > and supporting conditional GETs (ConditionalGetMiddleware), it would be > nice to work out why they aren't just doing the right thing here. I found ConditionalGetMiddleware before I wrote my extra

Re: newforms and encoding problems

2007-03-07 Thread Baptiste
Ah, data is request.POST, of course, and I create the form like that myForm(data). On 7 mar, 23:04, "Baptiste" <[EMAIL PROTECTED]> wrote: > I had the same problem (ticket 3630). > I solved that by passing my mySQL fields in UTF8, then by doing : > > for i in data : >

formatting problems in ticket descriptions

2007-03-07 Thread Gary Wilson
reposting what I put in this ticket: http://code.djangoproject.com/ticket/3626 put note on the "Create New Ticket" page about how to format code A good percentage of the tickets that come in are not using {{{}}}s in their ticket descriptions to format. Could we please add a note about this in th

Re: Syndication Contrib and HTTP Not Modified

2007-03-07 Thread Malcolm Tredinnick
On Wed, 2007-03-07 at 23:04 -0500, Jeremy Bowers wrote: > Unless I'm missing something, the syndication framework does not have > the ability to return HTTP 304 in response to unchanged feeds. This is bad. > > I've worked up a solution locally which I'd like to get feedback on, and > a couple q

Syndication Contrib and HTTP Not Modified

2007-03-07 Thread Jeremy Bowers
Unless I'm missing something, the syndication framework does not have the ability to return HTTP 304 in response to unchanged feeds. This is bad. I've worked up a solution locally which I'd like to get feedback on, and a couple questions. Currently, I've got this: * The feed class is slightly

www.OutpatientSurgicare.com/video/

2007-03-07 Thread [EMAIL PROTECTED]
www.OutpatientSurgicare.com/video/ Outpatient Doctors Surgery Center is committed to offering the healthcare the community needs. We offer patients a meaningful alternative to traditional surgery. This state-of-the-art outpatient surgery center, located in the heart of Orange County, at 10900 Warn

Re: using "dictionary with attribute-style access" for newform

2007-03-07 Thread Paul Collier
How about: def filter_keys(hash, keys): # I'm convinced there must be a better way to write this return dict([ item for item in hash.iteritems() if item[0] in keys ]) def save(self): Blog.objects.create(**filter_keys(self.clean_data, ['name', 'description']) Although I can often omit

Re: newforms and encoding problems

2007-03-07 Thread Baptiste
I had the same problem (ticket 3630). I solved that by passing my mySQL fields in UTF8, then by doing : for i in data : data[i] = data[i].decode("latin1","replace") Then I created a form with these data and used its values to save them in the DB. If you do

Re: newforms and encoding problems

2007-03-07 Thread Karsu
Hello, We have same problem with character "ä,ö,å". That problem will raise allways when: *we try save these character to database *use characters in field name *use characters in help_text --~--~-~--~~~---~--~~ You received this message because you are sub

Re: Possible bug: How does Django decide when to quote SQL arguments?

2007-03-07 Thread Jacob Kaplan-Moss
On 3/7/07, Rob Hudson <[EMAIL PROTECTED]> wrote: > So somewhere else in the ORM it fixes the quoting before it hands it > over to the database? Yup, that's correct -- it's actually part of the db-api spec (http://www.python.org/dev/peps/pep-0249/) -- Jacob Kaplan-Moss :: Lead Developer :: World

Re: Ticket 3625 - rsplit not python 2.3 compatible

2007-03-07 Thread James Bennett
On 3/7/07, Phil Powell <[EMAIL PROTECTED]> wrote: > It renders a new Django installation on Python 2.3 pretty unusable, > which could be a kicker for any newbies. > > Is this the right place to flag things like this? Yes, but note that Malcolm committed a patch for it, so Django itself should be

:: Sport Cars New Models ::

2007-03-07 Thread Rania
*2007 New Cars* [image: 2007 Cars] http://www.100stuff.com/cars/ Honda Mercedes Toyota Mitsubishi Lancer Best Cars of 2007 --~--~-~--~~~---~--~~ You received this message because you are subscribed

Firebird backend improved

2007-03-07 Thread David Elias
I've uploaded a new patch against the oracle branch and updated the backend module. You can check http://code.djangoproject.com/ticket/1261 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group.

Re: Possible bug: How does Django decide when to quote SQL arguments?

2007-03-07 Thread Rob Hudson
On Mar 7, 11:15 am, David Danier <[EMAIL PROTECTED]> wrote: > AFAIK the queries are logged without quoting but executed correctly. > (You can see this, if you have a SQL-error and the DB-backends throws an > exception with the real query) So somewhere else in the ORM it fixes the quoting before i

Re: Possible bug: How does Django decide when to quote SQL arguments?

2007-03-07 Thread David Danier
> I found this query that isn't quoted correctly (I trimmed out some > stuff to make this shorter): AFAIK the queries are logged without quoting but executed correctly. (You can see this, if you have a SQL-error and the DB-backends throws an exception with the real query) Greetings, David Danier

Re: using "dictionary with attribute-style access" for newform

2007-03-07 Thread Amit Upadhyay
Actually no :-( It will conflict with keys, clear etc members of standard dictionary. May be I will write a MyForm that will do it locally for me, from which I will inherit the rest of my forms. On 3/7/07, Amit Upadhyay <[EMAIL PROTECTED]> wrote: > > Hi, > > I have an enhancement request for new

Possible bug: How does Django decide when to quote SQL arguments?

2007-03-07 Thread Rob Hudson
I was reviewing all the SQL calls in my page views by taking advantage of the context variable "sql_queries" when DEBUG=True. I found this query that isn't quoted correctly (I trimmed out some stuff to make this shorter): SELECT -- various fields listed here FROM `page_content` INNER JOIN

using "dictionary with attribute-style access" for newform

2007-03-07 Thread Amit Upadhyay
Hi, I have an enhancement request for new forms, instead of doing def save(self): > Blog.objects.create(title=self.clean_data["title"], description= > self.clean_data["description"]) > and def __init__(self, blog, *args, **kw): > super(MyForm, self).__init__(*args, **kw) > self.fields["title"].

Re: About *Fields, newforms and lazyness

2007-03-07 Thread Rubic
On Mar 7, 3:57 am, "David Larlet" <[EMAIL PROTECTED]> wrote: > Given the fact that label is not always at the same argument place, I > doubt that it breaks previous code because you "need" to specify > label= I must have been thrown off by "maybe we can reorder arguments" in the original post. +

Re: Question about UserProfile

2007-03-07 Thread Amit Upadhyay
On 3/5/07, limodou <[EMAIL PROTECTED]> wrote: > > So I indeed see the cache process in django/contrib/auth/models.py, > and I have a question that, how to update the cache after I changed > UserProfile information? I can see any clue about it, if the cache > cann't be updated, this will make the in

newforms and encoding problems

2007-03-07 Thread Nuno Mariz
Hi, Although seems that exists a patch for this problem, the newforms continues with the same problem. I have a field that the user fills with: João Ratão In the database shows: Jo? Rat This behavior happens only in the latest trunk, in the old an unicode exception was raised. In the Admin interf

Re: IntegrityError patch

2007-03-07 Thread Rob Hudson
I like it... I had to do a all encompassing "except" just the other day because IntegrityError was in MySQLdb. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send e

Re: Ticket 3625 - rsplit not python 2.3 compatible

2007-03-07 Thread Malcolm Tredinnick
Hi Phil, On Wed, 2007-03-07 at 12:14 +, Phil Powell wrote: > I wouldn't normally post about an individual ticket to the list, but > this one is really biting me. > > Ticket 3625 details an issue with the use of rsplit breaking syndb > with Python 2.3: > > http://code.djangoproject.com/ticke

Ticket 3625 - rsplit not python 2.3 compatible

2007-03-07 Thread Phil Powell
I wouldn't normally post about an individual ticket to the list, but this one is really biting me. Ticket 3625 details an issue with the use of rsplit breaking syndb with Python 2.3: http://code.djangoproject.com/ticket/3625 It renders a new Django installation on Python 2.3 pretty unusable, wh

Re: About *Fields, newforms and lazyness

2007-03-07 Thread David Larlet
2007/3/6, Rubic <[EMAIL PROTECTED]>: > You'd be breaking the code of early newforms adopters for an arguable > benefit. It wouldn't affect my development base since I explicitly > use label=, but I can imagine other users might get irritated. Given the fact that label is not always at the same

Hey! i've done a Free Global Bad Words Dictionary,

2007-03-07 Thread [EMAIL PROTECTED]
Hey! i've done a Free Global Bad Words Dictionary, for developers, by developers! visit http://www.tal.tl/words/ add swears/bad words and get them in to your script/site (for bad words filtering etc...)! PLEASE! add only words that you think ARE RELEVANT to keep the database quality! this is 100%