<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 21, 2013 at 11:14 PM, Bradley Bell <span dir="ltr"><<a href="mailto:bradleyb@uw.edu" target="_blank">bradleyb@uw.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">As far as I can tell, there is no easy way for a scrip to provide<br>
feedback to end users.<br>
For example if I have a scrip that reverts a status change, the<br>
scrip's Commit method could return (1, "Feedback Here") and then in<br>
the UI, instead of just seeing:<br>
<br>
* Ticket 8: Status changed from 'open' to 'stalled'<br>
<br>
They would also see<br>
* Ticket 8: Can't be stalled without a Due date. Status changed back to 'open'<br>
<br>
or whatever.<br>
<br>
Is there something that already provides this functionality or would a<br>
patch be welcomed?<br></blockquote><div><br></div><div style>1) Scrips are not best for such things. New RT allows you to prevent operations much easily in UI by using checks_failure (grep) and callbacks.</div><div><br></div>
<div style>2) Patch is not bad. I want user visible feedback from Scrips too.</div><div style><br></div><div style>3) Return value of Prepare/Commit methods is not good candidate. Mostly because of backwards compatibility. I think a method in scrip action's class can be used, for example AddMessage or something like that.</div>
<div><br></div><div style>4) If you want to see it merged into RT core then it's better to implement something dirty and quick, publish it for review and comments on rt-devel@ list.</div><div style><br></div><div> </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888">
--<br>
Bradley Bell<br>
Classroom Support Services | University of Washington<br>
035 Kane Hall | Box 353095 Seattle, WA 98195-3095<br>
p 206.543.9900 | f 206.685.7892 | <a href="http://www.css.washington.edu" target="_blank">www.css.washington.edu</a><br>
<br>
<br>
--<br>
RT Training in Seattle, June 19-20: <a href="http://bestpractical.com/training" target="_blank">http://bestpractical.com/training</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Best regards, Ruslan.
</div></div>