|Links to HEAD:||(view) (download) (as text) (annotate)|
rewrote these modules to use the WWDBv2 library. rewrote the Authen.pm verify function to (hopefully) be more readable. -sam
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
- 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
Debugging of the templating system and some other misc. changes. --dennis
updated copyright header. -sam
"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
Added use strict and use warnings, then cleaned up much of the mess that revealed. --Dennis
The framework for the template system has been laid in ContentGenerator. Login.pm is the first module converted to work with that framework. --Dennis
GDBM Authorization works fully. More specifically: Users must authenticate if they don't provide user/key data. Fast login is requested automatically if a key has timed out. A framework is in place to add other auth backends easily.
-Replaced the "sample" code with actual calls into the database code. This would be very close to finished code, except that it suffers from a bug that has so far proved intractable to Sam and myself. An email will be forthcoming detailing the bug. Quite likely, the bug is not specifically in this file, and in the best case this file won't need to be changed much for a long time, unless I decide to change the interface for style reasons.
-Just a quick end of the day commit. No big changes to report. --Dennis
-Fixed a few interfaces so that they make more sense (I hope) -Added preliminary templating code to ContentGenerator -Added a lot of logic to the dispatcher (WeBWorK.pm). More to come, too. -Moved lots of things over to CGI.pm, for my convenience while prototyping -Added preliminary examples of ProblemSets, ProblemSet, and Problem. Problem.pm will some day go on to do what ProcessProblem8 does right now, so keep your eyes on that one. --Dennis
- ContentGenerator.pm is now officially the superclass to all modules called by the dispatcher to generate content. - Authen.pm now has a single point of exit, which makes it easier to read, debug, and modify - Login.pm is now a subclass of ContentGenerator, and apart from the HTML, is in it's final form. - All code has been commented up - The authentication wrapper is now a working demonstration. Anyone could stick it on a webserver and try it out. The database code isn't written, so it authenticates against hardcoded strings (username: dennis, passwd: helloworld), but this at least proves that the system is workable. --Dennis
Login.pm is mostly done, except that the embedded HTML has to be replaced at some point wiht code from HTML_glue or whatever new templating we implement. Authen.pm and Test.pm are useful stubs to demonstrate how authentication wraps around every request transparently. ContentGenerator.pm may become a superclass of all classes instantiated by the dispatcher, or it my whither away. Right now, it doesn't do anything, including compile.
Mostly changes to WeBWorK.pm, making it actually be a dispatcher, instead of a dummy
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.
|aubreyja at gmail dot com||ViewVC Help|
|Powered by ViewVC 1.0.9|