I’ve never really played around with Perl, let alone HTML::Mason,
but by hacking around the main homepage, I came up with the
attached, which is in /path/to/rt/local/WebRT/html/
It prints out the 25 Highest Priority Tickets for “Nobody”, and
then for each of the Team members (those people who have
permission to do things).
Myself (Team Leader) and my manager, can use it to see who is
working on what.
Stephen
manager.html (918 Bytes)
Stephen Gower wrote:
I’ve never really played around with Perl, let alone HTML::Mason,
but by hacking around the main homepage, I came up with the
attached, which is in /path/to/rt/local/WebRT/html/
It prints out the 25 Highest Priority Tickets for “Nobody”, and
then for each of the Team members (those people who have
permission to do things).
Myself (Team Leader) and my manager, can use it to see who is
working on what.
Stephen
This is nice, but You forgot t include Elements/YourTickets…
Regards,
Harald
Harald WagenerAn der Alster 4220099 Hamburg*http://www.fcb-wilkens.com
This is nice, but You forgot t include Elements/YourTickets…
So I have. That’s becasue I was going to clean it up
before I submited it. Really, I should use a modified version of
MyTickets, which if it doesn’t have a User variable passed to it,
works just the same way as the current MyTickets, and if it does,
works like YourTickets. I should also remove all the
colour stuff before I send this, but it’s after 5pm and I
should have gone home!
s
YourTickets (1.23 KB)
All,
Please forgive my ignorance. I gave this a try, and put YourTickets in
/usr/local/rt2/local/WebRT/html/Ticket/Elements/, but am getting the
following error when trying to access http://rt2/manager.html:
error in file: /usr/local/rt2/WebRT/data/obj/LOCAL/manager.html
line 34: Unable to locate component “/Elements/YourTickets”
context:
…
30: ‘);
31: $m->comp(’/Elements/CustomHomepageHeader’, %ARGS);
32: $_out->(’
33: ‘);
34: $m->comp(’/Elements/YourTickets’, User=>$Nobody);
35: $_out->(’
36:
37: ');
38: while ( my $User = $Users->Next()) {
…
component stack: /manager.html [local]
/autohandler [standard]
code stack: /usr/local/rt2/WebRT/data/obj/LOCAL/manager.html:34
/usr/local/rt2/WebRT/data/obj/STANDARD/autohandler:69
What am I missing? The customized stuff should go in $RTHOME/local/...,
should it not?
Best Regards,
CamronFrom: rt-users-admin@lists.fsck.com
[mailto:rt-users-admin@lists.fsck.com]On Behalf Of Stephen Gower
Sent: Wednesday, April 24, 2002 06:19
To: rt-users@lists.fsck.com
Subject: Re: [rt-users] Manager’s homepage
This is nice, but You forgot t include Elements/…
So I have. That’s becasue I was going to clean it up
before I submited it. Really, I should use a modified version of
MyTickets, which if it doesn’t have a User variable passed to it,
works just the same way as the current MyTickets, and if it does,
works like YourTickets. I should also remove all the
colour stuff before I send this, but it’s after 5pm and I
should have gone home!
s
I had a similar problem with the HeadsUp add-on. The explanation
I received might be helpful to you.
http://lists.fsck.com/pipermail/rt-users/2002-March/007219.html
ttfn,
kevin
Kevin,
Thanks for the info, but the difference is that the
/usr/local/rt2/WebRT/html/Ticket/Elements/ directory already exists. Any
other ideas?
Best Regards,
CamronFrom: Ferguson, Kevin [mailto:KFerguso@chi.navtech.com]
Sent: Wednesday, April 24, 2002 09:33
To: ‘Camron W. Fox’
Cc: rt-users@lists.fsck.com
Subject: RE: [rt-users] Manager’s homepage
I had a similar problem with the HeadsUp add-on. The explanation
I received might be helpful to you.
http://lists.fsck.com/pipermail/rt-users/2002-March/007219.html
ttfn,
kevin
-----Original Message-----
From: Camron W. Fox [mailto:cwfox@fujitsu.com]
Sent: Wednesday, April 24, 2002 1:50 PM
To: rt-users@lists.fsck.com
Subject: RE: [rt-users] Manager’s homepage
All,
Please forgive my ignorance. I gave this a try, and put
YourTickets in
/usr/local/rt2/local/WebRT/html/Ticket/Elements/, but am getting the
following error when trying to access http://rt2/manager.html:
error in file: /usr/local/rt2/WebRT/data/obj/LOCAL/manager.html
line 34: Unable to locate component “/Elements/YourTickets”
context:
…
30: ‘);
31: $m->comp(’/Elements/CustomHomepageHeader’, %ARGS);
32: $_out->(’
33: ‘);
34: $m->comp(’/Elements/YourTickets’, User=>$Nobody);
35: $_out->(’
36:
37: ');
38: while ( my $User = $Users->Next()) {
…
component stack: /manager.html [local]
/autohandler [standard]
code stack: /usr/local/rt2/WebRT/data/obj/LOCAL/manager.html:34
/usr/local/rt2/WebRT/data/obj/STANDARD/autohandler:69
What am I missing? The customized stuff should go in
$RTHOME/local/…,
should it not?
Best Regards,
Camron
-----Original Message-----
From: rt-users-admin@lists.fsck.com
[mailto:rt-users-admin@lists.fsck.com]On Behalf Of Stephen Gower
Sent: Wednesday, April 24, 2002 06:19
To: rt-users@lists.fsck.com
Subject: Re: [rt-users] Manager’s homepage
This is nice, but You forgot t include Elements/…
So I have. That’s becasue I was going to clean it up
before I submited it. Really, I should use a modified version of
MyTickets, which if it doesn’t have a User variable passed to it,
works just the same way as the current MyTickets, and if it does,
works like YourTickets. I should also remove all the
colour stuff before I send this, but it’s after 5pm and I
should have gone home!
s
rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users
It’s not just the directory but the initial html file that has
to exist in the main component directories. In my case,
I needed the index.html file to exist. I’m guessing that
in your case you need the manager.html file to exist
in /usr/local/rt2/WebRT/html/Ticket/Elements/. It can
be a zero-length file; the filename just needs to be there
so it can be overridden.
Just my two cents: I have not implemented the Manager’s Homepage.
hth,
kevin
I’ve never really played around with Perl, let alone HTML::Mason,
but by hacking around the main homepage, I came up with the
attached, which is in /path/to/rt/local/WebRT/html/
It prints out the 25 Highest Priority Tickets for “Nobody”, and
then for each of the Team members (those people who have
permission to do things).
Myself (Team Leader) and my manager, can use it to see who is
working on what.
Stephen
This is against what version of RT? I tested on 2.0.13 and got the error below:
Mason error
error in file: /opt/rt2/WebRT/data/obj/LOCAL/manager.html
line 34: Unable to locate component “/Elements/YourTickets”
context:
…
30: ‘);
31: $m->comp(’/Elements/CustomHomepageHeader’, %ARGS);
32: $_out->(’
33: ‘);
34: $m->comp(’/Elements/YourTickets’, User=>$Nobody);
35: $_out->(’
36:
37: ');
38: while ( my $User = $Users->Next()) {
…
component stack: /manager.html [local]
/autohandler [local]
code stack: /opt/rt2/WebRT/data/obj/LOCAL/manager.html:34
/opt/rt2/WebRT/data/obj/LOCAL/autohandler:69
misc info: error while executing /manager.html [local]:
-Wash
Odhiambo Washington wash@wananchi.com “The box said ‘Requires
Wananchi Online Ltd. www.wananchi.com Windows 95, NT, or better,’
Tel: 254 2 313985-9 Fax: 254 2 313922 so I installed FreeBSD.”
GSM: 254 72 743 223 GSM: 254 733 744 121 This sig is McQ! 
Uncle Ed’s Rule of Thumb:
Never use your thumb for a rule. You’ll either hit it with a
hammmer or get a splinter in it.
This is against what version of RT? I tested on 2.0.13 and got the error below:
Worked okay when I put in YourTickets - please ignore error report.
-Wash
Odhiambo Washington wash@wananchi.com “The box said ‘Requires
Wananchi Online Ltd. www.wananchi.com Windows 95, NT, or better,’
Tel: 254 2 313985-9 Fax: 254 2 313922 so I installed FreeBSD.”
GSM: 254 72 743 223 GSM: 254 733 744 121 This sig is McQ! 
If you want to know what god thinks of money, just look at the people
he gave it to.
– Dorthy Parker
All,
Please forgive my ignorance. I gave this a try, and put YourTickets in
/usr/local/rt2/local/WebRT/html/Ticket/Elements/, but am getting the
following error when trying to access http://rt2/manager.html:
chmod ugo+rx YourTickets
chmod ugo+rx manager.html
error in file: /usr/local/rt2/WebRT/data/obj/LOCAL/manager.html
line 34: Unable to locate component “/Elements/YourTickets”
context:
…
30: ‘);
31: $m->comp(’/Elements/CustomHomepageHeader’, %ARGS);
32: $_out->(’
33: ‘);
34: $m->comp(’/Elements/YourTickets’, User=>$Nobody);
35: $_out->(’
36:
37: ');
38: while ( my $User = $Users->Next()) {
…
component stack: /manager.html [local]
/autohandler [standard]
code stack: /usr/local/rt2/WebRT/data/obj/LOCAL/manager.html:34
/usr/local/rt2/WebRT/data/obj/STANDARD/autohandler:69
What am I missing? The customized stuff should go in $RTHOME/local/…,
should it not?
Best Regards,
Camron
-----Original Message-----
From: rt-users-admin@lists.fsck.com
[mailto:rt-users-admin@lists.fsck.com]On Behalf Of Stephen Gower
Sent: Wednesday, April 24, 2002 06:19
To: rt-users@lists.fsck.com
Subject: Re: [rt-users] Manager’s homepage
This is nice, but You forgot t include Elements/…
So I have. That’s becasue I was going to clean it up
before I submited it. Really, I should use a modified version of
MyTickets, which if it doesn’t have a User variable passed to it,
works just the same way as the current MyTickets, and if it does,
works like YourTickets. I should also remove all the
colour stuff before I send this, but it’s after 5pm and I
should have gone home!
s
rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users
-Wash
Odhiambo Washington wash@wananchi.com “The box said ‘Requires
Wananchi Online Ltd. www.wananchi.com Windows 95, NT, or better,’
Tel: 254 2 313985-9 Fax: 254 2 313922 so I installed FreeBSD.”
GSM: 254 72 743 223 GSM: 254 733 744 121 This sig is McQ! 
Save the whales. Collect the whole set.