Re: [rt-users] PErl question for RT Status values

2010-02-01 Thread Joop van de Wege
Ken Crocker wrote:
 To list,
 
 In the past (3.6.4) I was able to add a couple values for my @active 
 ticket statuses by modifying the RT_SiteCOnfig.pm values thus:
 
 @ActiveStatus = ('new', 'open', 'pending QA', 'QA approvd', 'stalled') 
 unless @ActiveStatus;
 
 Now, with the more stringent syntax, I have this:
 
 Set(@ActiveStatus, (qw(''new' 'open' 'pending QA' 'QA approvd' 'stalled')));
 
 The problem is that the single quotes end up as part of the value. I 
 can't just remove them because I need to protect the integreity of two 
 values that include an embedded space ('pending QA' and 'QA approvd').
Did you try to use double quotes?, like
Set(@ActiveStatus, (qw('new' 'open' 'pending QA' 'QA approvd' 
'stalled')));


Regards,

Joop

___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com

2010 RT Training Sessions!
San Francisco, CA, USA - Feb 22  23
Dublin, Ireland - Mar 15  16
Boston, MA, USA - April 5  6
Washington DC, USA - Oct 25  26

Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] PErl question for RT Status values

2010-02-01 Thread Ken Crocker

Joop,

No. I waslooking thru _Perl for Dummies_ and _Learning Perl_ and 
coul;dn't find any reference for the set command. I'll try that now. 
Thanks.


Kenn
LBNL

On 2/1/2010 12:15 PM, Joop van de Wege wrote:

Ken Crocker wrote:

To list,

In the past (3.6.4) I was able to add a couple values for my @active 
ticket statuses by modifying the RT_SiteCOnfig.pm values thus:


@ActiveStatus = ('new', 'open', 'pending QA', 'QA approvd', 
'stalled') unless @ActiveStatus;


Now, with the more stringent syntax, I have this:

Set(@ActiveStatus, (qw(''new' 'open' 'pending QA' 'QA approvd' 
'stalled')));


The problem is that the single quotes end up as part of the value. I 
can't just remove them because I need to protect the integreity of 
two values that include an embedded space ('pending QA' and 'QA 
approvd').

Did you try to use double quotes?, like
Set(@ActiveStatus, (qw('new' 'open' 'pending QA' 'QA approvd' 
'stalled')));



Regards,

Joop


___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com

2010 RT Training Sessions!
San Francisco, CA, USA - Feb 22  23
Dublin, Ireland - Mar 15  16
Boston, MA, USA - April 5  6
Washington DC, USA - Oct 25  26

Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Re: [rt-users] PErl question for RT Status values

2010-02-01 Thread Ken Crocker

Joop,

Nope. Didn't work. It looks like once I code Set, it takes everything 
inside theinner paranthesis literally.


I suppose I /*COULD*/ go into RT_Config and change it back to the old 
syntax so my override in RT_SiteConfig would work. But I don't like that 
because I like to think of RT_Config as untouchable. A local version 
won't work either. I found it rather frustrating that there was no 
reference to the Set command in either of the books I looked at.  I'll 
try google next.


Kenn
LBNL


On 2/1/2010 12:15 PM, Joop van de Wege wrote:

Ken Crocker wrote:
  

To list,

In the past (3.6.4) I was able to add a couple values for my @active 
ticket statuses by modifying the RT_SiteCOnfig.pm values thus:


@ActiveStatus = ('new', 'open', 'pending QA', 'QA approvd', 'stalled') 
unless @ActiveStatus;


Now, with the more stringent syntax, I have this:

Set(@ActiveStatus, (qw(''new' 'open' 'pending QA' 'QA approvd' 'stalled')));

The problem is that the single quotes end up as part of the value. I 
can't just remove them because I need to protect the integreity of two 
values that include an embedded space ('pending QA' and 'QA approvd').


Did you try to use double quotes?, like
Set(@ActiveStatus, (qw('new' 'open' 'pending QA' 'QA approvd' 
'stalled')));



Regards,

Joop

___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com

2010 RT Training Sessions!
San Francisco, CA, USA - Feb 22  23
Dublin, Ireland - Mar 15  16
Boston, MA, USA - April 5  6
Washington DC, USA - Oct 25  26

Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


  
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com

2010 RT Training Sessions!
San Francisco, CA, USA - Feb 22  23
Dublin, Ireland - Mar 15  16
Boston, MA, USA - April 5  6
Washington DC, USA - Oct 25  26

Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Re: [rt-users] PErl question for RT Status values

2010-02-01 Thread Kevin Falcone
On Mon, Feb 01, 2010 at 11:45:31AM -0800, Ken Crocker wrote:
 To list,
 
 In the past (3.6.4) I was able to add a couple values for my @active 
 ticket statuses by modifying the RT_SiteCOnfig.pm values thus:
 
 @ActiveStatus = ('new', 'open', 'pending QA', 'QA approvd', 'stalled') 
 unless @ActiveStatus;
 
 Now, with the more stringent syntax, I have this:
 
 Set(@ActiveStatus, (qw(''new' 'open' 'pending QA' 'QA approvd' 'stalled')));

perldoc -f qw will tell you more about what it does (and why it is
huring yout)

Just do

Set(@ActiveStatus, ('new', 'open', 'pending QA', 'QA approvd', 'stalled'));

-kevin



pgp2ERSl1J8sG.pgp
Description: PGP signature
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com

2010 RT Training Sessions!
San Francisco, CA, USA - Feb 22  23
Dublin, Ireland - Mar 15  16
Boston, MA, USA - April 5  6
Washington DC, USA - Oct 25  26

Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Re: [rt-users] PErl question for RT Status values

2010-02-01 Thread Jeff Voskamp
On 02/01/2010 02:45 PM, Ken Crocker wrote:
 To list,

 In the past (3.6.4) I was able to add a couple values for my @active
 ticket statuses by modifying the RT_SiteCOnfig.pm values thus:

 @ActiveStatus = ('new', 'open', 'pending QA', 'QA approvd', 'stalled')
 unless @ActiveStatus;

 Now, with the more stringent syntax, I have this:

 Set(@ActiveStatus, (qw(''new' 'open' 'pending QA' 'QA approvd' 'stalled')));

 The problem is that the single quotes end up as part of the value. I
 can't just remove them because I need to protect the integreity of two
 values that include an embedded space ('pending QA' and 'QA approvd').

 I'm only a perl newbie, so I'm not sure how to get around this problem.
 Can anyone out there show me the correct syntax to add my two status
 values and keep the integrity of the embedded space?

 Thanks.

 Kenn
 LBNL

Try
Set( @ActiveStatus, ('new', 'open', 'pending QA', 'QA approvd', 'stalled'));

You can use quotes or qw, but not both.

Jeff
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com

2010 RT Training Sessions!
San Francisco, CA, USA - Feb 22  23
Dublin, Ireland - Mar 15  16
Boston, MA, USA - April 5  6
Washington DC, USA - Oct 25  26

Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] PErl question for RT Status values

2010-02-01 Thread Ken Crocker

Jeff,

AAAHHH! Thanks.

Kenn
LBNL

On 2/1/2010 12:50 PM, Jeff Voskamp wrote:

On 02/01/2010 02:45 PM, Ken Crocker wrote:
  

To list,

In the past (3.6.4) I was able to add a couple values for my @active
ticket statuses by modifying the RT_SiteCOnfig.pm values thus:

@ActiveStatus = ('new', 'open', 'pending QA', 'QA approvd', 'stalled')
unless @ActiveStatus;

Now, with the more stringent syntax, I have this:

Set(@ActiveStatus, (qw(''new' 'open' 'pending QA' 'QA approvd' 'stalled')));

The problem is that the single quotes end up as part of the value. I
can't just remove them because I need to protect the integreity of two
values that include an embedded space ('pending QA' and 'QA approvd').

I'm only a perl newbie, so I'm not sure how to get around this problem.
Can anyone out there show me the correct syntax to add my two status
values and keep the integrity of the embedded space?

Thanks.

Kenn
LBNL
   


Try
Set( @ActiveStatus, ('new', 'open', 'pending QA', 'QA approvd', 'stalled'));

You can use quotes or qw, but not both.

Jeff
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com

2010 RT Training Sessions!
San Francisco, CA, USA - Feb 22  23
Dublin, Ireland - Mar 15  16
Boston, MA, USA - April 5  6
Washington DC, USA - Oct 25  26

Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


  
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com

2010 RT Training Sessions!
San Francisco, CA, USA - Feb 22  23
Dublin, Ireland - Mar 15  16
Boston, MA, USA - April 5  6
Washington DC, USA - Oct 25  26

Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Re: [rt-users] PErl question for RT Status values

2010-02-01 Thread Ken Crocker

Kevin,

Thanks.

Kenn
LBNL

On 2/1/2010 12:46 PM, Kevin Falcone wrote:

On Mon, Feb 01, 2010 at 11:45:31AM -0800, Ken Crocker wrote:
  

To list,

In the past (3.6.4) I was able to add a couple values for my @active 
ticket statuses by modifying the RT_SiteCOnfig.pm values thus:


@ActiveStatus = ('new', 'open', 'pending QA', 'QA approvd', 'stalled') 
unless @ActiveStatus;


Now, with the more stringent syntax, I have this:

Set(@ActiveStatus, (qw(''new' 'open' 'pending QA' 'QA approvd' 'stalled')));



perldoc -f qw will tell you more about what it does (and why it is
huring yout)

Just do

Set(@ActiveStatus, ('new', 'open', 'pending QA', 'QA approvd', 'stalled'));

-kevin

  



___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com

2010 RT Training Sessions!
San Francisco, CA, USA - Feb 22  23
Dublin, Ireland - Mar 15  16
Boston, MA, USA - April 5  6
Washington DC, USA - Oct 25  26

Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com

2010 RT Training Sessions!
San Francisco, CA, USA - Feb 22  23
Dublin, Ireland - Mar 15  16
Boston, MA, USA - April 5  6
Washington DC, USA - Oct 25  26

Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com