#11617: Enhance User Message System --------------------------------------+------------------------------------- Reporter: ckarrie | Owner: nobody Status: new | Milestone: 1.2 Component: Authentication | Version: 1.0 Keywords: user message enhancement | Stage: Unreviewed Has_patch: 0 | --------------------------------------+------------------------------------- Hi,
I would like to see a enhanced user message system that allows to specify some base types of the message. For example: * message_type = 'Error' * message_type = 'Success' * message_type = 'Notice' That would be very practicable if you do an custom action and want to display as a user message, if it has failed or not. An example for validating a Model using a Admin Action for further calculations could look like this: {{{ #!python # admin.py (fictional code) def validate(modeladmin, request, queryset): for q in queryset.all(): message = u"%s: %s" %(q.name, q.validate()) if q.is_valid: message_type = 'Success' else: message_type = 'Error' request.user.message_set.create(message=message, message_type=message_type) validate.short_description = "Validate for Agl" }}} -- Ticket URL: <http://code.djangoproject.com/ticket/11617> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---