<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Jun 15, 2013 at 5:04 AM, Jean-Christophe Boggio <span dir="ltr"><<a href="mailto:rt-users@thefreecat.org" target="_blank">rt-users@thefreecat.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Le 14/06/2013 20:58, Kevin Falcone a écrit :<div class="im"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It actually wants an RT::CurrentUser, but RT will do the conversion<br>
for you.<br>
</blockquote>
<br></div>
Thanks for this info, I'll see if I can do better. Any hint for the new() methods ? Where are they declared ?<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
As a side note, the RT->Init() is very long, mainly because of<br>
RT::I18N->Init()<br>
</blockquote>
<br>
This surprises me, what's slow and how did you profile it?<br>
</blockquote>
<br></div>
I don't really know. I replaced my RT::Init() call with every line from<br>
RT::Init() and placed a warn between every line, then I tailed -f /var/log/apache2/error.log. For RT::I18N->Init() it<br>
took several seconds while the rest was instantaneous. So I commented out that line.</blockquote><div><br></div><div><br></div><div style>I can believe that. Our po files getting big and loading them takes time. I have "loading po files on demand" patch on my todo, but not sure when I get to it.</div>
<div style> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
You could limit the languages that RT loads, but that may not do<br>
what you want.  You may also run into really weird errors depending<br>
on what parts of RT you invoke.<br>
</blockquote>
<br></div>
I just want to comment/correspond tickets.<br>
<br>
Maybe in the future I will use the library to create groups (currently I create them with RT::CLI and modify them in the DB because I use special "type" and "instance" values -- for "UserDefined" domain only).</blockquote>
<div><br></div><div style>Note that Type is going away in RT 4.2, so a group would be Domain, Name and Instance. I think you should consider using RT::Attribute.</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>
<br>
JC</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
-- <br>
RT Training in Seattle, June 19-20: <a href="http://bestpractical.com/training" target="_blank">http://bestpractical.com/<u></u>training</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Best regards, Ruslan.
</div></div>