Ignore:
Timestamp:
3 Nov 2005, 08:41:59 (19 years ago)
Author:
joachim
Message:

=fixed Title bug in Course and Hall

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup_product/trunk/skins/waeup_faculty/create_course.py

    r142 r144  
    22# $Id$
    33"""
    4 Create a Faculty
     4Create a Course
    55
    66"""
     
    2828                                 create = 1,
    2929                                 type_name = type_name,
    30                                  #psm = str(ds),
    3130                                 psm = 'Please correct your errors',
    3231                                 )
     
    4140    oid = "%s" % ds.get('code').replace(' ','')
    4241    context.invokeFactory(type_name,oid)
    43     object = getattr(context,oid)   
     42    object = getattr(context,oid)
     43    ds.set('title',ds.get('heading'))
    4444    object.getContent().edit(mapping=ds,proxy=object)
    4545    context.notifyCPSDocumentCreation(ob=object)
Note: See TracChangeset for help on using the changeset viewer.