Changeset 9328


Ignore:
Timestamp:
12 Oct 2012, 05:03:45 (12 years ago)
Author:
Henrik Bettermann
Message:

Unghostify dict.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/students
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py

    r9320 r9328  
    9898    lang = view.request.cookies.get('kofa.language')
    9999    for value in view.context.values():
     100        # We have to unghostify (according to Tres Seaver) the __dict__
     101        # by activating the object, otherwise value_dict will be empty
     102        # when calling the first time.
     103        value._p_activate
    100104        value_dict = dict([i for i in value.__dict__.items()])
    101105        value_dict['mandatory_bool'] = value.mandatory
     
    10111015    @property
    10121016    def translated_values(self):
     1017        import pdb; pdb.set_trace()
    10131018        return translated_values(self)
    10141019
  • main/waeup.kofa/trunk/src/waeup/kofa/students/browser_templates/studylevelmanagepage.pt

    r9320 r9328  
    7777    </div>
    7878  </div>
    79 </form> 
     79</form>
    8080
    8181
Note: See TracChangeset for help on using the changeset viewer.