Ignore:
Timestamp:
8 Oct 2012, 07:54:23 (12 years ago)
Author:
Henrik Bettermann
Message:

Import roles correctly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/batchprocessing.txt

    r9310 r9312  
    2323    >>> from waeup.kofa.app import University
    2424    >>> getRootFolder()['app'] = University()
     25    >>> from zope.component.hooks import setSite
     26    >>> setSite(getRootFolder()['app'])
    2527
    2628Create a datacenter storage path:
     
    493495   >>> henrik = getRootFolder()['app']['users']['henrik']
    494496   >>> henrik.roles
    495    ['waeup.PortalManager', 'waeup.ImportManager']
     497   ['waeup.PortalManager', 'waeup.AcademicsOfficer', 'waeup.ImportManager']
    496498
    497499Pending files
Note: See TracChangeset for help on using the changeset viewer.