<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
&nbsp;Hi,
<div>not sure what you mean by 'parent controller' as a chain endpoint action (the thing that maps to a URI) consists of chain elements that don't map to an URI, so uri_for for those makes no sense.</div>
<div><br>
</div>
Best regards, Alex<br>
</div>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div>
<div></div>
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div class="BodyFragment"><font size="2" face="Arial">
<div class="PlainText"><span style="color: rgb(0, 0, 0); font-family: arial; font-size: 8pt;"><span lang="EN-US"><strong>T-SYSTEMS AUSTRIA GESMBH<br>
</strong></span></span><b><span style="font-size: 8pt; font-family: &quot;Arial&quot;, sans-serif; color: black;" lang="EN-US"></span></b><span style="font-size: 8pt; font-family: &quot;Arial&quot;, sans-serif; color: black;" lang="EN-US">PU Cyber Security<br>
Network Architecture</span><span style="color: rgb(0, 0, 0); font-family: arial; font-size: 8pt;"><span lang="EN-US"><br>
Operation Manager Authentication<br>
Rennweg 97-99, A-1030 Vienna<br>
+43 57057 4320 (phone)<br>
+43 676 8642 4320 (mobile)<br>
</span></span><span style="font-family:arial; font-size:8pt"><span style="color: black;"><font style="color: rgb(0, 0, 0); font-family: arial;">E-mail: alexander.hartmaier@t-systems.com</font></span></span><span style="font-family:arial; font-size:8pt"><span class="ms-rteThemeForeColor-5-0"><br>
</span></span><span style="font-family:arial; font-size:8pt"><span style="color: black;" lang="EN-US"><a tabindex="0"><font style="" color="000000">Internet: www.t-systems.at
<br>
Blog: blog.t-systems.at<br>
Social Media: Facebook, Linkedin, Twitter</font><br>
</a><br>
</span></span><span style="font-family:arial; font-size:8pt"><span style="color: black;" lang="EN-US"><strong style="color: rgb(0, 0, 0);">BIG CHANGES START SMALL – CONSERVE RESOURCES BY NOT PRINTING EVERY E-MAIL.</strong><br style="color: rgb(0, 0, 0);">
<span lang="EN-US"><span style="font-family:arial"><span style="color: black;" lang="EN-US"><br style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 0); font-family: arial;" lang="EN-US"><span></span><span></span></span></span></span></span></span></span><span style="font-family:arial; font-size:8pt"><span style="color: black;" lang="EN-US"><span lang="EN-US"><span style="font-family:arial"><span style="color: black;" lang="EN-US"><span style="color: rgb(0, 0, 0); font-family: arial;" lang="EN-US"><font class="ms-rteThemeForeColor-1-4" size="2"><font size="2" face="Arial"><span style="font-family:arial; font-size:8pt"><span style="color: black;" lang="EN-US"><span lang="EN-US"><span style="font-family:arial"><span style="color: black;" lang="EN-US"><font class="ms-rteThemeForeColor-1-4" face="Arial">****************************************************************************************************************</font></span></span></span></span></span></font></font></span><br class="ms-rteThemeForeColor-1-4">
<span class="ms-rteThemeForeColor-1-4">T-Systems Austria GesmbH, Rennweg 97-99, A-1030&nbsp;Vienna</span><br class="ms-rteThemeForeColor-1-4">
<span class="ms-rteThemeForeColor-1-4">Commercial Court Vienna, FN 79340b</span><font class="ms-rteThemeForeColor-1-4" face="Arial"><br>
****************************************************************************************************************<br>
Notice: This transmittal and/or attachments may be privileged or confidential. It is
<br>
intended solely for the addressee named above. If you received this transmittal in error,
<br>
please notify us immediately by reply and delete this message and all its attachments.
<br>
Thank you. <br>
****************************************************************************************************************</font><font class="ms-rteThemeForeColor-1-4" face="Arial"><br>
</font></span></span></span></span></span></div>
</font></div>
</div>
</div>
</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Von:</b> catalyst-bounces@lists.scsys.co.uk &lt;catalyst-bounces@lists.scsys.co.uk&gt; im Auftrag von Nathan Gray &lt;kolibrie@cpan.org&gt;<br>
<b>Gesendet:</b> Montag, 14. Juni 2021 21:23<br>
<b>An:</b> catalyst@lists.scsys.co.uk &lt;catalyst@lists.scsys.co.uk&gt;<br>
<b>Betreff:</b> [Catalyst] plugin for generating URIs that is chaining-aware</font>
<div>&nbsp;</div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">I've been working on a Catalyst application, and have come<br>
across a few places that appear difficult to generate a URI<br>
for using uri_for().&nbsp; I'm thinking of creating a plugin that<br>
can provide the functionality I'm looking for.<br>
<br>
In particular, when I am in a controller whose actions are<br>
chained, I would like to be able to be able to generate URIs<br>
for:<br>
- actions in the parent controller (earlier in the chain)<br>
- actions in the controller we are in<br>
- actions in a child controller (later in the chain)<br>
- actions in a non-related controller<br>
<br>
I've been able to generate the URIs I want using uri_for(),<br>
except for actions in a parent controller (earlier in the<br>
chain).&nbsp; The syntax to create some of the other URIs is a bit<br>
complicated, and I find I have to look it up every time.&nbsp; The<br>
plugin Catalyst::Plugin::URI provides a simplified syntax.<br>
<br>
My idea is to create a plugin with an interface something<br>
like this:<br>
<br>
&nbsp;&nbsp;&nbsp; # URI for 'list' action on the current controller<br>
&nbsp;&nbsp;&nbsp; $c-&gt;internal_uri(action =&gt; 'list');<br>
<br>
&nbsp;&nbsp;&nbsp; # URI for 'view' action on the parent controller (up the chain)<br>
&nbsp;&nbsp;&nbsp; $c-&gt;internal_uri(controller =&gt; '..', action =&gt; 'view');<br>
<br>
&nbsp;&nbsp;&nbsp; # URI for 'list' action on a child or unrelated controller<br>
&nbsp;&nbsp;&nbsp; $c-&gt;internal_uri(controller =&gt; $name, action =&gt; 'list', captures =&gt;<br>
\@values);<br>
<br>
Any advice or perspectives that would help me create such a<br>
plugin, or make it more useful?<br>
<br>
-kolibrie<br>
<br>
_______________________________________________<br>
List: Catalyst@lists.scsys.co.uk<br>
Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>
Searchable archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/">
http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>
Dev site: <a href="http://dev.catalyst.perl.org/">http://dev.catalyst.perl.org/</a><br>
</div>
</span></font></div>
</body>
</html>