[zopeorg-checkins] CVS: Products/ZopeOrg - SoftwareProduct.py:1.25
Martijn Pieters
mj at zope.com
Tue Jan 29 10:35:05 EST 2002
Update of /cvs-zopeorg/Products/ZopeOrg
In directory cvs.zope.org:/tmp/cvs-serv28081
Modified Files:
SoftwareProduct.py
Log Message:
Fix Software Product
=== Products/ZopeOrg/SoftwareProduct.py 1.24 => 1.25 ===
return -1 * cmp(a.getVersionNormalized(), b.getVersionNormalized())
- def __call__(self):
- '''
- Invokes the default view.
- '''
- view = self._getDefaultView()
- if getattr(aq_base(view), 'isDocTemp', 0):
- return apply(view, (self, self.REQUEST))
- else:
- return view()
-
- index_html = None # This special value informs ZPublisher to use __call__
-
- security.declareProtected(CMFCorePermissions.View, 'view')
- def view(self):
- '''
- Returns the default view even if index_html is overridden.
- '''
- return self()
-
-
# Must override these because of inheritance structure... WAAA
def objectItems(self, spec=None):
""" instead of SimpleItem.objectItems..."""
More information about the zopeorg-checkins
mailing list