Changeset 13203


Ignore:
Timestamp:
21 Aug 2015, 13:27:37 (9 years ago)
Author:
uli
Message:

Make app name a const (parameter).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/scripts.py

    r13202 r13203  
    2727INSTANCE_HOME = os.path.dirname(os.path.dirname(os.path.dirname(
    2828    os.path.dirname(__file__))))
     29
     30#: The name of the `University` instance in which we look for export
     31#: items.
     32APP_NAME = "uniben"
    2933
    3034
     
    7882
    7983def get_university(conn):
    80     return conn.root()["Application"]["uniben"]
     84    return conn.root()["Application"][APP_NAME]
    8185
    8286
Note: See TracChangeset for help on using the changeset viewer.