Hey,<div><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I got one solution for my problem. But I am not sure this is the right approach:<br>
>From the second package, I used like this:<br>
<div class="im"><br>
<link rel="stylesheet" type="text/css"<br>
</div> tal:attributes="href python: view.url(context.__parent__,<br>
'@@/namespace.pkg1/style.css')" /><br></blockquote><div><br></div><div><br></div><div>You may want to use hurry.resource [1] for this. Checkout hurry.jquery [2] or hurry.extjs [3] to see how to use it.</div>
<div><br></div><div>Basically, you will be able to write, somewhere in namespace.pkg1...let's say resources.py:</div><div><br></div><div><div>from hurry.resource import Library, ResourceInclusion</div><div>resources_pkg1 = Library('static') # 'static' should be the name of a registered resourceDirectory</div>
<div><div><br></div><div>styles_pkg1 = ResourceInclusion(resources_pkg1, 'css/style.css')</div><div><br></div><div><br></div><div>And then, in namespace.pkg2, in some grok.View or grok.AddForm, grok.EditForm or whatever you need the resources:</div>
<div><br></div><div>from namespace.pkg1.resources import styles_pkg1</div><div><br></div><div>class MyView(grok.View):</div><div> .....</div><div> def update(self):</div><div> styles_pkg1.need()</div>
</div>
<div><br></div></div><div><br></div><div>And that's all. Hope it helps.</div><div><br></div><div>Best Regards</div><div><br></div><div>[1] <a href="http://pypi.python.org/pypi/hurry.resource/">http://pypi.python.org/pypi/hurry.resource/</a></div>
<div>[2] <a href="http://pypi.python.org/pypi/hurry.jquery/">http://pypi.python.org/pypi/hurry.jquery/</a></div><div>[3] <a href="http://pypi.python.org/pypi/hurry.extjs/">http://pypi.python.org/pypi/hurry.extjs/</a></div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5"><br>
Regards,<br>
Baiju M<br>
_______________________________________________<br>
Grok-dev mailing list<br>
<a href="mailto:Grok-dev@zope.org">Grok-dev@zope.org</a><br>
<a href="https://mail.zope.org/mailman/listinfo/grok-dev" target="_blank">https://mail.zope.org/mailman/listinfo/grok-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Santiago Videla<br><a href="http://www.linkedin.com/in/svidela">http://www.linkedin.com/in/svidela</a><br><br>Sigue la mata dando de que hablar siempre abajo y a la izquierda donde el pensamiento que se hace corazón resplandece con la palabra sencilla y humilde que l@s tod@s somos.<br>
</div>