[Zope] Zope document root or where do I keep my swfobject in Zope

Tres Seaver tseaver at palladion.com
Wed Aug 25 12:33:28 EDT 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tapas Mishra wrote:
> On Tue, Aug 17, 2010 at 10:45 PM, Tres Seaver <tseaver at palladion.com> wrote:
>> add-on "external file" products (google "zope external file"), or else
>> register the file as a "resource" in a product's configure.zcml::
>>
>>  <browser:resource name="my.js" file="my.js" />
>>
> 
> I am having following files as zcml files

<snip>

> which one are you pointing?

It depends on what is going to use the SWF file:

- - If a package has templates which reference that file directly, then
  I would place the SWF file in a subdirectory of that package and
  register it as a resource in the configure.zcml of that package.

- - If you expect the SWF file to be referenced from content, then I
  would register it as a resource in site.zcml.  In your case, the
  parts/instance/etc/site.zcml is the file, but it gets generated by
  the recipe which builds that part (maybe plone.recipe.zope2instance?)
  so you need to check with that recipe's documentation to find out how
  to add stuff to it safely.

- - If you want to mange it in the ZODB like other content, just upload
  it through the ZMI or the Plone folder contents UI, and skip the ZCML
  bit altogether.


Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkx1RdQACgkQ+gerLs4ltQ5JbwCfXl79s/k7uoqnKZh9DVfGUcZ8
+1gAn25vOyLkpbFKQ3AOS6oIxW7htR+S
=KVya
-----END PGP SIGNATURE-----



More information about the Zope mailing list