Re-adding (conditional) cookie baking. I'm not sure anyone has been successfully testing SVN WebGUI since it was removed.

Moving cookies out of session::open into contentHandler (they already were in uploadsHandler).  
Eliminating opening a new visitor session and then converting it to the actual user session for every single request by making two Session.pm methods public instead of private.
Added NOT_FOUND to the list of exported from Const.
Fixing a small bug in File.pm.  
Fixed some spacing/tabs/formatting issues in various places.
This autocomplete in TortoiseSVN is really nifty.
This commit is contained in:
Matthew Wilson 2005-11-19 23:30:52 +00:00
parent 5a754e2241
commit 818ff2608c
5 changed files with 103 additions and 72 deletions

View file

@ -197,7 +197,7 @@ sub processPropertiesFromFormPost {
$self->SUPER::processPropertiesFromFormPost;
delete $self->{_storageLocation};
my $storage = $self->getStorageLocation;
my $filename = $storage->addFileFromFormPost("file");
my $filename = $storage->addFileFromFormPost("file",1);
if (defined $filename) {
my %data;
$data{filename} = $filename;

View file

@ -173,7 +173,7 @@ sub editSave {
$data{storageId} = $storage->getId;
$data{filename} = $data{title} = $data{menuTitle} = $filename;
$data{templateId} = 'PBtmpl0000000000000024';
$data{templateId} = 'PBtmpl0000000000000088' if ($className eq "WebGUI::Asset::File::Image");
$data{templateId} = 'PBtmpl0000000000000088' if ($className eq "WebGUI::Asset::File::Image");
$data{url} = $class->getParent->getUrl.'/'.$filename;
my $newAsset = $class->getParent->addChild(\%data);
delete $newAsset->{_storageLocation};