[system] / trunk / webwork2 / lib / WeBWorK / ContentGenerator.pm Repository:
ViewVC logotype

Log of /trunk/webwork2/lib/WeBWorK/ContentGenerator.pm

Parent Directory Parent Directory


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

Revision 2260 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jun 6 02:48:00 2004 UTC (8 years, 11 months ago) by gage
File length: 37460 byte(s)
Diff to previous 2257
More tweaking for the position of the help question mark.

This is much better.  It now has default names equal to the
title page name, lower case, spaces replaced by under bars.

Revision 2257 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jun 6 00:21:26 2004 UTC (8 years, 11 months ago) by gage
File length: 37268 byte(s)
Diff to previous 2222
Added minimal version of a help symbol that will appear on each page.

The CSS at the top of the page needs work, so that not so much space is used.

Revision 2222 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 28 15:32:35 2004 UTC (8 years, 11 months ago) by jj
File length: 36471 byte(s)
Diff to previous 2161
Try to work around IE bug: on left panel lines wrapped at every space.  Those spaces are converted to non-breaking spaces.  Ugly, but IE on windows is one of the most common browsers.

Revision 2161 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat May 22 21:24:42 2004 UTC (9 years ago) by apizer
File length: 36099 byte(s)
Diff to previous 2152
Added Student Progress section

Revision 2152 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat May 22 01:50:35 2004 UTC (9 years ago) by jj
File length: 35318 byte(s)
Diff to previous 2140
Put addbadmessage in Contentgenerator (to go with addgoodmessage),
and use it in SetMaker.

Revision 2140 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 21 23:38:53 2004 UTC (9 years ago) by jj
File length: 35060 byte(s)
Diff to previous 2034
Extricating Problem Library from DB structure, part II.

Revision 2034 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 7 18:47:23 2004 UTC (9 years ago) by sh002i
File length: 34793 byte(s)
Diff to previous 2030
changed name of self-field used to hold the text for the message()
escape to "status_message" to avoid collisions with existing use of
"message" in CGs.

We should consider forming some kind of policy for this stuff. Maybe all
the fields that WeBWorK::ContentGenerator uses should be prefixed with
"CG_" or something. Thoughts?

Perl 6 would make this much nicer.

Revision 2030 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 7 18:21:19 2004 UTC (9 years ago) by sh002i
File length: 34754 byte(s)
Diff to previous 2014
(1) removed "sendFile" mechanism -- use reply_with_file() instead
(2) moved addmessage, reply_with_{file,redirect} to a separate section
in the file, for data modifiers.

Revision 2014 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 6 20:31:50 2004 UTC (9 years ago) by toenail
File length: 36507 byte(s)
Diff to previous 2013
fixed bad links for invalid sets and problems

Revision 2013 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 6 20:21:48 2004 UTC (9 years ago) by toenail
File length: 36460 byte(s)
Diff to previous 1998
added message() as a more general message handler than submiterror()
addmessage() helper method for concatenating messages

Revision 1998 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 4 16:03:09 2004 UTC (9 years ago) by jj
File length: 34562 byte(s)
Diff to previous 1984
Add link to set maker in the instructor tools part of left panel.  Also
added hr above Instructor Tools.

Revision 1984 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 29 22:20:36 2004 UTC (9 years ago) by sh002i
File length: 34404 byte(s)
Diff to previous 1974
reply_with_file(): fixed bugs, added "delete_after" option

Revision 1974 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 27 02:45:14 2004 UTC (9 years ago) by sh002i
File length: 34122 byte(s)
Diff to previous 1942
nbsp doesn't barf on undefined values anymore

Revision 1942 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Apr 4 17:08:45 2004 UTC (9 years, 1 month ago) by jj
File length: 34110 byte(s)
Diff to previous 1918
Added timestamp to contentgenerator.  The format string can be passed to
it by the style parameter.

Revision 1918 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 23 01:48:07 2004 UTC (9 years, 2 months ago) by sh002i
File length: 33534 byte(s)
Diff to previous 1911
added "Add Users" and "Set Assigner" links

Revision 1911 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 23 01:08:41 2004 UTC (9 years, 2 months ago) by sh002i
File length: 33238 byte(s)
Diff to previous 1898
* systemLink changes: params can either specify param names in a list
(in which case all param values will be taken from the request) or
specify param names and values in a hash (in which case only undefined
values will be taken from the request). multiple values can be specified
for the same param by using an arrayref.

* added $self->reply_with_file() and $self->reply_with_redirect: these
can be called from pre_header_initialize to direct the CG to either send
a file or a location header. $self->{sendFile} and $self->{noContent},
as well as sending your own redirect headers, are now deprecated!

Revision 1898 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 17 08:15:31 2004 UTC (9 years, 2 months ago) by sh002i
File length: 29928 byte(s)
Diff to previous 1893
added note to remind me to change the way systemLink() works

Revision 1893 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 15 23:03:46 2004 UTC (9 years, 2 months ago) by sh002i
File length: 29785 byte(s)
Diff to previous 1882
fix in systemLink logic

Revision 1882 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 15 04:09:56 2004 UTC (9 years, 2 months ago) by sh002i
File length: 29786 byte(s)
Diff to previous 1880
changed interface for systemLink to be more regular. you can now specify
a list of parameters to attach to the URL and a list of alternate values
for any parameter.

cosmetic changes.

Revision 1880 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 15 03:18:15 2004 UTC (9 years, 2 months ago) by sh002i
File length: 29379 byte(s)
Diff to previous 1873
all template escapes now use CGI::Pretty for better readability. (feel
free to convert other content generators -- replace "use CGI" with "use
CGI::Pretty.

all template escapes now print output directly instead of returning
things. (good for pipelining!)

Revision 1873 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 11 03:07:46 2004 UTC (9 years, 2 months ago) by sh002i
File length: 28805 byte(s)
Diff to previous 1871
finished extensive documentation and reorganzied file. this should be
much more usable now. also, the templater is now called from the new
content() method (instead of having special logic in go()).

Revision 1871 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 10 02:51:57 2004 UTC (9 years, 2 months ago) by sh002i
File length: 27060 byte(s)
Diff to previous 1869
i hate it when i think i've tested something, and it turns out i didn't.

Revision 1869 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 10 02:30:32 2004 UTC (9 years, 2 months ago) by sh002i
File length: 27093 byte(s)
Diff to previous 1866
removed templating code. (it's now in lib/WeBWorK/Template.pm.)
small fixes in links().
$ce/$db/$authz now taken from $r instead of from $self in many methods.
loginstatus() now uses urlpath.
CSS-ization.

Revision 1866 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 9 15:49:28 2004 UTC (9 years, 2 months ago) by sh002i
File length: 30388 byte(s)
Diff to previous 1861
Added systemLink() method to take a URLPath and tack on the location
prefix and the authen args (if desired). Allows one to override any of
the authen args with new values (i.e. for changing effectiveUser).

Reimplemented links() using URLPaths and calls to systemLink() as a
test. Also, the output is now styled as nested unordered lists in the
class LinkMenu (see stylesheet).

Revision 1861 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Mar 6 21:49:32 2004 UTC (9 years, 2 months ago) by sh002i
File length: 25284 byte(s)
Diff to previous 1857
added documentation, added support for a new "textonly" argument to the
"path" macro.

Revision 1857 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Mar 6 18:50:00 2004 UTC (9 years, 2 months ago) by gage
File length: 22770 byte(s)
Diff to previous 1838
Added support for the new module Grades.pm which supports student grades

Revision 1838 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 4 21:03:04 2004 UTC (9 years, 2 months ago) by sh002i
File length: 22641 byte(s)
Diff to previous 1811
changed constructor to work with dispatch_new

Revision 1811 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 16 03:37:02 2004 UTC (9 years, 3 months ago) by gage
File length: 21915 byte(s)
Diff to previous 1741
Added nbsp method to
ContentGenerator.pm

Revision 1741 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 23 21:02:22 2004 UTC (9 years, 3 months ago) by sh002i
File length: 21602 byte(s)
Diff to previous 1717
moved logout button to be in loginstatus escape.

Revision 1717 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jan 17 16:29:52 2004 UTC (9 years, 4 months ago) by gage
File length: 21353 byte(s)
Diff to previous 1681
Cosmetic modifications to the user interface.  Made "instructor tools" and
"problem sets" larger in the left margin.

This addressed bug 323 but may not solve it.

Revision 1681 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 18 23:15:34 2003 UTC (9 years, 5 months ago) by sh002i
File length: 21217 byte(s)
Diff to previous 1663
- Assigner and SetsAssignedToUser now refuse to unassign sets from the
GlobalTableEmulator's "global user". Closes bug #283.
- New "unassign from all users" button in Assigner.
- Cosmetic changes to path() and title() in several modules.

Revision 1663 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 9 01:12:32 2003 UTC (9 years, 5 months ago) by sh002i
File length: 21137 byte(s)
Diff to previous 1636
Normalized headers. All files now contain the text below as a header.
This is important since all files now (a) use the full name of the
package, (b) assign copyright to "The WeBWorK Project", (c) give the
full path of the file (relative to CVSROOT) instead of simply the file
name, and (d) include license and warranty information.

Here is the new header:

################################################################################
# WeBWorK Online Homework Delivery System
# Copyright © 2000-2003 The WeBWorK Projcct, http://openwebwork.sf.net/
# $CVSHeader$
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of either: (a) the GNU General Public License as published by the
# Free Software Foundation; either version 2, or (at your option) any later
# version, or (b) the "Artistic License" which comes with this package.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE.  See either the GNU General Public License or the
# Artistic License for more details.
################################################################################

Revision 1636 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 19 18:44:47 2003 UTC (9 years, 6 months ago) by sh002i
File length: 20480 byte(s)
Diff to previous 1613
added code to check for undef return values from DB "get" calls.

Revision 1613 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 4 02:23:07 2003 UTC (9 years, 6 months ago) by sh002i
File length: 20261 byte(s)
Diff to previous 1600
Finished Upload module. See POD.

Added sendFile routine to ContentGenerator. To use, store a hash
reference in $self->{sendFile} containing keys:
	source: full path to file to send
	type: content type of file to send
	name: file name to suggest to client
This must be done BEFORE the HTTP header is sent, i.e. in
pre_header_initialize. It will not work is &go or &header is overridden.

Revision 1600 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 21 20:18:31 2003 UTC (9 years, 7 months ago) by sh002i
File length: 19435 byte(s)
Diff to previous 1475
cosmetic changes to instructor_links method

Revision 1475 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 28 23:24:21 2003 UTC (9 years, 8 months ago) by gage
File length: 19221 byte(s)
Diff to previous 1458
Added scoring to the instructor links.
--Mike

Revision 1458 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 14 19:59:20 2003 UTC (9 years, 9 months ago) by malsyned
File length: 19054 byte(s)
Diff to previous 1439
Changed text of instructor links

Revision 1439 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 25 19:22:17 2003 UTC (9 years, 9 months ago) by gage
File length: 19053 byte(s)
Diff to previous 1436
Fixed glitch in links involving effective user
--Mike

Revision 1436 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 25 13:33:37 2003 UTC (9 years, 9 months ago) by gage
File length: 18976 byte(s)
Diff to previous 1432
Tweaked the instructor links callback
--Mike

Revision 1432 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 25 03:20:16 2003 UTC (9 years, 10 months ago) by gage
File length: 18686 byte(s)
Diff to previous 1431
Added more capabilities to the stats module.

There is some overlapping code that needs to be factored out.
--Mike

Revision 1431 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 24 21:58:06 2003 UTC (9 years, 10 months ago) by gage
File length: 18687 byte(s)
Diff to previous 1430
Minor bug fix in links subroutine
--Mike

Revision 1430 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 24 21:52:17 2003 UTC (9 years, 10 months ago) by gage
File length: 18665 byte(s)
Diff to previous 1425
Added a module that shows the raw stats for a single set.
We need a better index page for this and other views of the
same statistics.
--Mike

Revision 1425 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 23 20:19:12 2003 UTC (9 years, 10 months ago) by malsyned
File length: 18393 byte(s)
Diff to previous 1412
Added the ability for content generators to specify names for themselves
for the purpose of custom templates

Revision 1412 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 21 23:06:25 2003 UTC (9 years, 10 months ago) by malsyned
File length: 18055 byte(s)
Diff to previous 1408
Fixed a bug in url_args preventing it from properly representing
one-to-many params.

Revision 1408 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 21 22:07:46 2003 UTC (9 years, 10 months ago) by malsyned
File length: 17980 byte(s)
Diff to previous 1384
Added the capability for content generators to return an HTTP response
type other than OK.
Added the capability for content generators to bypass the template
processing (by providing a "content" subroutine)

Revision 1384 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 14 19:30:19 2003 UTC (9 years, 10 months ago) by gage
File length: 17136 byte(s)
Diff to previous 1383
Cosmetic tweak to links

Revision 1383 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 14 18:44:27 2003 UTC (9 years, 10 months ago) by gage
File length: 17136 byte(s)
Diff to previous 1374
Tweaked the links section a bit.  Moved instructor links
into their own submethod, since they were getting complicated.
--Mike

Revision 1374 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jul 13 18:55:56 2003 UTC (9 years, 10 months ago) by gage
File length: 16278 byte(s)
Diff to previous 1360
Added link to "Send Email" for instructors
--Mike

Revision 1360 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 11 19:20:52 2003 UTC (9 years, 10 months ago) by gage
File length: 16095 byte(s)
Diff to previous 1358
Cosmetic improvements to the links macro.  Instructor.pm
no longer needs a links macro, but I've left it there
temporarily
--Mike

Revision 1358 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 11 18:41:22 2003 UTC (9 years, 10 months ago) by gage
File length: 16062 byte(s)
Diff to previous 1297
Links now include direct access to Class list and to Set list
--Mike

Revision 1297 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 27 17:09:06 2003 UTC (9 years, 10 months ago) by gage
File length: 15732 byte(s)
Diff to previous 1225
Cosmetic modifcations to links
--Mike

Revision 1225 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 20 01:16:22 2003 UTC (9 years, 11 months ago) by sh002i
File length: 15724 byte(s)
Diff to previous 1169
housekeeping.

Revision 1169 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jun 14 06:03:15 2003 UTC (9 years, 11 months ago) by sh002i
File length: 15721 byte(s)
Diff to previous 1152
fixed Bug #92 and problem with equations with \n in them.
-sam

Revision 1152 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 13 02:17:32 2003 UTC (9 years, 11 months ago) by gage
File length: 15676 byte(s)
Diff to previous 1142
Changed some error H2 headings to H3 -- it wastes less space.
--Mike

Revision 1142 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 12 19:30:37 2003 UTC (9 years, 11 months ago) by sh002i
File length: 15676 byte(s)
Diff to previous 1131
Changed error and warning output to replace <pre> with <p><tt>.
Error/warning text now wraps!
-sam

Revision 1131 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 11 20:40:11 2003 UTC (9 years, 11 months ago) by sh002i
File length: 15704 byte(s)
Diff to previous 1042
Made many changes:

- turned off PG warning catching in conf/global.conf.dist
- added warning reporting to conf/templates/ur.template (but not to
  other templates!)
- modified a couple of error messages in WeBWorK.pm
- made failure to create course environment and failure to find course
  directory fatal errors in WeBWorK.pm
- added warning queueing and call stack storing to Apache::WeBWorK
- added "warnings" and "if_warnings" template escapes to
  WeBWorK::ContentGenerator
- removed warning handling from WeBWorK::ContentGenerator::Problem
- code tidying in WeBWorK::ContentGenerator::Problem
- code tidying in WeBWorK::PG::ImageGenerator

-sam

Revision 1042 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 6 17:48:11 2003 UTC (9 years, 11 months ago) by malsyned
File length: 15323 byte(s)
Diff to previous 1024
Template escapes can return a list again, and now it's a sanctioned
activity.
-Dennis

Revision 1024 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 5 15:26:59 2003 UTC (9 years, 11 months ago) by gage
File length: 15325 byte(s)
Diff to previous 1018
Fixed bug in navMacro and a bug in path.
This squashes bug #46.

The problem was a comma in the return, instead of a period.
return "foo"."\n";
returns foo with a return after it
return "foo","\n";
returns just the \n probably because the comma operation comes into
play and only the result of the last operation is returned.

Apparently return doesn't grab everything to the right of it in the same
way that print does.
I'd bet that
return("foo","\n") would return a list however.

--Mike

Revision 1018 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 5 00:02:24 2003 UTC (9 years, 11 months ago) by malsyned
File length: 15323 byte(s)
Diff to previous 1017
Removed warnings.  woops.
-Dennis

Revision 1017 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 4 23:47:35 2003 UTC (9 years, 11 months ago) by malsyned
File length: 15505 byte(s)
Diff to previous 836
Instructor pages now only let instructors view and edit the database.
phew.

NOTE that there are new directives in global.conf.dist.  You won't be
able to use the professor pages until you've made that change.

Also, I added new template escapes and updated the barebones and ur
templates.
-Dennis

Revision 836 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 14 21:20:13 2003 UTC (10 years ago) by malsyned
File length: 14859 byte(s)
Diff to previous 833
Removed the Professor content generator and link.
Made a little progress on ProblemSetList.
-Dennis

Revision 833 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 14 20:55:07 2003 UTC (10 years ago) by gage
File length: 14827 byte(s)
Diff to previous 819
Modified links subroutine so that it returns a string rather than an
array.

Revision 819 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 25 05:07:59 2003 UTC (10 years ago) by sh002i
File length: 14828 byte(s)
Diff to previous 817
$db gets passed into the ContentGenerator constructor (rather than being
needlessly recreated inside).
-sam

Revision 817 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 23 06:39:03 2003 UTC (10 years, 1 month ago) by sh002i
File length: 14840 byte(s)
Diff to previous 809
rewrote these modules to use the WWDBv2 library. rewrote the Authen.pm
verify function to (hopefully) be more readable.
-sam

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: 14836 byte(s)
Diff to previous 798
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 798 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 21 23:30:16 2003 UTC (10 years, 2 months ago) by sh002i
File length: 14942 byte(s)
Diff to previous 795
initial support for WWDBv2:
        - DB.pm finished (except for getGlobalUser{Set,Problem} methods)
        - schema modules for password, permission, key, and user with
          WWDBv1 hash-bashed backends
        - GDBM driver
        - wwdb command-line frontend
-sam

Revision 795 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 21 21:40:01 2003 UTC (10 years, 2 months ago) by malsyned
File length: 14900 byte(s)
Diff to previous 765
Hit the #nav macro with a cluebat
RE: webworkURLs->htdocs vs. imageprefix=""
-Dennis

Revision 765 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 28 23:56:35 2003 UTC (10 years, 2 months ago) by malsyned
File length: 14813 byte(s)
Diff to previous 757
removed "nowrap" from barebones.template because it wasn't doing
anything anyway, and every byte counts ;-)

Changed "Logged in as:" to "User:" in ContentGenerator and killed the
CGI::br calls in that message and the "Acting as:" message

Added more context to the context URL in Feedback, and properly
obfuscated some code.

--Dennis

Revision 757 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 28 20:29:56 2003 UTC (10 years, 2 months ago) by malsyned
File length: 14805 byte(s)
Diff to previous 748
Changed the calling semantics to navMacro
-dennis

Revision 748 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 26 18:39:07 2003 UTC (10 years, 2 months ago) by malsyned
File length: 14614 byte(s)
Diff to previous 737
Added the <!--#if loggedin="1"--> template escape.  It evaluates to true
on every content generator except Login.pm and Logout.pm.  Used it to
make the barebones template look cleaner on the login page.
-Dennis

Revision 737 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 18 07:04:13 2003 UTC (10 years, 3 months ago) by sh002i
File length: 14367 byte(s)
Diff to previous 692
merged changes from rel-2-0-pr1-hardcopy-changes
-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: 13314 byte(s)
Diff to previous 682
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 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: 13190 byte(s)
Diff to previous 675
make answer previews use $displayMode
write a template escape for printing $user, $effectiveUser, &c. nicely
-sam

Revision 675 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 13 21:14:54 2002 UTC (10 years, 5 months ago) by sh002i
File length: 12776 byte(s)
Diff to previous 667
made some improvements to Feedback, added loginStatus escape.
-sam

Revision 667 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 4 19:07:12 2002 UTC (10 years, 5 months ago) by sh002i
File length: 12762 byte(s)
Diff to previous 646
added a bunch of "***" comments.
implemented Feedback module.
-sam

Revision 646 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Nov 23 00:25:40 2002 UTC (10 years, 6 months ago) by sh002i
File length: 12736 byte(s)
Diff to previous 644
added REAL logout support. keys now get invalidated at logout.
also, fixed a bug in classlist (see the diff).
also, added a sub to Utils (see the diff).
-sam

Revision 644 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 22 20:30:20 2002 UTC (10 years, 6 months ago) by sh002i
File length: 12580 byte(s)
Diff to previous 643
Added "Options" handler, modified the dispatcher to support it, fixed
the link to it in the &links routine.
-sam

Revision 643 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 22 20:26:26 2002 UTC (10 years, 6 months ago) by malsyned
File length: 12578 byte(s)
Diff to previous 633
Removed some debugging code
-dennis

Revision 633 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 20 19:11:55 2002 UTC (10 years, 6 months ago) by malsyned
File length: 12734 byte(s)
Diff to previous 562
Added some debugging code

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: 12578 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: 12518 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 555 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 18 19:25:42 2002 UTC (10 years, 8 months ago) by sh002i
File length: 12537 byte(s)
Diff to previous 526
fixed image centering, added head escape.
-sam

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: 12595 byte(s)
Diff to previous 525
HTML_img mode ("images" mode in the HTML interface) now uses dvipng to
generate images. ProblemSet now has a link to Hardcopy.
-sam

Revision 525 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 29 19:45:18 2002 UTC (10 years, 8 months ago) by malsyned
File length: 12222 byte(s)
Diff to previous 522
Added the new &if_$key infrastructure
-dennis

Revision 522 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 29 17:42:39 2002 UTC (10 years, 8 months ago) by malsyned
File length: 11615 byte(s)
Diff to previous 512
Debugging of the templating system and some other misc. changes.
--dennis

Revision 512 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 23 22:19:51 2002 UTC (10 years, 9 months ago) by malsyned
File length: 11615 byte(s)
Diff to previous 508
Added the <!--#if--> escape and the can="" clause, to hide features of the
page if the escape they contain is invalid in the current content generator.
Other things can be added to the &if later (such as checking if warnings have
occurred and changing the background color accordingly).
--Dennis

Revision 508 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 23 00:12:52 2002 UTC (10 years, 9 months ago) by malsyned
File length: 10457 byte(s)
Diff to previous 505
HAHAHA!!!!  I finally figured out a good way to do quoted strings with
backslash-escapes!  Had to draw a damn Deterministic Finite-state Automaton on
the chalkboard, but it's all in the name of science, right?
--Dennis

Revision 505 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 22 22:02:39 2002 UTC (10 years, 9 months ago) by sh002i
File length: 10459 byte(s)
Diff to previous 494
quicklinks -> links
-sam

Revision 494 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 21 18:31:20 2002 UTC (10 years, 9 months ago) by sh002i
File length: 10469 byte(s)
Diff to previous 476
updated copyright header.
-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: 10491 byte(s)
Diff to previous 469
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 469 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 16 20:43:38 2002 UTC (10 years, 9 months ago) by sh002i
File length: 10058 byte(s)
Diff to previous 455
pretty much implemented the whole thing.

yeah.
-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: 5784 byte(s)
Diff to previous 447
"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 447 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 31 19:51:20 2002 UTC (10 years, 9 months ago) by malsyned
File length: 5442 byte(s)
Diff to previous 441
Various cleanups
-dennis

Revision 441 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 25 21:58:22 2002 UTC (10 years, 9 months ago) by malsyned
File length: 5365 byte(s)
Diff to previous 425
Added use strict and use warnings, then cleaned up much of the mess that
revealed.
--Dennis

Revision 425 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 11 23:27:10 2002 UTC (10 years, 10 months ago) by sh002i
File length: 5150 byte(s)
Diff to previous 420
continued to work on Problem.pm. see diffs.
-sam

Revision 420 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 3 23:09:28 2002 UTC (10 years, 10 months ago) by malsyned
File length: 4695 byte(s)
Diff to previous 403
ContentGenerator.pm: Changed names based on new course environment keys
Form.pm: New addition, handles anything param-able
Upload.pm: Will eventually make file uploads nice and easy vis-a-vis the
  transparent relogin functionality
--Dennis

Revision 403 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 24 16:34:30 2002 UTC (10 years, 11 months ago) by malsyned
File length: 4555 byte(s)
Diff to previous 397
Removed the CARP code (for now?), and made sure that an actual problem was
reachable (even though PG evaluation is commented out in the dispatcher
right now)

Revision 397 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 20 21:18:37 2002 UTC (10 years, 11 months ago) by malsyned
File length: 4554 byte(s)
Diff to previous 390
fixed interface to template() function.
-"dennis"

Revision 390 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 19 22:45:47 2002 UTC (10 years, 11 months ago) by malsyned
File length: 4540 byte(s)
Diff to previous 353
This commit brings several packages up to date and working.  I wish I could
be more specific, but it's been a while since I've committed.  You'll have
to check the CVS diffs for more info.
--Dennis

Revision 353 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 7 23:35:59 2002 UTC (10 years, 11 months ago) by malsyned
File length: 2984 byte(s)
Diff to previous 349
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

Revision 349 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 7 21:37:33 2002 UTC (10 years, 11 months ago) by malsyned
File length: 3204 byte(s)
Diff to previous 323
The framework for the template system has been laid in ContentGenerator.
Login.pm is the first module converted to work with that framework.
--Dennis

Revision 323 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 30 20:34:46 2002 UTC (10 years, 11 months ago) by malsyned
File length: 2991 byte(s)
Diff to previous 313
-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

Revision 313 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 28 21:23:45 2002 UTC (10 years, 11 months ago) by malsyned
File length: 1850 byte(s)
Diff to previous 305
- 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

Revision 305 - (view) (download) (as text) (annotate) - [select for diffs]
Added Thu May 23 20:23:10 2002 UTC (11 years ago) by malsyned
File length: 738 byte(s)
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.

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.

  Diffs between and
  Type of Diff should be a

Sort log by:

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9