Skip to Content.
Sympa Menu

grouper-users - [grouper-users] RE: Sending a warning using a hook ?

Subject: Grouper Users - Open Discussion List

List archive

[grouper-users] RE: Sending a warning using a hook ?


Chronological Thread 
  • From: Chris Hyzer <>
  • To: Gagné Sébastien <>, "" <>
  • Subject: [grouper-users] RE: Sending a warning using a hook ?
  • Date: Thu, 17 Jan 2013 17:56:13 +0000
  • Accept-language: en-US

We didn’t really consider that case.

 

I wonder if you could send a veto with a message to the screen, but keep track that you just vetoed it (in an expirable in memory cache with a MultiKey with the userid, groupname, value, etc), and if you get that same request again in a certain period of time, then you know the user had been warned and not veto it…

 

If you just want the hook to throw a message on the screen and let it complete the first time, I think you would have to edit the UI code for that…

 

Thanks,

Chris

 

From: [mailto:] On Behalf Of Gagné Sébastien
Sent: Wednesday, January 16, 2013 4:05 PM
To:
Subject: [grouper-users] Sending a warning using a hook ?

 

Hi,

I previously used a group hook to block the group creation by throwing a HookVeto. Right now I’m wondering if it’s possible to send a warning to the user using the Hook but still have the process complete.

 

My use case would be :

Using a AttributeAssignValueHooks, prevent invalid values (<= 0) and show a warning if the user uses a low value (0 < val < 5) that could possibly have bad consequences, but still let the value be set since it might be the right value for them.

 

Thanks

 

 

Sébastien Gagné,     | Analyste en informatique

514-343-6111 x33844  | Université de Montréal,

                     | Pavillon Roger-Gaudry, local X-100-11

 




Archive powered by MHonArc 2.6.16.

Top of Page