[ic] SpecialSub admin_init missing perl objects

Ton Verhagen ton at verhagen.net
Wed Feb 25 11:30:13 UTC 2009

Quoting Gert van der Spoel wrote:

>> -----Original Message-----
>> From: interchange-users-bounces at icdevgroup.org [mailto:interchange-
>> users-bounces at icdevgroup.org] On Behalf Of Ton Verhagen
>> Sent: Wednesday, February 25, 2009 1:02 PM
>> To: interchange-users at icdevgroup.org
>> Subject: [ic] SpecialSub admin_init missing perl objects
>> Dear All,
>> I am still 'playing' around trying to get the admin_init SpecialSub  
>> to
>> work.
>> According to the docs:
>> If the user has administrator privileges then this subroutine will be
>> called after 'catalog_init' (if defined), after session assignment  
>> and
>> after all of the Interchange Perl objects have been set up and
>> initialized.
>> Unfortunately at least the following Perl objects are not accessible
>> in an admin_init SpecialSub:
>> $Session
>> $Variable
>> ...
>> ... I mean, I have not succeeded in accessing any value (in this
>> admin_init context) from those hash refs yet.
>> The Interchange version I am running is 5.7.1
>> Any ideas?
> Have you tried to use [dump]  to actually see what you have  
> available at
> that point?

When I use the dump tag in an admin_init routine everything seems to  
be available.... (except for the Variables)
However, at the same spot where I call the dump tag, e.g. $Session- 
 >{username} or $Vend::Session->{username} are not available.....



More information about the interchange-users mailing list