[Zope] - Yet another stupid question: image folders
Jim Fulton
jim@Digicool.com
Wed, 09 Dec 1998 01:12:55 +0000
"Christopher G. Petrilli" wrote:
>
> On Wed, Dec 09, 1998 at 12:35:34AM +0000, Jim Fulton wrote:
> > "Christopher G. Petrilli" wrote:
> > >
> > > [ I make some offers as to Image handling ]
> >
> > I'm going to try to respond to the entire thread at once by simply stating
> > my position on how this should work. Here goes:
> >
> > 1. Images, and perhaps all objects, should have a method named something
> > like absoluteURL, that returns some kind of absolute URL.
> >
> > Franky, I'm not sure how this will work, but your comments have convinced
> > me that it should work. Note that it may only work in the context of a
> > web request.
>
> That's the only time it's really useful. I think as sites grow and
> become more "media" intensive this will be a bigger and bigger deal.
>
> > Note that objects will not store their URL because an object
> > may be referenced from many places and therefore may have more
> > than one URL. The value returned from absoluteURL will likely
> > take into account the way the object was accessed. (There will
> > likely be lots of magic involved; best not think too hard
> > about it or keep the glue gun handy. ;)
>
> It seems that this "absoluteURL" should actually normally print it's
> normal location, regardless of how it was discovered via acquisition,
> no?
Yes, that's what I meant.
> Maybe there should be an option to print it's acquired location,
> but ... otherwise all the caching in the world is never gonna help you.
>
> > 2. The str for an image will use absoluteURL and will use size
> > methods too, if there every are any.
>
> I'm one who thinks that this should be stored in Properties (i.e. WIDTH
> HEIGHT attirbutes) that are calculated when the object is inserted into
> the database.
Yes, but accessed via methods.
--
Jim Fulton mailto:jim@digicool.com
Technical Director (540) 371-6909 Python Powered!
Digital Creations http://www.digicool.com http://www.python.org
Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission. Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.