Ignore:
Timestamp:
8 May 2008, 09:35:54 (17 years ago)
Author:
joachim
Message:

implement certificates_catalog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/Widgets.py

    r3493 r3494  
    857857            application_category = "basic"
    858858        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()
    860866            d = {}
    861867            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
    865870            self._v_certificates_docs = d
    866871        l  = [('','','')]
Note: See TracChangeset for help on using the changeset viewer.