Posted on 2008-06-24 00:15:51-07 by pjscott
enum customlist
Hullo. FYI, I tried to send this to maint@arsperl.org and it was rejected by the SMTP server with an access denied... I have a customer with the Remedy HelpDesk schema who is having trouble parsing it with 1.91 because it has enum types with a customList of limits rather than the expected regularList (relevant code form ARSOOform.pm below). Are there any plans to deal with that or a suggested workaround? Thanks.
if ($fv->{'dataType'} eq "enum") { if (ref($fv->{'limit'}->{'enumLimits'}) eq "ARRAY") { $enums{$_} = [@{$fv->{'limit'}->{'enumLimits'}}]; } elsif (exists $fv->{'limit'}->{'enumLimits'}->{'regularList'}) { $enums{$_} = [@{$fv->{'limit'}->{'enumLimits'}->{'regularList'}}]; } else { print "Sorry. I'm not sure what to do with non-regularLists of enums.\n"; print "(this enum is type \"", keys %{$fv->{'limit'}->{'enumLimits'}}, "\")\n"; print "listStyle = ", $fv->{'limit'}->{'enumLimits'}->{'listStyle'}, "\n"; die; } } }
Direct Responses: 10098 | Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.