Perl 6 - the future is here, just unevenly distributed

IRC log for #webwork, 2012-11-03

| Channels | #webwork index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
14:06 Paul_Pearson joined #webwork
16:06 Paul_Pearson mike?
16:06 mgage hi
16:07 Paul_Pearson quick question: I'm trying to get multi part (sequentially revealed) questions to display all parts in the library browser.
16:08 mgage I don't think there is an easy way to do that yet -- automatically
16:08 Paul_Pearson I thought that I could use $envir{permissionLevel} >=10 to get this to work, and it does when the problem is rendered outside the library browser
16:12 mgage John Jones wrote a separate renderer for the library browser -- it's in the lib/WeBWorK/Utils/Tasks.pm file -- so looking closely at that might help --- there are two or three renderer files now -- another one is at lib/WebworkWebservice/RenderProblem.pm -- I think that one is used by the newer Library browsers
16:12 mgage the various renderers need to be consolidated.
16:13 Paul_Pearson Thanks.
16:13 Paul_Pearson I just looked at the environment variables when the problem was viewed in the library browser.
16:13 Paul_Pearson $envir{permissionLevel} was empty.
16:13 Paul_Pearson So, I tried
16:13 Paul_Pearson if (1 == $ans_hash1->{score} || $envir{permissionLevel}>=10 || $envir{permissionLevel} eq '') {
16:13 mgage I suspect that the one in Tasks.pm doesn't pass on permissionLevel -- because that was added a bit later.
16:14 Paul_Pearson which seems to work :)
16:14 Paul_Pearson Should I use permissionLevel or effectivePermissionLevel?
16:14 mgage it would be a help if you added that line to the one in Tasks.pm and sent a pull request
16:15 mgage use permissionLevel    -- effective permission level is the level that the problem was targeted for.  permissionLevel is the level of the actual person viewing the problem.  (same as user and effectiveuser
16:16 Paul_Pearson OK.
16:16 mgage ty
16:16 Paul_Pearson thanks!
18:12 ionparticle joined #webwork
19:52 Paul_Pearson joined #webwork

| Channels | #webwork index | Today | | Search | Google Search | Plain-Text | summary