hi i'm very new to zope so please forgive what is a very simple question i'm building a site for a friend with a gallery of objects. i'd like people to be able to search the objects by a number of properties, so i upload an image file of the object, hit properties tab and add a new field, artist, and then the artist's name. however, i have to re-create this property for every new upload. how do i change the properties for all the objects in a folder, so when a new image file is uploaded, clicking on properties has a blank 'artist' field waiting for some input? setting a blank property of artist on the folder does not seem to cause all the images in that folder to inherit a blank property. i've searched the archives, but i can find no answer. sorry if this has been asked before. thanks ===== u n d e r a c h i e v e r (and proud) <takeme2your@rocketmail.com> __________________________________________________ Do You Yahoo!? Find a job, post your resume. http://careers.yahoo.com
On Tue, Nov 06, 2001 at 03:55:35PM -0800, U n d e r a c h i e v e r wrote:
setting a blank property of artist on the folder does not seem to cause all the images in that folder to inherit a blank property.
Right. That property can be acquired, but it's not strictly inherited. Therefore it doesn't show up in the object itself. Two solutions, one incredibly easy but tedious, the other tougher but easier in the long run: 1) Copy an existing object, rename the new copy, change anything you need to on its property tabs, and change its data via its Upload tab. 2) Look into ZClasses, and make a class that inherits from Image (or whatever existing content object you're using), and define custom property sheets there. 2a) Make a Python product instead of a ZClass, and earn the respect of the list purists. -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu
--- Mike Renfro <renfro@tntech.edu> wrote:
On Tue, Nov 06, 2001 at 03:55:35PM -0800, U n d e r a c h i e v e r wrote:
setting a blank property of artist on the folder does not seem to cause all the images in that folder to inherit a blank property.
Right. That property can be acquired, but it's not strictly inherited. Therefore it doesn't show up in the object itself.
Two solutions, one incredibly easy but tedious, the other tougher but easier in the long run:
1) Copy an existing object, rename the new copy, change anything you need to on its property tabs, and change its data via its Upload tab.
right, thanks, that is exactly what i needed...
2) Look into ZClasses, and make a class that inherits from Image (or whatever existing content object you're using), and define custom property sheets there.
2a) Make a Python product instead of a ZClass, and earn the respect of the list purists.
right, i've got to get this finished by saturday so i'll think i'll leave developing my advanced skills for a few days yet :) thanks for your indulgence... ===== u n d e r a c h i e v e r (and proud) <takeme2your@rocketmail.com> __________________________________________________ Do You Yahoo!? Find a job, post your resume. http://careers.yahoo.com
participants (2)
-
Mike Renfro -
U n d e r a c h i e v e r