Re: [Zope] Accessing .gif on disk with Python Product?

2000-08-08 Thread Evan Simpson
From: Martijn Pieters <[EMAIL PROTECTED]> > > SCRIPT_NAME will work in simple cases, but BASE1 ought to work in all cases, > > and using it is a better habit to have in general. > > We better file a Collector item on this then, as the current Zope Management > Interface uses it still. Done. I al

Re: [Zope] Accessing .gif on disk with Python Product?

2000-08-08 Thread Martijn Pieters
On Tue, Aug 08, 2000 at 12:45:02PM -0400, Evan Simpson wrote: > From: Martijn Pieters <[EMAIL PROTECTED]> > > I still think something else was broken, SiteAccess should (and does, as > far > > as I know) stay away from SCRIPT_NAME. > > Yep. Environment/CGI variables are left alone by the virtual

Re: [Zope] Accessing .gif on disk with Python Product?

2000-08-08 Thread Evan Simpson
From: Martijn Pieters <[EMAIL PROTECTED]> > I still think something else was broken, SiteAccess should (and does, as far > as I know) stay away from SCRIPT_NAME. Yep. Environment/CGI variables are left alone by the virtual hosting machinery; only Zope-specific ones are altered. An example of a

Re: [Zope] Accessing .gif on disk with Python Product?

2000-08-08 Thread Martijn Pieters
On Mon, Aug 07, 2000 at 10:08:06PM +0100, Chris Withers wrote: > > I don't see this would make a difference; Zope is passed the base URL at which > > it takes over the URL. A SiteAccess object may only influence parts of the URL > > that come _after_ this base. > > > > http://zopeintherooturl/foo

Re: [Zope] Accessing .gif on disk with Python Product?

2000-08-07 Thread Chris Withers
Martijn Pieters wrote: > On Mon, Aug 07, 2000 at 04:23:36PM -0400, Evan Simpson wrote: > > From: Martijn Pieters <[EMAIL PROTECTED]> > > > misc_ is a root level object. Using absolute_url you are acquiring it into > > > your Instance URL, which is not necessary (and will hamper off-server > > > ca

Re: [Zope] Accessing .gif on disk with Python Product?

2000-08-07 Thread Martijn Pieters
On Mon, Aug 07, 2000 at 04:23:36PM -0400, Evan Simpson wrote: > From: Martijn Pieters <[EMAIL PROTECTED]> > > misc_ is a root level object. Using absolute_url you are acquiring it into > > your Instance URL, which is not necessary (and will hamper off-server > > caching). Use &dtml-SCRIPT_NAME; in

Re: [Zope] Accessing .gif on disk with Python Product?

2000-08-07 Thread Evan Simpson
From: Martijn Pieters <[EMAIL PROTECTED]> > misc_ is a root level object. Using absolute_url you are acquiring it into > your Instance URL, which is not necessary (and will hamper off-server > caching). Use &dtml-SCRIPT_NAME; instead (which will give you the absolute url > of the root object in al

Re: [Zope] Accessing .gif on disk with Python Product?

2000-08-07 Thread Martijn Pieters
On Mon, Aug 07, 2000 at 01:38:56PM -0300, Kevin Howe wrote: > Right you are, here's how I solved it: > > # __init.py__ for myProduct > > misc_={ > 'chooserIcon': ImageFile('images/chooserIcon.gif',globals()), > } > > # DTML file > > misc_ is a root level object. Using absolute_url you ar

Re: [Zope] Accessing .gif on disk with Python Product?

2000-08-07 Thread Kevin Howe
; To: "Performance.net Strategic Internet Solutions" <[EMAIL PROTECTED]> Cc: "ZOPE Mailing List" <[EMAIL PROTECTED]> Sent: Monday, August 07, 2000 1:15 PM Subject: Re: [Zope] Accessing .gif on disk with Python Product? > > On Mon, Aug 07, 2000 at 01:12:03PM -0300, Pe

Re: [Zope] Accessing .gif on disk with Python Product?

2000-08-07 Thread Martijn Pieters
On Mon, Aug 07, 2000 at 01:12:03PM -0300, Performance.net Strategic Internet Solutions wrote: > > On Mon, Aug 07, 2000 at 11:21:53AM -0300, Performance.net Strategic > > Internet Solutions wrote: > > > I am writing a python product and want to display a GIF file in some of > > > the manage_pages.

Re: [Zope] Accessing .gif on disk with Python Product?

2000-08-07 Thread Performance.net Strategic Internet Solutions
- Original Message - From: "Martijn Pieters" <[EMAIL PROTECTED]> To: "Performance.net Strategic Internet Solutions" <[EMAIL PROTECTED]> Cc: "ZOPE Mailing List" <[EMAIL PROTECTED]> Sent: Monday, August 07, 2000 12:19 PM Subject: Re: [

Re: [Zope] Accessing .gif on disk with Python Product?

2000-08-07 Thread Martijn Pieters
On Mon, Aug 07, 2000 at 11:21:53AM -0300, Performance.net Strategic Internet Solutions wrote: > I am writing a python product and want to display a GIF file in some of the > manage_pages. It is not meant to be the "icon" property of the class, just > an image to be included in DTML. I included it