Ignore:
Timestamp:
8 Oct 2015, 14:40:37 (9 years ago)
Author:
Henrik Bettermann
Message:

Second line is used for footer if nummber of lines > 1

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

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/accesscodes/accesscode.py

    r11435 r13304  
    558558
    559559    If `owner` is specified, the owner attribute of the access code is checked.
    560     If the owner is different :func:`fire_transition` fails and returns False.
     560    If the access code has an owner but is different, :func:`fire_transition`
     561    fails and returns False.
    561562
    562563    :func:`fire_transition` might raise exceptions depending on the
  • main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py

    r13247 r13304  
    722722                              view.request.principal.id)
    723723        footer_text = view.label.split('\n')
    724         if len(footer_text) > 2:
    725             # We can add a department in first line
     724        if len(footer_text) > 1:
     725            # We can add a department in first line, second line is used
    726726            footer_text = footer_text[1]
    727727        else:
Note: See TracChangeset for help on using the changeset viewer.