# $Id: Blob.pm,v 1.2 2002/04/08 12:17:35 joern Exp $ package NewSpirit::Object::Blob; $VERSION = "0.01"; @ISA = qw( NewSpirit::Object::Generic ); use strict; use Carp; use NewSpirit::Object::Generic; use NewSpirit; use FileHandle; sub get_install_filename { my $self = shift; my $meta = $self->get_meta_data; my $install_dir = $meta->{install_target_dir}; return if not $install_dir; my $path = "$self->{project_prod_dir}/$install_dir/$self->{project}/$self->{object}"; $path =~ s!/+!/!g; return $path; } sub install_dependant_objects { my $self = shift; if ( $self->{event} =~ /proper|restore/ ) { # dependenc installation only if properties are saved # (maybe installation target has changed => URL changes too) return $self->SUPER::install_dependant_objects; } # otherwise no dependency installation necessary print "No dependency installation necessary
\n" if not $self->{dependency_installation}; 1; } sub edit_ctrl { my $self = shift; $self->editor_header ('edit'); my $no_file_uploaded = " (Currently empty. Please upload a file)" if -s $self->{object_file} == 0; print <<__HTML;
|
|