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

2010-08-25 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tapas Mishra wrote:
 On Tue, Aug 17, 2010 at 10:45 PM, Tres Seaver tsea...@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  tsea...@palladion.com
Palladion Software   Excellence by Designhttp://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-

___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


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

2010-08-17 Thread Tapas Mishra
I am having a javascript which I am using in my site.
My server is Zope I am not able to find where should I keep the
javascript in it.
Can any one help?


-- 
Tapas
___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


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

2010-08-17 Thread Andreas Jung

Tapas Mishra wrote:

I am having a javascript which I am using in my site.
My server is Zope I am not able to find where should I keep the
javascript in it.
Can any one help?



Check the browser:resource ZCML directive.

-aj
attachment: lists.vcf___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


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

2010-08-17 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tapas Mishra wrote:
 I am having a javascript which I am using in my site.
 My server is Zope I am not able to find where should I keep the
 javascript in it.
 Can any one help?

One technique is to can create a File object in the ZMI and upload your
javascript to it:

http://docs.zope.org/zope2/zope2book/BasicObject.html#content-objects-folders-files-and-images

To serve the file from the filesystem, you need either to use one of the
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 /


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

iEYEARECAAYFAkxqw6EACgkQ+gerLs4ltQ6HcACaA76baszIQ8Wl1hvzHOk9ATvA
358AoKzmziSeeT1aPxqE7XugYL2Nm38B
=BX8c
-END PGP SIGNATURE-

___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


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

2010-08-17 Thread Baiju M
On Tue, Aug 17, 2010 at 10:45 PM, Andreas Jung li...@zopyx.com wrote:
 Tapas Mishra wrote:

 I am having a javascript which I am using in my site.
 My server is Zope I am not able to find where should I keep the
 javascript in it.
 Can any one help?

 Check the browser:resource ZCML directive.

http://bluebream.zope.org/doc/1.0/manual/browserresource.html

--
Baiju M
___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


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

2010-08-17 Thread Tapas Mishra
I am very new to all this Zope thing.
Here is where I asked this question originally
http://educommons.2416974.n2.nabble.com/embed-section-of-code-in-javascript-is-being-over-written-by-eduCommons-tp5431156.html
Past few days I have gone through n number of documentation pages for
n number of things.
I do not have any product.I am using some thing known as eduCommons
which is on Zope.
I asked on that forum and searching a long way I reached here.

-- 
Tapas
___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )