Re: [Zope] "Picture of the day" product

2001-01-30 Thread Jim Washington
Hi, Tim context.ZopeTime() or container.ZopeTime() ZopeTime is not in the PythonScript's namespace. It is available in most (all?) containers, however. -- Jim Washington Timothy Wilson wrote: > > On Mon, 29 Jan 2001, Tres Seaver wrote: > > > > I'd like to grab all instances with a dis

Re: [Zope] "Picture of the day" product

2001-01-29 Thread Timothy Wilson
On Mon, 29 Jan 2001, Tres Seaver wrote: > > I'd like to grab all instances with a display_date <= today's > > date. I can't figure out exactly how to do that in DTML or a > > Python Script. Once I have that list of instances, I'll simply > > pull off the latest one as you suggested. > I don't kn

Re: [Zope] "Picture of the day" product

2001-01-29 Thread Tres Seaver
On Mon, 29 Jan 2001, Timothy Wilson wrote: > On Wed, 17 Jan 2001, Tres Seaver wrote: > > > > What I'm not sure about is how to have Zope automatically > > > display the photo for a day, then archive it. Would a > > > boolean property of the ZClass work? Is it possible to have > > > Zope set the

Re: [Zope] "Picture of the day" product

2001-01-18 Thread Timothy Wilson
On Thu, 18 Jan 2001, Tres Seaver wrote: > > > This kind of thing is a "query-on-metadata" application; I > > > would put all these images into a single folder (maybe > > > chunked into subfolders by month?), mark them each with an > > > 'effective' property (of type 'Date'), and then select the

Re: [Zope] "Picture of the day" product

2001-01-18 Thread Timothy Wilson
On Thu, 18 Jan 2001, Tres Seaver wrote: > Subclassing Image might be useful, but you could certainly > get by without if, if all you need is to add a property or > two: Images have a propertysheet to which you could add them. But if I use the standard Image meta type, wouldn't I have to create

Re: [Zope] "Picture of the day" product

2001-01-18 Thread Tres Seaver
On Wed, 17 Jan 2001, Timothy Wilson wrote: > On Wed, 17 Jan 2001, Tres Seaver wrote: > > > > What I'm not sure about is how to have Zope automatically > > > display the photo for a day, then archive it. Would a > > > boolean property of the ZClass work? Is it possible to have > > > Zope set the

Re: [Zope] "Picture of the day" product

2001-01-17 Thread Timothy Wilson
On Wed, 17 Jan 2001, Tres Seaver wrote: > > What I'm not sure about is how to have Zope automatically display the photo > > for a day, then archive it. Would a boolean property of the ZClass work? Is > > it possible to have Zope set the property of a ZClass instance at certain > > time? Any thoug

Re: [Zope] "Picture of the day" product

2001-01-17 Thread Tres Seaver
Timothy Wilson <[EMAIL PROTECTED]> wrote: > > Hey everyone, > > I was looking at linux.com the today and I noticed their "Daily Photo." I > occurred to me that that would be a fun addition to the school's page that > I'm developing. My first thought would be to: > > * inherit from Image > * add

RE: [Zope] "Picture of the day" product

2001-01-17 Thread Eric Walstad
// What I'm not sure about is how to have Zope automatically // display the photo // for a day, then archive it. Would a boolean property of the // ZClass work? Is // it possible to have Zope set the property of a ZClass instance // at certain // time? Any thoughts on how this would be desi

Re: [Zope] "Picture of the day" product

2001-01-17 Thread Martijn Pieters
On Wed, Jan 17, 2001 at 12:20:06PM -0600, Timothy Wilson wrote: > Hey everyone, > > I was looking at linux.com the today and I noticed their "Daily Photo." I > occurred to me that that would be a fun addition to the school's page that > I'm developing. My first thought would be to: > > * inherit

[Zope] "Picture of the day" product

2001-01-17 Thread Timothy Wilson
Hey everyone, I was looking at linux.com the today and I noticed their "Daily Photo." I occurred to me that that would be a fun addition to the school's page that I'm developing. My first thought would be to: * inherit from Image * add caption, date taken, etc. properties * create an archive of