Re: subcomponents

William Cox <[email protected]> Mon, 09 Jan 2017 21:14:21 +0000
Newsgroups gmane.comp.web.mason.user
Message-ID <CAN+TG=yWL7_Kuba=CK1sNCeu7eMjF+0gt9OZiHRpSDm+xF=_DQ@mail.gmail.com>
--===============3225824541524264006==
Content-Type: multipart/alternative; boundary=001a11414ca4900d570545afda6c

--001a11414ca4900d570545afda6c
Content-Type: text/plain; charset=UTF-8

Hiram,

you likely are dealing with a call to an embedded component:
https://metacpan.org/pod/distribution/HTML-Mason/lib/HTML/Mason/Devel.pod#EMBEDDED-COMPONENTS

the ".is_valid_sshkey" should be found as <%def .is_valid_subkey>...<%/def>
within the same file

On Mon, Jan 9, 2017 at 4:10 PM Seb <[email protected]> wrote:

>
> Hi,
>
>
> > thanks for that Seb, but what if I'm not finding a file called
> > .is_valid_sshkey?
> >
> > using:
> > sudo find / -type f -iname ".is_valid_sshkey" -ls
>
> There could be a suffix, such as .mas, which would not be found with your
> syntax. Example:
>
> >mkdir toto
> >touch toto/.hidden
> >find . -type f -iname ".hidden" -ls
> 217773    0 -rw-r--r--   1 seb      seb   0 Jan  9 22:04 ./toto/.hidden
> >find . -type f -iname ".hid" -ls
> >find . -type f -iname ".hid*" -ls
> 217773    0 -rw-r--r--   1 seb      seb   0 Jan  9 22:04 ./toto/.hidden
>
> So I suggest you try this:
>
> sudo find / -type f -iname ".is_valid_sshkey*" -ls
>
>
> Seb.
>
>
>
> >
> > On Mon, Jan 9, 2017 at 2:47 PM, Seb <[email protected]> wrote:
> >
> >>
> >> Hi Hiram,
> >>
> >>
> >> my $is_valid = $m->comp(".is_valid_sshkey", sshkey => $ssh2, uidnumber
> =>
> >>> $employeeNumber, );
> >>>
> >>> As I understand it, this is a mason subcomponent, but what isn't clear
> to
> >>> me is the ".is_valid_sshkey"
> >>>
> >>
> >> The line means to use a Mason component whose code resides in the file
> >> named ".is_valid_sshkey", which could also be written
> ./.is_valid_sshkey .
> >> You will find this (hidden) file in the same directory as the one from
> >> which the code is extracted.
> >>
> >>
> >> Seb.
> >>
> >
> >
> >
> >
>
>
> ------------------------------------------------------------------------------
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today. http://sdm.link/xeonphi
> _______________________________________________
> Mason-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mason-users
>
-- 
William Cox

e: [email protected]

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS d- s+:+() a C++(++++)$ UBLC(++)$
P+++(++++)$ L++(+++)$ !E--- W++(+++)$
!N !o? K--? !w--- !O M++ !V- PS-(--)@ PE+()
Y+ !PGP t++ !5 X+++ !R tv(+) b+>++
DI+(++) D+() G e h--- r+++ y+++>++++
------END GEEK CODE BLOCK------

--001a11414ca4900d570545afda6c
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div><div>Hiram,<br><br></div>you likely are dealing with =
a call to an embedded component: <a href=3D"https://metacpan.org/pod/distri=
bution/HTML-Mason/lib/HTML/Mason/Devel.pod#EMBEDDED-COMPONENTS">https://met=
acpan.org/pod/distribution/HTML-Mason/lib/HTML/Mason/Devel.pod#EMBEDDED-COM=
PONENTS</a><br><br></div>the &quot;.is_valid_sshkey&quot; should be found a=
s &lt;%def .is_valid_subkey&gt;...&lt;%/def&gt; within the same file<br></d=
iv><br><div class=3D"gmail_quote"><div dir=3D"ltr">On Mon, Jan 9, 2017 at 4=
:10 PM Seb &lt;<a href=3D"mailto:[email protected]">[email protected]</a>&gt; wrote:<br><=
/div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-le=
ft:1px #ccc solid;padding-left:1ex"><br class=3D"gmail_msg">
Hi,<br class=3D"gmail_msg">
<br class=3D"gmail_msg">
<br class=3D"gmail_msg">
&gt; thanks for that Seb, but what if I&#39;m not finding a file called<br =
class=3D"gmail_msg">
&gt; .is_valid_sshkey?<br class=3D"gmail_msg">
&gt;<br class=3D"gmail_msg">
&gt; using:<br class=3D"gmail_msg">
&gt; sudo find / -type f -iname &quot;.is_valid_sshkey&quot; -ls<br class=
=3D"gmail_msg">
<br class=3D"gmail_msg">
There could be a suffix, such as .mas, which would not be found with your<b=
r class=3D"gmail_msg">
syntax. Example:<br class=3D"gmail_msg">
<br class=3D"gmail_msg">
&gt;mkdir toto<br class=3D"gmail_msg">
&gt;touch toto/.hidden<br class=3D"gmail_msg">
&gt;find . -type f -iname &quot;.hidden&quot; -ls<br class=3D"gmail_msg">
217773=C2=A0 =C2=A0 0 -rw-r--r--=C2=A0 =C2=A01 seb=C2=A0 =C2=A0 =C2=A0 seb=
=C2=A0 =C2=A00 Jan=C2=A0 9 22:04 ./toto/.hidden<br class=3D"gmail_msg">
&gt;find . -type f -iname &quot;.hid&quot; -ls<br class=3D"gmail_msg">
&gt;find . -type f -iname &quot;.hid*&quot; -ls<br class=3D"gmail_msg">
217773=C2=A0 =C2=A0 0 -rw-r--r--=C2=A0 =C2=A01 seb=C2=A0 =C2=A0 =C2=A0 seb=
=C2=A0 =C2=A00 Jan=C2=A0 9 22:04 ./toto/.hidden<br class=3D"gmail_msg">
<br class=3D"gmail_msg">
So I suggest you try this:<br class=3D"gmail_msg">
<br class=3D"gmail_msg">
sudo find / -type f -iname &quot;.is_valid_sshkey*&quot; -ls<br class=3D"gm=
ail_msg">
<br class=3D"gmail_msg">
<br class=3D"gmail_msg">
Seb.<br class=3D"gmail_msg">
<br class=3D"gmail_msg">
<br class=3D"gmail_msg">
<br class=3D"gmail_msg">
&gt;<br class=3D"gmail_msg">
&gt; On Mon, Jan 9, 2017 at 2:47 PM, Seb &lt;<a href=3D"mailto:[email protected]" =
class=3D"gmail_msg" target=3D"_blank">[email protected]</a>&gt; wrote:<br class=3D=
"gmail_msg">
&gt;<br class=3D"gmail_msg">
&gt;&gt;<br class=3D"gmail_msg">
&gt;&gt; Hi Hiram,<br class=3D"gmail_msg">
&gt;&gt;<br class=3D"gmail_msg">
&gt;&gt;<br class=3D"gmail_msg">
&gt;&gt; my $is_valid =3D $m-&gt;comp(&quot;.is_valid_sshkey&quot;, sshkey =
=3D&gt; $ssh2, uidnumber =3D&gt;<br class=3D"gmail_msg">
&gt;&gt;&gt; $employeeNumber, );<br class=3D"gmail_msg">
&gt;&gt;&gt;<br class=3D"gmail_msg">
&gt;&gt;&gt; As I understand it, this is a mason subcomponent, but what isn=
&#39;t clear to<br class=3D"gmail_msg">
&gt;&gt;&gt; me is the &quot;.is_valid_sshkey&quot;<br class=3D"gmail_msg">
&gt;&gt;&gt;<br class=3D"gmail_msg">
&gt;&gt;<br class=3D"gmail_msg">
&gt;&gt; The line means to use a Mason component whose code resides in the =
file<br class=3D"gmail_msg">
&gt;&gt; named &quot;.is_valid_sshkey&quot;, which could also be written ./=
.is_valid_sshkey .<br class=3D"gmail_msg">
&gt;&gt; You will find this (hidden) file in the same directory as the one =
from<br class=3D"gmail_msg">
&gt;&gt; which the code is extracted.<br class=3D"gmail_msg">
&gt;&gt;<br class=3D"gmail_msg">
&gt;&gt;<br class=3D"gmail_msg">
&gt;&gt; Seb.<br class=3D"gmail_msg">
&gt;&gt;<br class=3D"gmail_msg">
&gt;<br class=3D"gmail_msg">
&gt;<br class=3D"gmail_msg">
&gt;<br class=3D"gmail_msg">
&gt;<br class=3D"gmail_msg">
<br class=3D"gmail_msg">
---------------------------------------------------------------------------=
---<br class=3D"gmail_msg">
Developer Access Program for Intel Xeon Phi Processors<br class=3D"gmail_ms=
g">
Access to Intel Xeon Phi processor-based developer platforms.<br class=3D"g=
mail_msg">
With one year of Intel Parallel Studio XE.<br class=3D"gmail_msg">
Training and support from Colfax.<br class=3D"gmail_msg">
Order your platform today. <a href=3D"http://sdm.link/xeonphi" rel=3D"noref=
errer" class=3D"gmail_msg" target=3D"_blank">http://sdm.link/xeonphi</a><br=
 class=3D"gmail_msg">
_______________________________________________<br class=3D"gmail_msg">
Mason-users mailing list<br class=3D"gmail_msg">
<a href=3D"mailto:[email protected]" class=3D"gmail_msg" ta=
rget=3D"_blank">[email protected]</a><br class=3D"gmail_msg=
">
<a href=3D"https://lists.sourceforge.net/lists/listinfo/mason-users" rel=3D=
"noreferrer" class=3D"gmail_msg" target=3D"_blank">https://lists.sourceforg=
e.net/lists/listinfo/mason-users</a><br class=3D"gmail_msg">
</blockquote></div><div dir=3D"ltr">-- <br></div><div data-smartmail=3D"gma=
il_signature"><div dir=3D"ltr">William Cox<br><br>e: <a href=3D"mailto:mydi=
[email protected]">[email protected]</a><br><br>-----BEGIN GEEK CODE BL=
OCK-----<br>Version: 3.1<br>GCS d- s+:+() a C++(++++)$ UBLC(++)$<br>P+++(++=
++)$ L++(+++)$ !E--- W++(+++)$<br>!N !o? K--? !w--- !O M++ !V- PS-(--)@ PE+=
()<br>Y+ !PGP t++ !5 X+++ !R tv(+) b+&gt;++<br>DI+(++) D+() G e h--- r+++ y=
+++&gt;++++<br>------END GEEK CODE BLOCK------<br></div></div>

--001a11414ca4900d570545afda6c--


--===============3225824541524264006==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
--===============3225824541524264006==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users

--===============3225824541524264006==--