Hi Maarten,

On Nov 12, 2007 10:34 PM, Maarten <[EMAIL PROTECTED]> wrote:
>
> > I'll fix that asap (after the footing).
>
> Thanks very much. Next time I might want to give it a shot myself (to
> do the fix).

That'd be great, feel free to use the patch and the bug tracker at
http://rubyforge.org/projects/openwferu

> I tried to isolate the problem with the following test program:
>
> require 'rubygems'
>
> (...)
>
> But the programs fails to run:
>
> /usr/local/lib/ruby/gems/1.8/gems/openwferu-0.9.16/lib/openwfe/
> utils.rb:396:in `has_attribute?': undefined method `pop_key' for
> OpenWFE:Module (NoMethodError)
>         from /usr/local/lib/ruby/gems/1.8/gems/openwferu-0.9.16/lib/
> openwfe/workitem.rb:181:in `has_attribute?'
>         from has_attribute.rb:17
>
> and I have no idea why the pop_key cannot be found in my case while it
> works in a regular setting. Did I do something wrong?

You did nothing wrong at all, I did (by not writing a unit test sooner
for lookup_attribute and has_attribute?, there was a bunch of
functional tests, but they did not cover that).

pop_key() has to be promoted to class method :
http://fisheye3.cenqua.com/browse/openwferu/trunk/openwfe-ruby/lib/openwfe/utils.rb?r1=1205&r2=1211

I've just added tests for has_attribute? :
http://openwferu.rubyforge.org/svn/trunk/openwfe-ruby/test/lookup_att_test.rb


Thanks again,

-- 
John Mettraux   -///-   http://jmettraux.openwfe.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenWFEru users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to