Changeset 3494 for WAeUP_SRP/base/Widgets.py
- Timestamp:
- 8 May 2008, 09:35:54 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/Widgets.py
r3493 r3494 857 857 application_category = "basic" 858 858 if not hasattr(self,'_v_certificates_docs'): 859 res = self.portal_catalog_real.search({'meta_type': "Certificate"}) 859 # res = self.portal_catalog_real.search({'meta_type': "Certificate"}) 860 # d = {} 861 # for cert in res: 862 # c = cert.getObject().getContent() 863 # if getattr(c,'application_category',''): 864 # d[cert.getId] = c 865 res = self.certificates_catalog() 860 866 d = {} 861 867 for cert in res: 862 c = cert.getObject().getContent() 863 if getattr(c,'application_category',''): 864 d[cert.getId] = c 868 if getattr(cert,'application_category',''): 869 d[cert.code] = cert 865 870 self._v_certificates_docs = d 866 871 l = [('','','')]
Note: See TracChangeset for help on using the changeset viewer.