[Tickets #11124] Re: decode_attribute hook an exceptions
bugs at horde.org
bugs at horde.org
Tue Apr 3 11:56:47 UTC 2012
BITTE NICHT AUF DIESE NACHRICHT ANTWORTEN. NACHRICHTEN AN DIESE
E-MAIL-ADRESSE WERDEN NICHT GELESEN.
Ticket-URL: http://bugs.horde.org/ticket/11124
------------------------------------------------------------------------------
Ticket | 11124
Aktualisiert Von | kd at tu-cottbus.de
Zusammenfassung | decode_attribute hook an exceptions
Warteschlange | Turba
Version | 3.0.12
Typ | Enhancement
Status | Feedback
Priorität | 1. Low
Milestone |
Patch |
Zuständige |
------------------------------------------------------------------------------
kd at tu-cottbus.de (2012-04-03 11:56) hat geschrieben:
>> To get the pictures in 'localsql' back, i have to throw an exception
>> instead of the
>> default passthrough 'return $value'.
>
> Yes, because that's how we detect if an attribute was *not*
> processed by a hook, and thus continue the further processing of
> composite and image fields further down in getValue(). If you moved
> the hook calling further down, you wouldn't be able to hook into
> those fields at all.
>
>> Now it works as expected, but i have tons of "No decode handler"
>> errors in the Logs.
>> What I'm doing wrong here?
>
> Nothing, though I admit that having the logs spammed with false
> warnings isn't optimal.
Just a few thoughts:
- to detect, whether or not an attribute has processed, one could
compare the value before and after the hook
- is it really desired, to have composite fields processed by the hook?
They are a combination of driver values (that should be processed)
- are images in this sense not some special kind of composite fields?
More information about the bugs
mailing list