Re: Oracle savepoints

2009-05-18 Thread Ian Kelly

On Sun, May 17, 2009 at 2:50 AM, Richard Davies
 wrote:
>
> Matt Boersma wrote:
>> I think Malcolm implemented this in the Oracle backend rather than Ian
>> K. or myself.
>
> It was Ian Kelly, I think in [10022].
>
>> So I'd say the answer is a).
>
> If that's right, then we have an inefficiency on Oracle at present -
> the uses_savepoints flag is used both to signal that savepoints are
> implemented (see BaseDatabaseWrapper._savepoint*() in django/db/
> backends/__init__.py), and to signal that they are needed to wrap code
> which may throw IntegrityErrors (as per reason b; see
> QuerySet.get_or_create() in django/db/models/query.py).
>
> We should probably be splitting these two meanings, so Postgresql
> would have:
>
> can_savepoint = True
> needs_savepoint_after_exception = True
>
> Whereas Oracle would have:
>
> can_savepoint = True
> needs_savepoint_after_exception = False
>
> I'll open a ticket to remember this once Ian, Malcolm or another also
> confirms.

Yes, it was reason a).  Transactions aren't automatically invalidated
after an IntegrityError, as far as I was able to determine.

Regards,
Ian

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~--~~~~--~~--~--~---



Re: Session-based messages (Contrib-05, #4604)

2009-05-18 Thread Leah Culver

Hmm... I can't figure out if this will post a reply to the whole group
on this discussion from the Google Groups API.

Anyways, I just wanted to say that I love django-flash. "The flash" is
just the Rails term for user messages and has nothing to do with
Flash. Doing a search for "django flash" is much more helpful than
"django user messages."

http://github.com/danielfm/django-flash/tree/master

I've been using it on Baconfile and it's hot.
http://github.com/leah/django-flash-status/tree/master

Leah



On Jan 6, 9:20 am, "Jacob Kaplan-Moss" 
wrote:
> On Mon, Jan 5, 2009 at 5:50 AM, Ramiro Morales  wrote:
> > What directions do [the rest of the] core devs think should this
> > take?. I could try to work on getting things in shape
> > so it can approach a ready state for 1.1 a intially
> > planned.
>
> I'd like to see this moved into an external app so that we can
> de-couple it from the 1.1 release. If it proves to be popular and
> stable, we could then consider it for 1.2.
>
> Jacob

--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~--~~~~--~~--~--~---