mason

This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.



Subject: ANNOUNCE: HTML::Mason 0.88
From: Jonathan Swartz <swartz@pobox.com>
Date: Wed, 30 Aug 2000 19:49:07 -0700

The URL

    http://www.masonhq.com/download/HTML-Mason-0.88.tar.gz

has entered CPAN as

  file: $CPAN/authors/id/J/JS/JSWARTZ/HTML-Mason-0.88.tar.gz
  size: 261334 bytes
   md5: bee596df529e4b405c223d5bdfb8bd3a

Mason is a component-based web site development system with caching,
debugging, and previewing facilities.  Check out http://www.masonhq.com
for more information.

Dave Rolsky (autarch@urth.org) was the primary developer on this release.

Changes in 0.88:

  - Fixed broken Parser postprocessor code (broken since 0.85).  Added
  tests for this code path as well as the preprocessor feature.
  (Reported by Tim Bishop).
  - Replaced lots of simple accessors with new HTML::Mason::MethodMaker
  (which just makes simple read-only and read-write accessor methods).
  - Removed all direct hash key access from one object into another.
  - Removed all unneeded uses of Exporter in various modules.
  - Added warning about using mod_perl as a DSO to README file.
  - Added 'cgi_object' method to HTML::Mason::Request::ApacheHandler.
  This method returns the CGI object Mason uses internally (unless
  you're using Apache::Request instead in which case its a fatal error).
  Added documentation for this. (suggested by many people).
  - Squashed warning in assignment to %ARGS in component sub body.
  - Fixed call_method and scall_method to take arbitrary list of args
  instead of hash.
  - Fixed expression escape flags to allow arbitrary following
  whitespace.  (reported by Mikhail Zabaluev)
  - Added FAQ on how to handle file uploads.
  - $m->cache returns the value stored on a successful store action.
  - Reduced memory usage by removing unneeded uses of various modules.
  On my box I see about a 500k or so reduction in memory use (Dave).
  - Removed all uses of the IO::* modules.
  - Mason seems to be working under a mod_perl DSO, at least under
  mod_perl 1.24 and Apache 1.3.12.  This probably has nothing to do with
  Mason but the very adventurous are encouraged to experiment with a
  mod_perl DSO and report back to the mason list.


===

Subject: [Mason] Problem: no-Content.
From: "Guido Moonen" <scoutboy@tref.nl>
Date: Fri, 8 Sep 2000 12:28:25 +0200

Hello all,
  
  -- The Problem -- 
  
  When i try try retrieve http://www.clickly.com/index.html 
  (Test-Site: not the real clickly.com) i get a blank return  and i 
  mean a real blank content return (tried it with telnet to port 80 and 
  the server only sends back the headers of the web-page?)
  
  Does anybody know what the problem is? I'va tried all sorts of 
  things but nothing worked.
  
  Thanks in advance,
  	Guido Moonen
  
  -- The Stuff i have --
  
  * Solaris V 2.6 op Sun ultrasparc.
  * perl, v5.6.0 built for sun4-solaris 
  * Server version: Apache/1.3.12 (Unix)
    Server built:   Sep  6 2000 14:51:05       
  * mod_perl-1.24
  * Mason v. 0.88
  
  -- Handler.PL --
  << SNIP >>
  my (%parsers, %interp, %ah);
  foreach my $site qw(www modified management)
  {  $parsers{$site} = new HTML::Mason::Parser(allow_globals => 
  [qw($dbh %session)]);
    
     $interp{$site} = new HTML::Mason::Interp (parser=>$parsers{$site},
                                               
  comp_root=>"/clickly/html/$site/",
                                               
  data_dir=>"/clickly/masonhq/$site/",
                                               system_log_events=>"ALL");
     $ah{$site} = new HTML::Mason::ApacheHandler(interp=>$interp{$site});
  
     chown (scalar(getpwnam "nobody"), scalar(getgrnam "nobody"),
         $interp{$site}->files_written);
  }
  
  sub handler
  {   my ($r) = @_;
      my $site = $r->dir_config('site');
      return -1 if $r->content_type && $r->content_type !~ m|^text/|i;
      my $status = $ah{$site}->handle_request($r);
      return $status;
  }
  << SNIP >>
  
  -- httpd.conf -- 
  
  << SNIP >>
  # www.clickly.com (Default)
  <VirtualHost 192.168.0.210>
      ServerAdmin www-master@clickly.com
      DocumentRoot /clickly/html/www
      ServerName www.clickly.com
      PerlSetVar site 'www'
      
      <Directory "/clickly/html/www">
    	  Options Indexes FollowSymLinks MultiViews ExecCGI
  	    AllowOverride None
      	Order allow,deny
      	Allow from all
  		</Directory>
  		alias /mason /clickly/html/www
  		<Location /mason>
  			SetHandler perl-script
  			PerlHandler HTML::Mason
  		</Location>
  </VirtualHost>
  << SNIP >>
  

===

Subject: Re: [Mason] Problem: no-Content.
From: Ian Kallen <spidaman@salon.com>
Date: Sun, 10 Sep 2000 22:45:25 -0700 (PDT)

HTML::Mason is your perlhandler in the /mason request space, so what's
supposed to handle a root object "/" request?  Do a simple setup for one
virtualhost and make sure your choices of documentroot, alias settings and
component_root settings agree before broadening the solution for multiple
virtualhosts.  Also, back down to Mason 0.87 until 0.89 is released.
-Ian


===

Subject: RE: [Mason] Problem: no-Content.
From: "Guido Moonen" <scoutboy@tref.nl>
Date: Mon, 11 Sep 2000 10:59:56 +0200

Oops my mistake the i do not have a problem accessing the '/' of the site
but only when i try to access the "/mason" part of the site...

PS. I have got the same problem with 0.87
(Bit i saw it had some installation problems)

(I have not installed Version 0.88):

# make test
PERL_DL_NONLAZY=1
/usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/local/lib/perl5/5.
6.0/sun4-solaris -I/usr/local/lib/perl5/5.6.0 -e 'use Test::Harness
qw(&runtests
 $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/01-syntax.........ok
t/02-sections.......ok
t/03-mc.............ok
t/04-misc...........ok
t/05-request........Use of uninitialized value in join at
/clickly/compbst/HTML-
Mason-0.87/test/data/request/obj/shared/check_error line 18.
t/05-request........ok 6/6FAILED test 5
        Failed 1/6 tests, 83.33% okay
t/06-parser.........ok
t/07-interp.........ok
t/08-ah.............ok
t/09-component......ok
t/10-cache..........NOK 3FAILED tests 1-3
        Failed 3/3 tests, 0.00% okay
t/11-inherit........ok
Failed Test  Status Wstat Total Fail  Failed  List of failed
 ----------------------------------------------------------------------------
 ---
t/05-request.t                6    1  16.67%  5
t/10-cache.t                  3    3 100.00%  1-3
Failed 2/11 test scripts, 81.82% okay. 4/74 subtests failed, 94.59% okay.
*** Error code 29
make: Fatal error: Command failed for target `test_dynamic'

===


the rest of The Pile (a partial mailing list archive)

doom@kzsu.stanford.edu