Ignore:
Timestamp:
29 Sep 2011, 07:13:26 (13 years ago)
Author:
Henrik Bettermann
Message:

Fire transition after student has been added. Otherwise we don't see the student id in the logfile.

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

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/students/container.py

    r6695 r6830  
    2121from zope.component.interfaces import IFactory
    2222from zope.securitypolicy.interfaces import IPrincipalRoleManager
     23from hurry.workflow.interfaces import IWorkflowInfo
    2324from waeup.sirp.interfaces import IUserAccount
    2425from waeup.sirp.students.interfaces import (
     
    6566            'waeup.local.StudentRecordOwner', student.student_id)
    6667        # Return student_id (only needed in tests)
     68        IWorkflowInfo(self[student.student_id]).fireTransition('create')
    6769        return student.student_id
    6870
  • main/waeup.sirp/trunk/src/waeup/sirp/students/student.py

    r6814 r6830  
    2121from zope.component.interfaces import IFactory
    2222from zope.interface import implementedBy
    23 from hurry.workflow.interfaces import IWorkflowInfo, IWorkflowState
     23from hurry.workflow.interfaces import IWorkflowState
    2424from waeup.sirp.interfaces import IObjectHistory
    2525from waeup.sirp.students.interfaces import (
     
    3939    def __init__(self):
    4040        super(Student, self).__init__()
    41         IWorkflowInfo(self).fireTransition('create')
    4241        # The site doesn't exist in unit tests
    4342        try:
     
    4746            self.student_id = u'Z654321'
    4847        self.password = None
     48       
    4949        return
    5050
Note: See TracChangeset for help on using the changeset viewer.