Changeset 1563


Ignore:
Timestamp:
16 Mar 2007, 13:01:15 (18 years ago)
Author:
joachim
Message:

fix attribute error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/PatchCPSUserFolderUserFolder.py

    r1549 r1563  
    7171    ## patch to assign dynamic roles for WAeUP
    7272    while 1:
     73        if self.isStudent():
     74            break
    7375        if callable(real_object) and hasattr(real_object,'im_self'):
    7476            real_object = real_object.im_self
    7577
     78        if real_object is None:
     79            break
    7680        if hasattr(real_object,'portal_type') and\
    7781                   real_object.portal_type not in ("Student","StudentClearance","StudentStudyLevel"):
    7882            break
    7983
    80         #from pdb import set_trace;set_trace()
     84        from pdb import set_trace;set_trace()
    8185        # can be later simplified by replacing by students_catalog values - Henrik
    8286        # getattr works always because of acquisition ?! Henrik
Note: See TracChangeset for help on using the changeset viewer.