version 1.47.2.24, 2005/09/15 13:50:55
|
version 1.47.2.25, 2005/10/10 08:42:49
|
Line 1298 class MPIWGProject(CatalogAware,Folder):
|
Line 1298 class MPIWGProject(CatalogAware,Folder):
|
"""get all Publications""" |
"""get all Publications""" |
def sort_images(x,y): |
def sort_images(x,y): |
return cmp(getattr(x[1],'place',0),getattr(y[1],'place',0)) |
return cmp(getattr(x[1],'place',0),getattr(y[1],'place',0)) |
print self.getId() |
|
publications=self.ZopeFind(self,obj_metatypes=['MPIWGProject_publication']) |
publications=self.ZopeFind(self,obj_metatypes=['MPIWGProject_publication']) |
|
|
publications.sort(sort_images) |
publications.sort(sort_images) |
Line 1340 class MPIWGProject(CatalogAware,Folder):
|
Line 1340 class MPIWGProject(CatalogAware,Folder):
|
"""get all Images""" |
"""get all Images""" |
def sort_images(x,y): |
def sort_images(x,y): |
return cmp(getattr(x[1],'place',0),getattr(y[1],'place',0)) |
return cmp(getattr(x[1],'place',0),getattr(y[1],'place',0)) |
print self.getId() |
|
images=self.ZopeFind(self,obj_metatypes=['MPIWGProject_image']) |
images=self.ZopeFind(self,obj_metatypes=['MPIWGProject_image']) |
|
|
images.sort(sort_images) |
images.sort(sort_images) |