Mercurial > pub > Impl
diff Lib/IMPL/Web/Application/ResourceBase.pm @ 394:2c14f66efa08
minor changes
author | cin |
---|---|
date | Tue, 18 Feb 2014 18:17:20 +0400 |
parents | 2287c72f303a |
children |
line wrap: on
line diff
--- a/Lib/IMPL/Web/Application/ResourceBase.pm Fri Feb 14 16:41:12 2014 +0400 +++ b/Lib/IMPL/Web/Application/ResourceBase.pm Tue Feb 18 18:17:20 2014 +0400 @@ -36,9 +36,9 @@ unless $args{request}; $this->request( $args{request} ); - $this->parent( $args{parent} ); - $this->model( $args{model} ); - $this->id( $args{id} ); + $this->parent( $args{parent} ) if $args{parent}; + $this->model( $args{model} ) if $args{model}; + $this->id( $args{id} ) if $args{id}; $this->application( $args{request}->application ); # если расположение явно не указано, то оно вычисляется автоматически, @@ -87,6 +87,10 @@ shift->request->security } +sub context { + shift->request->context +} + sub verbs { {} # возвращаем пстой список операций }