Mercurial > pub > Impl
diff Lib/IMPL/Code/Loader.pm @ 229:47f77e6409f7
heavily reworked the resource model of the web application:
*some ResourcesContraact functionality moved to Resource
+Added CustomResource
*Corrected action handlers
author | sergey |
---|---|
date | Sat, 29 Sep 2012 02:34:47 +0400 |
parents | a8db61d0ed33 |
children | 6d8092d8ce1b |
line wrap: on
line diff
--- a/Lib/IMPL/Code/Loader.pm Thu Sep 13 17:55:01 2012 +0400 +++ b/Lib/IMPL/Code/Loader.pm Sat Sep 29 02:34:47 2012 +0400 @@ -35,10 +35,11 @@ my ($this,$package) = @_; if ($this->verifyNames) { - $package =~ m/^([a-zA-Z_0-9]+(?:::[a-zA-Z_0-9]+)*)$/ or die ArgumentException->new("package") ; + $package =~ m/^([a-zA-Z_0-9]+(?:::[a-zA-Z_0-9]+)*)$/ + or die ArgumentException->new(package => 'Invalid package name') ; } - $package = $this->prefix . $package if $this->prefix; + $package = $this->prefix . '::' . $package if $this->prefix; my $file = join('/', split(/::/,$package)) . ".pm";