Update of /cvsroot/sandweb/sandweb/lib
In directory usw-pr-cvs1:/tmp/cvs-serv21312/lib
Modified Files:
SandWeb.pm
Log Message:
renamed "action objects" to "user objects".
"user" objects are currently : "browse" and "repository".
This is explained in the comments in SandWeb.pm
The situation is that all objects are instantiated by SandWeb.pm,
and the references passed to the CGI.
$browse and $repository are no longer defined globally; they
are created in the browse_menu. I also removed the browse()
subroutine from the CGI, which was replaced by browse_menu()
some time ago.
It is starting to make less sense to have all objects
instantiated in SandWeb.pm ( although it makes sense for
startup objects ), it is probably worthwhile to just instantiate
the "browse" and "repository" objects in the browse_menu()
method of the sandweb.cgi ... perhaps it will be easier
to read, and the end result is exactly the same.
dunno, gonna sleep on it. gotta get up early tomorrow.
Index: SandWeb.pm
===================================================================
RCS file: /cvsroot/sandweb/sandweb/lib/SandWeb.pm,v
retrieving revision 1.12
retrieving revision 1.13
diff -U2 -r1.12 -r1.13
--- SandWeb.pm 2001/10/06 08:17:12 1.12
+++ SandWeb.pm 2001/10/18 06:05:57 1.13
@@ -35,5 +35,5 @@
# a user must be logged in before we have enough info
# to instantiate these objects.
-sub actions {
+sub user {
my $class = shift;
my %args = @_;
|