Changeset 10648


Ignore:
Timestamp:
24 Sep 2013, 20:04:17 (11 years ago)
Author:
Henrik Bettermann
Message:

Export path to object with local role.

File:
1 edited

Legend:

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

    r9198 r10648  
    9090                object_list = []
    9191                for object in objects:
    92                     object.__class__.__name__
    93                     object_list.append((object.__name__, object.__class__.__name__))
     92                    obj= object
     93                    path = ''
     94                    while obj.__class__.__name__ != 'University':
     95                        path = '%s/' % obj.__name__ + path
     96                        obj = obj.__parent__
     97                    object_list.append(path)
    9498                value[role] = object_list
    9599        return super(
Note: See TracChangeset for help on using the changeset viewer.