[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Zope] Zope Button


As I think you have found (or not found ;^), there is none. Zope is an object 
publishing system. The cute little folders and file icons you see are just an 
illusionary file-system-ish object hierarchy called OFS.

So back to your question, p_ is not a folder at all. It is an object 
(technically its a class, but that is neither here nor there) which is an 
attribute of (IOW its attached to) the root folder, which is a folder (but a 
special one). The p_ attribute is defined in the Zope code as a container for 
Zope software to put things in that are built into the system. 

In technobabble terms, it is a special global "namespace" for the Zope 
software itself to store resources it uses. This namespace is separated 
(under the name p_) from the rest of the OFS so that you can define your own 
objects with just about any name, including "ZopeButton", without obscuring 
the ones in p_.

So where does it come from? ZopeButton comes from a file in your Zope 
installation. The Zope software wraps this file in a special ImageFile object 
(which knows how to load image files as object) and then "mounts" it in p_. 
There are all kinds of other images in there as well, mostly all for use by 
the ZMI: icons, decorations, other powered by icons, etc. If you don't 
believe me, check out $Zope/lib/python/OFS/misc_.py

-Casey

On Thursday 02 May 2002 03:24 pm, Bill Kerr allegedly wrote:
> why can't I find the folder in which the Zope Button (that displays in the
> standard_html_footer) resides on my computer -- I can see the button but
> can't find it
> right click > View Source
> 
> <img src="http://localhost:8080/p_/ZopeButton"; etc.
> where is this p_ folder?
> 
> -- Bill


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



This mailing list archive is a service of Copilotco.