Deeper investigation lead me to the conclusion that expressions like

<workitem>.attributes[key]
and
<workitem>.attributes[key] = value
and
<workitem>.attributes.delete key

should disappear from to project(well, not from where the functions are
defined :) ), being substituted in the same order

<workitem>.lookup_attribute key
and
<workitem>.set_attribute key, value
and
<workitem>.unset_attribute key

Wdyt?

Tom


On Jan 16, 2008 9:38 PM, Tomaso Tosolini <[EMAIL PROTECTED]> wrote:

> Hi John, Hi All,
>
> debugging a process I noticed that
>
>    1. in *utils.rb* the module *OpenWFE* contains 3 methods: [lookup |
>    has | set]_attribute but "*unset_attribute*" is missing
>    2. in *expressions/fe_value.rb* the *SetValueExpression* in it's
>    method reply uses workitem.attributes[fkey] = xxx, to set the value
>    instead of the above *set_attribute*. With the result that if fkey =
>    " a.b.c"
>    the latter causes workitem.attributes["a.b.c"] = xxx while with the
>    former we can obtain workitem.attributes["a"]["b"]["c"] = xxx if
>    workitem.attributes["a"] = { "b" => { "c" => xxx } } ( the dotted
>    notation allows us to explore the hash ..., right? )
>
>
> Can I correct this or is it wanted to be so?
> If yes i should also the missing unset_attribute in 1), right?
>
> Thanks for the precious help ;)
> Bye
> Tom
>
>
>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenWFEru dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/openwferu-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to