Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Session-based messages (Contrib-05, #4604)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ramiro Morales  
View profile  
 More options Jan 5 2009, 8:50 am
From: "Ramiro Morales" <cra...@gmail.com>
Date: Mon, 5 Jan 2009 11:50:38 -0200
Local: Mon, Jan 5 2009 8:50 am
Subject: Session-based messages (Contrib-05, #4604)
Hi all,

I've updated the patch, created and evolved by SmileyChris
for this, to apply cleanly to trunk, tests still pass.

Malcolm expressed back then that he would wish
another committer took care of this and has expressed
his concerns regarding this going in to Django core and
made some other technical remarks regading the
implementation.

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.

An user has posted in a comment a link to a [1]snippet
he made reusing code from the patch, moving things
to a middleware. Would be an acceptable approach
do do so and get this functionality in a contrib app
providing such middleware and a context processor?.

Regards,

--
 Ramiro Morales

1. http://www.djangosnippets.org/snippets/1002/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jacob Kaplan-Moss  
View profile  
 More options Jan 6 2009, 11:20 am
From: "Jacob Kaplan-Moss" <jacob.kaplanm...@gmail.com>
Date: Tue, 6 Jan 2009 08:20:44 -0800
Local: Tues, Jan 6 2009 11:20 am
Subject: Re: Session-based messages (Contrib-05, #4604)

On Mon, Jan 5, 2009 at 5:50 AM, Ramiro Morales <cra...@gmail.com> 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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thomas Guettler  
View profile  
 More options Jan 7 2009, 10:32 am
From: Thomas Guettler <h...@tbz-pariv.de>
Date: Wed, 07 Jan 2009 16:32:09 +0100
Local: Wed, Jan 7 2009 10:32 am
Subject: Re: Session-based messages (Contrib-05, #4604)
Ramiro Morales schrieb:
> What directions do [the rest of the] core devs think should this
> take?

I am not a core dev, but here is what I think:

- The current user based messages are not usefull for me.
- I use a own version of session based messages which is based
  on code of this ticket. But I added an optional loglevel argument.
- Although I use sesion based messages, I want to use a different
  aproach in the future, since they produce unneeded UPDATE statements.

  HTTP POST, create_message('Changes were saved'), Redirect after Post,
GET, pop_messages() --> SQL UPDATE.

The second request (GET) could be readonly.

Maybe something like this snippet would be good:
    http://www.djangosnippets.org/snippets/1064/

Thomas

--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Carl Meyer  
View profile  
 More options Jan 10 2009, 11:02 am
From: Carl Meyer <carl.j.me...@gmail.com>
Date: Sat, 10 Jan 2009 08:02:33 -0800 (PST)
Local: Sat, Jan 10 2009 11:02 am
Subject: Re: Session-based messages (Contrib-05, #4604)
On Jan 6, 11:20 am, "Jacob Kaplan-Moss" <jacob.kaplanm...@gmail.com>
wrote:

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

I extracted 4604 into an external app[1] some months ago.  It's quite
simple, and it's been humming along happily for me.  It's not as
ambitious as 4604 because it doesn't try to transparently integrate
Django's existing auth-based messages with the session-based ones
(IIRC, some of the things 4604 did along these lines back when I
looked at it would be difficult to do in an external app).  I don't
have a lot of time to put into improving it right now, but I'd be
happy to turn over the keys to Ramiro or anyone else who wants to work
on it.

Carl

[1] http://code.google.com/p/django-session-messages/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Leah Culver  
View profile  
 More options May 18 2009, 7:25 pm
From: Leah Culver <leah.cul...@gmail.com>
Date: Mon, 18 May 2009 16:25:50 -0700 (PDT)
Local: Mon, May 18 2009 7:25 pm
Subject: Re: Session-based messages (Contrib-05, #4604)
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" <jacob.kaplanm...@gmail.com>
wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Beaven  
View profile  
 More options May 23 2009, 12:17 am
From: Chris Beaven <smileych...@gmail.com>
Date: Fri, 22 May 2009 21:17:40 -0700 (PDT)
Local: Sat, May 23 2009 12:17 am
Subject: Re: Session-based messages (Contrib-05, #4604)
On Jan 7, 4:20 am, "Jacob Kaplan-Moss" <jacob.kaplanm...@gmail.com>
wrote:

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

As a fun weekend 2h project, I started (and finished):
http://code.google.com/p/django-notify/

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »