[rt-users] Communicate a message to web UI from inside Scrip?

Lander, Scott slander at hearstsc.com
Fri Jan 7 07:58:37 EST 2011


I don’t see anything wrong, but perhaps you might review here:

http://requesttracker.wikia.com/wiki/CustomizingWithCallbacks



maybe soemthing will jump out at you that I don’t see.



Also, just to check – I don’t think the default logging is at info level – gets a bit chatty.  Is it possible you are not seeing it just because you are not logging that level?



IN your etc/RT_SIteConfig file you should have something like: ?



# Logging

Set($LogToSyslog    , 'info');

Set($LogToScreen    , 'info');

Set($LogToFile      , 1);

Set($LogDir, 'var/log');

Set($LogToFileNamed , "rt.log");    #log to rt.log

Set($LogStackTraces, '');

Set(@LogToSyslogConf, ());

Set($StatementLog, '');

# End logging









-----Original Message-----
From: rt-users-bounces at lists.bestpractical.com [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Jeff Blaine
Sent: Thursday, January 06, 2011 10:17 PM
To: rt-users at lists.bestpractical.com
Subject: Re: [rt-users] Communicate a message to web UI from inside Scrip?



Pulling my hair out here.  Why is this callback not being

tickled?  I see nothing in my logs.



RT 3.8.7



Mason cache cleared and server restarted a million times.



The call to the callback in Ticket/Display.html is:



     $m->callback(

         CallbackName => 'BeforeDisplay',

         TicketObj => \$TicketObj,

        Tickets => \$Tickets,

         Actions => \@Actions,

         ARGSRef => \%ARGS,

     );



And my setup is:



[root at rtdev1 Display.html]# pwd

/rt/local/html/Callbacks/MyCallbacks/Ticket/Display.html

[root at rtdev1 Display.html]# ls -l BeforeDisplay

-rw-r--r-- 1 rt root 689 Jan  6 22:06 BeforeDisplay

[root at rtdev1 Display.html]# cat BeforeDisplay

<%INIT>

$RT::Logger->info("In Callback/Display.html/BeforeDisplay\n");

return 1;

</%INIT>

<%ARGS>

$Actions => []

</%ARGS>


------------------------------------------------------------------------------------
This e-mail message is intended only for the personal use of the recipient(s) named above. If you are not an intended recipient, you may not review, copy or distribute this message. If you have received this communication in error, please notify the Hearst Service Center (cadmin at hearstsc.com) immediately by email and delete the original message.
------------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20110107/5c464ccd/attachment.htm>


More information about the rt-users mailing list