Log of /trunk/webwork-modperl/lib/WeBWorK/ContentGenerator/Problem.pm
Parent Directory
Revision
906 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue May 27 00:31:32 2003 UTC (9 years, 11 months ago) by
gage
File length: 24019 byte(s)
Diff to
previous 903
The "edit this problem" link now appears only if you have a
permission level greater than or equal to 10 (instructor)
--Mike
Revision
903 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri May 23 21:36:35 2003 UTC (10 years ago) by
gage
File length: 23971 byte(s)
Diff to
previous 818
Added a link to the editor.
This link always prints, (at the moment) even if the
user doesn't have instructor permissions. (FIXME)
-- Mike
Revision
809 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Apr 17 21:30:57 2003 UTC (10 years, 1 month ago) by
sh002i
File length: 23329 byte(s)
Diff to
previous 795
changed the name of the "courseEnvironment" field in the
ContentGenerator object to "ce", to match the style and conciesness of
the existing "r" and new "db" fields.
-sam
Revision
794 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Mar 19 15:07:16 2003 UTC (10 years, 2 months ago) by
gage
File length: 23470 byte(s)
Diff to
previous 756
Added code for logging student answers and allowing instructors to inspect previous
answers from students.
Revision
755 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Feb 28 20:02:29 2003 UTC (10 years, 2 months ago) by
malsyned
File length: 21649 byte(s)
Diff to
previous 747
Began adding CSS escapes to some generated HTML structures.
Addressed some bug reports that came in from the mailing list.
-Dennis
Revision
739 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Feb 21 20:49:49 2003 UTC (10 years, 3 months ago) by
sh002i
File length: 20845 byte(s)
Diff to
previous 738
1. fixed some formatting in Problem
2. hardcopy allows correct answers, hints, solutions to be shown
3. privileged users are allowed to view/download "not yet open" sets
-sam
Revision
692 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Jan 7 21:19:38 2003 UTC (10 years, 4 months ago) by
sh002i
File length: 20484 byte(s)
Diff to
previous 685
DONE effectiveUser for at least Problem.pm
DONE write a template escape for printing $user, $effectiveUser, &c. nicely
also added additional timing log points: timing is now logged:
1. when WeBWorK::PG::new starts
2. after all the initialization-type stuff happens
3. when WeBWorK::PG::new ends
Getting it to log the entire request time might be a little harder.
-sam
Revision
685 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Jan 6 19:41:44 2003 UTC (10 years, 4 months ago) by
sh002i
File length: 20301 byte(s)
Diff to
previous 684
DONE results table
part(or blank)/entered/preview/result/messages
don't show messages unless there are some
-sam
Revision
684 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Jan 6 19:34:36 2003 UTC (10 years, 4 months ago) by
sh002i
File length: 20205 byte(s)
Diff to
previous 683
removed user name propogation from Logout -> Login
disabled "show hint/solution" when there's no hint/solution
Revision
683 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Jan 6 19:17:28 2003 UTC (10 years, 4 months ago) by
sh002i
File length: 20218 byte(s)
Diff to
previous 682
fixed formatting in &tth (dangerousMacros.pl)
ProblemSets.pm allows sorting by Name or Status (due date)
-sam
Revision
682 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Jan 6 18:10:47 2003 UTC (10 years, 4 months ago) by
sh002i
File length: 20101 byte(s)
Diff to
previous 671
make answer previews use $displayMode
write a template escape for printing $user, $effectiveUser, &c. nicely
-sam
Revision
562 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Sep 27 23:53:42 2002 UTC (10 years, 7 months ago) by
sh002i
File length: 16891 byte(s)
Diff to
previous 558
- created macros/IO.pl, which is loaded with no opmask by PG.pm. It is a copy
of WeBWorK::PG::IO.pm, with some changes to make it work as a macro package.
The translator no longer shares IO.pm's functions with the safe compartment.
This is a BAD THING, and should be reconsidered when the Translator is
revised.
- Changed many (but not all) checks for HTML or HTML_tth modes to match /^HTML/
in the macros.
- changed &header to &head in Problem.pm
- Added problem environment variables for gif2eps and png2eps and modified
&dangerousMacros::alias to use them
- fixed MOST of the harmless warnings in the system. there's still the "Use
of uninitialized value in null operation" warning in template(), tho.
Still to come:
- make images in PDFs work
- fix TTH mode character encodings on mac (maybe)
- have logout button invalidate key
- Pretty die messages (from outside of the translator)
- Feedback - need nice modular way of sending email
- Options - email address and password
Revision
558 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Sep 20 22:47:22 2002 UTC (10 years, 8 months ago) by
sh002i
File length: 16442 byte(s)
Diff to
previous 555
* fixed multiple-calls-to-&handler problem
* fixed if-else-endif code in &template
* added code to catch warnings in PG evaluation
* added "pink screen" and warning reporting
* started work on logging code (see Utils.pm, commented out)
-sam & dennis
Revision
526 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Aug 29 19:56:24 2002 UTC (10 years, 8 months ago) by
sh002i
File length: 15523 byte(s)
Diff to
previous 502
HTML_img mode ("images" mode in the HTML interface) now uses dvipng to
generate images. ProblemSet now has a link to Hardcopy.
-sam
Revision
502 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Aug 22 21:11:53 2002 UTC (10 years, 9 months ago) by
sh002i
File length: 15466 byte(s)
Diff to
previous 494
continuing work on hardcopy generation. changed interface to PG.pm to
take user, problem, and set objects instead of names.
-sam
Revision
492 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Aug 21 15:34:35 2002 UTC (10 years, 9 months ago) by
sh002i
File length: 15561 byte(s)
Diff to
previous 476
made progress towards working hardcopy generation. next, i have to fix
the call to pdflatex. screw pip. it's not working right, and it doesn't
give me any speed gain, since latex has to goofily write the WHOLE DAMN
FILE in whatever order it pleases before letting me have it.
-sam
Revision
476 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Aug 20 01:07:18 2002 UTC (10 years, 9 months ago) by
sh002i
File length: 15440 byte(s)
Diff to
previous 455
fixed problem with deciding when to generate images in math2img mode
finished adding template escapes to ProblemSets, ProblemSet, and Problem
fixed a problem where modules were removed from the courseEnv while
being loaded (whups.)
-sam
Revision
455 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Aug 5 21:34:18 2002 UTC (10 years, 9 months ago) by
sh002i
File length: 13658 byte(s)
Diff to
previous 449
"normalized" files:
- (c) header on all files
- standard order of preamble lines:
1. (c) header
2. package PACKAGENAME;
3. short summary of the package (pod's NAME section)
4. use - pragmatic modules
5. use - standard perl modules
6. use - CPAN modules
7. use - webwork modules
- ALWAYS use strict and use warnings
- use "use base" rather than "our @ISA"
so now we can be happy.
-sam
Revision
434 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Jul 19 06:19:34 2002 UTC (10 years, 10 months ago) by
sh002i
File length: 12471 byte(s)
Diff to
previous 431
added refreshMath2img to the problem environment (PG.pm) and modified
Problem.pm to set it when showHints or showSolutions is on. THIS IS NOT
THE BEST THING TO DO -- we only need to refresh when the value of
showHints or showSolutions CHANGES. Also, we should be refreshing if the
problem seed changes. So, we need somewhere to store those three values
between invocations of the script. HHHHHMMMMMMMM......... &math2img in
dangerousMacros.pl has been modified to respect refreshMath2img and also
refresh if the image file is older than the PG source file.
-sam
Revision
424 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Jul 11 19:09:08 2002 UTC (10 years, 10 months ago) by
sh002i
File length: 4132 byte(s)
Diff to
previous 415
Problem.pm/PG.pm/Translator.pm now compile and work (to some degree)
changed the format of pg/modules in global.conf
diddled with the format of system.template (i believe i moved an <HR>)
added ref2string function to Utils.pm, removed hash2string/array2string
fixed a package name in IO.pm
Revision
399 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Jun 20 21:26:16 2002 UTC (10 years, 11 months ago) by
gage
File length: 25981 byte(s)
Diff to
previous 398
Copied in a version of safety_filter subroutine from
PGtranslator5.pm in order to quite an "undefined" message.
-- Mike
Revision
396 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Jun 20 20:43:39 2002 UTC (10 years, 11 months ago) by
malsyned
File length: 25083 byte(s)
Diff to
previous 392
Some edits to make it work on my system, and some code cleanups. You'll
probably have to edit it on the top (right now) to get it to work on your
system. /this will change/ in the future. But it's nice to have a working
demo.
--Dennis
Revision
392 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Jun 20 13:46:05 2002 UTC (10 years, 11 months ago) by
gage
File length: 24881 byte(s)
Diff to
previous 388
Problem.pm now works (kindof) to serve PG problems. There are configuration
variables at the top that have to be customized to an individuals directory.
(They could be placed in a config file to avoid having to update them constantly,
but soon these values should be set by information from the course and
problem environments.)
The code is still rather delicate. It seems to work with some problems and not
with others. I suspect that the macro files are not being properly read in
and that perhaps the warning mechanisms are not yet working properly.
Also beware the line ending problem. Some of these files were created on a
mac (using unix). I've had completely mysterious errors that were fixed
by checking the line endings.
There is also a lot of code, particulary the error reporting code which should be put
in its own module.
Revision
388 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Jun 19 20:03:53 2002 UTC (10 years, 11 months ago) by
gage
File length: 6707 byte(s)
Diff to
previous 353
I've added code for defining the problemEnvironment, at least for now.
Many of the values which will be pulled from the database have simply
been hardcoded into the subroutine.
There is also code to pretty print these values to aid in debugging.
Revision
353 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Added
Fri Jun 7 23:35:59 2002 UTC (10 years, 11 months ago) by
malsyned
File length: 531 byte(s)
All of the content generators now work with the template system
Moved the content generators into the WeBWorK::ContentGenerator namespace
Added the default template and a few global.conf entries
This form allows you to request diffs between any two revisions of this file.
For each of the two "sides" of the diff,
enter a numeric revision.