you can access lots of perl stuff without EVAL_PERL being turned on. For example you can call Bugzilla.get_fields to get fields that match the value that you want and they come back as perl fields. <br><br>That being said, I'm not sure if such an method currently exists for statuses as it does for fields. We have altered our version to treat all fields the same (custom and not) and therefore we can access the field_values via the field. I'm not sure if this is true for core bugzilla though. If it was once you got the field you could do field.legal_values. <br>
<br>The other option is you just add the method to an existing object that is exposed to template, in this example i was using Bugzilla, but you can expose other objects as well.<br><br>-Guy<br><br><br><div class="gmail_quote">
On Mon, Oct 19, 2009 at 8:24 AM, Gervase Markham <span dir="ltr"><<a href="mailto:gerv@mozilla.org">gerv@mozilla.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi guys,<br>
<br>
In a template, can I "break out" and start instantiating Bugzilla::Foo objects, or am I limited to what the controlling .cgi chooses to pass me? (I know EVAL_PERL isn't set in Bugzilla, so that route won't work.)<br>

<br>
(I want to call Bugzilla::Status->get_all to get information on status transitions that config.cgi isn't giving me.)<br>
<br>
Thanks,<br>
<br>
Gerv<br>
_______________________________________________<br>
dev-apps-bugzilla mailing list<br>
<a href="mailto:dev-apps-bugzilla@lists.mozilla.org" target="_blank">dev-apps-bugzilla@lists.mozilla.org</a><br>
<a href="https://lists.mozilla.org/listinfo/dev-apps-bugzilla" target="_blank">https://lists.mozilla.org/listinfo/dev-apps-bugzilla</a><br>
-<br>
To view or change your list settings, click here:<br>
<<a href="http://bugzilla.org/cgi-bin/mj_wwwusr?user=guy.pyrzak@gmail.com" target="_blank">http://bugzilla.org/cgi-bin/mj_wwwusr?user=guy.pyrzak@gmail.com</a>><br>
</blockquote></div><br>