YAPC::2004::Israel << Previous | Index | Next >> Copyright © 2004 Gaal Yahas

The symptom


     my @layouts = map { $_, $pub->{$_}->{'name'} }
         sort { $pub->{$a}->{'name'} cmp $pub->{$b}->{'name'} }
         grep { /^\d+$/ && $pub->{$_}->{'type'} eq "layout" &&
             LJ::S2::can_use_layer($u, $pub->{$_}->{'uniq'}) }
         keys %$pub;
  • The first layout in the list (called "Generator") was not showing up in the web form.

  • But debug prints before this code showed it *was* in the list and LJ::S2::can_use_layer allowed *all* users to see it

  • This can drive a programmer insane