Changeset 2708 for WAeUP_SRP/base


Ignore:
Timestamp:
19 Nov 2007, 08:33:14 (17 years ago)
Author:
joachim
Message:

fix traceback

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/PatchCPSUserFolderUserFolder.py

    r2696 r2708  
    103103        st_entry = res[0]
    104104
    105         if real_object.portal_type in ("StudentStudyLevel"):
     105        if real_object.portal_type == "StudentStudyLevel":
    106106            certificate_obj = getCertificateObject(self,st_entry)
    107107            if certificate_obj is None:
     
    112112            else:
    113113                object = real_object.aq_parent
    114             if real_object.portal_type == "StudentStudyLevel":
    115                 level = object.getId()
     114            level = object.getId()
    116115            context_obj = getattr(certificate_obj,level,None)
    117116            if context_obj is None:
Note: See TracChangeset for help on using the changeset viewer.