Search the web
Sign In
New User? Sign Up
zope
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Re: [Zope] Getting Properties of Objects in Folders Within   Message List  
Reply | Forward Message #117050 of 185492 < Prev |
Re: [Zope] Getting Properties of Objects in Folders Within

Max,

In response to your post here:

http://mail.zope.org/pipermail/zope/2005-February/156369.html

I am having some difficulty getting this to work.

###
# everything works fine from here....
object = []
results = []
subbrain = []
query = 'somekeyword'
for brain in context.Catalog(meta_type='Folder',
bobobase_modification_time={'query':DateTime()-14, 'range':'min'},
PrincipiaSearchSource=query) :
# results.append(object)
path = brain.getPath()
print path
print '<item>'
print '<title>' + brain.title + '</title>'
print '<link> + str(path) + '</link>'
print '<description>' + brain.description + '</description>'

# ... through here
# however, what I'd like to do is get the path to every ExtFile contained
in these Folders

# this should get you every catalogued object in the folder
for subbrain in context.Catalog(path=path):
print subbrain.Title
print subbrain.Description
return printed

print '<pubDate>' + str(brain.date) + '</pubDate>'
print '</item>'

return printed

Any additional help you could offer is appreciated.

John T.

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



Wed May 4, 2005 5:31 am

kjzz.webmaster@...
Send Email Send Email

Forward
Message #117050 of 185492 < Prev |
Expand Messages Author Sort by Date

Max, In response to your post here: http://mail.zope.org/pipermail/zope/2005-February/156369.html I am having some difficulty getting this to work. ### #...
KJZZ Webmaster
kjzz.webmaster@...
Send Email
May 4, 2005
5:32 am

... So narrow your second catalog search:: for subbrain in context.Catalog(path=path, meta_type="ExtFile"): Or something like that. Easy. FYI, returning some...
J Cameron Cooper
zope-l@...
Send Email
May 4, 2005
5:54 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help