<div dir="ltr">could hack it by getting the parent object with the path of the child object.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jan 29, 2014 at 7:29 AM, Gaudenz Steinlin <span dir="ltr"><<a href="mailto:gaudenz@soziologie.ch" target="_blank">gaudenz@soziologie.ch</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">ajung <<a href="mailto:lists@zopyx.com">lists@zopyx.com</a>> writes:<br>
<br>
> Hi there,<br>
><br>
> I am implementing a customer shortname generation policy (comparable to<br>
> INameFromTitle) where the behavior implementing the policy must get hold of<br>
> the parent folder in order to fetch a configurable prefix that is used as<br>
> part of the generated id. I followed the implementation<br>
><br>
> <a href="http://stackoverflow.com/questions/7974285/is-there-a-way-to-extend-plone-dexteritys-inamefromtitle-behavior" target="_blank">http://stackoverflow.com/questions/7974285/is-there-a-way-to-extend-plone-dexteritys-inamefromtitle-behavior</a><br>

><br>
> Unfortunately the 'context' object is not acquisition wrapped. Is there some<br>
> way to get hold of the parent object in some way?<br>
<br>
</div>Maybe it's easier to create a more specific INameChooser adapter for the<br>
folders that will contain your objects. The INameChooser is adapted to<br>
the folder and the folder is thus available as self.context inside the<br>
adapter.<br>
<span class="HOEnZb"><font color="#888888"><br>
Gaudenz<br>
--<br>
Ever tried. Ever failed. No matter.<br>
Try again. Fail again. Fail better.<br>
~ Samuel Beckett ~<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Product-Developers mailing list<br>
<a href="mailto:Product-Developers@lists.plone.org">Product-Developers@lists.plone.org</a><br>
<a href="https://lists.plone.org/mailman/listinfo/plone-product-developers" target="_blank">https://lists.plone.org/mailman/listinfo/plone-product-developers</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Nathan Van Gheem<div>Solutions Architect</div><div>Wildcard Corp</div></div>
</div>