|
From: Chris W. <la...@us...> - 2001-11-19 04:14:36
|
Update of /cvsroot/openinteract/OpenInteract/OpenInteract/Template
In directory usw-pr-cvs1:/tmp/cvs-serv6073
Modified Files:
Plugin.pm
Log Message:
added new property 'server_config' available from anywhere
Index: Plugin.pm
===================================================================
RCS file: /cvsroot/openinteract/OpenInteract/OpenInteract/Template/Plugin.pm,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** Plugin.pm 2001/10/24 16:05:43 1.16
--- Plugin.pm 2001/11/19 04:14:32 1.17
***************
*** 380,384 ****
--- 380,388 ----
}
+ sub server_config {
+ return OpenInteract::Request->instance->CONFIG;
+ }
+
1;
***************
*** 973,980 ****
C<security_level>.
! [% security_scope = OI.security_scope %]
! [% FOREACH scope = security_scope.keys %]
! OI defines [% scope %] as [% security_scope.$scope %]
! [% END %]
=head1 NOTICE
--- 977,994 ----
C<security_level>.
! [% security_scope = OI.security_scope %]
! [% FOREACH scope = security_scope.keys %]
! OI defines [% scope %] as [% security_scope.$scope %]
! [% END %]
!
! B<server_config()>
!
! Returns the server configuration object (or hashref) -- whatever is
! returned by calling in normal code:
!
! $R->CONFIG;
!
! The ID of the site admin group is:
! [% OI.server_config.default_objects.site_admin_group %]
=head1 NOTICE
|