Changeset 892 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
18 Nov 2006, 21:14:18 (18 years ago)
Author:
Henrik Bettermann
Message:

all psm checked and edited

Location:
WAeUP_SRP/trunk/skins
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_academics/create_certificate.py

    r486 r892  
    2828                                 create = 1,
    2929                                 type_name = type_name,
    30                                  psm = 'Please correct your errors',
     30                                 psm = 'Please correct your errors!',
    3131                                 )
    3232elif psm == '':
     
    3636                                 psm = psm,
    3737                                 )
    38    
     38
    3939elif psm == 'valid':
    4040    oid = "%s" % ds.get('code').replace(' ','')
    41     context.invokeFactory(type_name,oid) 
     41    context.invokeFactory(type_name,oid)
    4242    object = getattr(context,oid)
    4343    ds.set('Title',ds.get('heading'))
    4444    object.getContent().edit(mapping=ds,proxy=object)
    4545    context.notifyCPSDocumentCreation(ob=object)
    46     psm = 'new %s created' % oid
    47     context_ti = context.portal_types[context.portal_type] 
     46    psm = 'new %s created!' % oid
     47    context_ti = context.portal_types[context.portal_type]
    4848    index = context_ti.getActionById('view','university_view')
    4949    return getattr(context,index)(psm=psm)
  • WAeUP_SRP/trunk/skins/waeup_academics/create_course.py

    r280 r892  
    2828                                 create = 1,
    2929                                 type_name = type_name,
    30                                  psm = 'Please correct your errors',
     30                                 psm = 'Please correct your errors!',
    3131                                 )
    3232elif psm == '':
     
    3636                                 psm = psm,
    3737                                 )
    38    
     38
    3939elif psm == 'valid':
    4040    oid = "%s" % ds.get('code').replace(' ','')
    41     context.invokeFactory(type_name,oid) 
     41    context.invokeFactory(type_name,oid)
    4242    object = getattr(context,oid)
    4343    ds.set('Title',ds.get('heading'))
    4444    object.getContent().edit(mapping=ds,proxy=object)
    4545    context.notifyCPSDocumentCreation(ob=object)
    46     psm = 'new %s created' % oid
    47     context_ti = context.portal_types[context.portal_type] 
     46    psm = 'new %s created!' % oid
     47    context_ti = context.portal_types[context.portal_type]
    4848    index = context_ti.getActionById('view','university_view')
    4949    return getattr(context,index)(psm=psm)
  • WAeUP_SRP/trunk/skins/waeup_academics/create_studycourse.py

    r486 r892  
    2828                                 create = 1,
    2929                                 type_name = type_name,
    30                                  psm = 'Please correct your errors',
     30                                 psm = 'Please correct your errors!',
    3131                                 )
    3232elif psm == '':
     
    3636                                 psm = psm,
    3737                                 )
    38    
     38
    3939elif psm == 'valid':
    4040    oid = "%s" % ds.get('code').replace(' ','')
    41     context.invokeFactory(type_name,oid) 
     41    context.invokeFactory(type_name,oid)
    4242    object = getattr(context,oid)
    4343    ds.set('Title',ds.get('heading'))
    4444    object.getContent().edit(mapping=ds,proxy=object)
    4545    context.notifyCPSDocumentCreation(ob=object)
    46     psm = 'new %s created' % oid
    47     context_ti = context.portal_types[context.portal_type] 
     46    psm = 'new %s created!' % oid
     47    context_ti = context.portal_types[context.portal_type]
    4848    index = context_ti.getActionById('view','university_view')
    4949    return getattr(context,index)(psm=psm)
  • WAeUP_SRP/trunk/skins/waeup_academics/department_created.py

    r486 r892  
    2929dict = {'Title': 'Certificates'}
    3030o.getContent().edit(mapping=dict)
    31 psm = 'Department with Certificates and Courses created'
     31psm = 'Department with Certificates and Courses created!'
    3232action_path = context.getTypeInfo().immediate_view
    3333context.REQUEST.RESPONSE.redirect('%s/%s?portal_status_message=%s' %
  • WAeUP_SRP/trunk/skins/waeup_academics/level_created.py

    r614 r892  
    3131#o.getContent().edit(mapping=dict)
    3232#context.orderObjects('id')
    33 psm = 'Study Level created'
     33psm = 'Study Level created!'
    3434action_path = context.getTypeInfo().immediate_view
    3535context.REQUEST.RESPONSE.redirect('%s/%s?portal_status_message=%s' %
  • WAeUP_SRP/trunk/skins/waeup_academics/searchAcademics.py

    r845 r892  
    5353with_review = state != "all"
    5454if not term and not with_review:
    55     psm = "You must specify a search string when searching 'all states'."
     55    psm = "You must specify a search string when searching 'all states'!"
    5656    err = True
    5757elif '*' in term:
    58     psm = "you cannot use the '*' alone"
     58    psm = "Wildcards are not supported!"
    5959    err = True
    6060if err:
  • WAeUP_SRP/trunk/skins/waeup_default/create_common.py

    r290 r892  
    2626                                 create = 1,
    2727                                 type_name = type_name,
    28                                  psm = 'Please correct your errors',
     28                                 psm = 'Please correct your errors!',
    2929                                 )
    3030elif psm == '':
     
    3434                                 psm = psm,
    3535                                 )
    36    
     36
    3737elif psm == 'valid':
    3838    oid = "%s" % ds.get('Title').replace(' ','')
    39     context.invokeFactory(type_name,oid) 
    40     object = getattr(context,oid)   
     39    context.invokeFactory(type_name,oid)
     40    object = getattr(context,oid)
    4141    object.getContent().edit(mapping=ds)
    4242    context.notifyCPSDocumentCreation(ob=object)
    43     psm = 'new %s created' % oid
    44     context_ti = context.portal_types[context.portal_type] 
     43    psm = 'new %s created!' % oid
     44    context_ti = context.portal_types[context.portal_type]
    4545    index = context_ti.getActionById('view','university_view')
    4646    return getattr(context,index)(psm=psm)
  • WAeUP_SRP/trunk/skins/waeup_student/application_edit.py

    r851 r892  
    4545    if cpsdocument_edit_button:
    4646        if app_doc.passport is not None:
    47             args['portal_status_message'] = 'You successfully uploaded your passport picture.'
     47            args['portal_status_message'] = 'You successfully uploaded your passport picture!'
    4848        else:
    49             args['portal_status_message'] = "You didn't upload a passport picture."
     49            args['portal_status_message'] = "You didn't upload a passport picture!"
    5050    elif cpsdocument_edit_and_view_button:
    5151        if app_doc.passport is not None:
     
    5555            return REQUEST.RESPONSE.redirect(url)
    5656        else:
    57             args['portal_status_message'] = "You didn't upload a passport picture."
     57            args['portal_status_message'] = "You didn't upload a passport picture!"
    5858if args:
    5959  url = base_url + action + '?' + urlencode(args)
  • WAeUP_SRP/trunk/skins/waeup_student/apply_admission.py

    r649 r892  
    3030if psm == 'invalid':
    3131    return context.application_pin_form(rendered = res,
    32                                  psm = "Please correct your input.",
     32                                 psm = "Please correct your input!",
    3333                                 #psm = "%s, %s" % (psm,ds),
    3434                                 firstlayout = True,
  • WAeUP_SRP/trunk/skins/waeup_student/check_admission.py

    r805 r892  
    2929if psm == 'invalid':
    3030    return context.check_admission_pin_form(rendered = res,
    31                                  psm = "Please correct your input.",
     31                                 psm = "Please correct your input!",
    3232                                 #psm = "%s, %s" % (psm,ds),
    3333                                 firstlayout = True,
  • WAeUP_SRP/trunk/skins/waeup_student/display_pume_result.py

    r805 r892  
    3030if psm == 'invalid':
    3131    return context.display_pume_result_form(rendered = res,
    32                                  psm = "Please correct your input.",
     32                                 psm = "Please correct your input!",
    3333                                 #psm = "%s, %s" % (psm,ds),
    3434                                 firstlayout = True,
  • WAeUP_SRP/trunk/skins/waeup_student/reserve_accommodation.py

    r856 r892  
    4848if psm == 'invalid':
    4949    return context.accommodation_pin_edit_form(rendered = res,
    50                                  psm = "Please correct your input.",
     50                                 psm = "Please correct your input!",
    5151                                 #psm = "%s, %s" % (psm,ds),
    5252                                 mode = mode,
  • WAeUP_SRP/trunk/skins/waeup_student/searchStudents.py

    r891 r892  
    8282bools = "with_review = %s<br\> only_review = %s<br\>" % (with_review,only_review)
    8383if not term and not with_review:
    84     psm = "You must specify a search string when searching 'all states'."
     84    psm = "You must specify a search string when searching 'all states'!"
    8585    err = True
    8686elif '*' in term:
    87     psm = "you cannot use the '*' alone"
     87    psm = "Wildcards are not supported!"
    8888    err = True
    8989if err:
  • WAeUP_SRP/trunk/skins/waeup_student/start_clearance.py

    r843 r892  
    3232if app_doc.passport is None:
    3333    return context.clearance_pin_form(rendered = res,
    34                                  psm = "You must upload your passport picture before you can start the registration process.",
     34                                 psm = "You must upload your passport picture before you can start the registration process!",
    3535                                 #psm = "%s, %s" % (psm,ds),
    3636                                 firstlayout = True,
     
    4141if psm == 'invalid':
    4242    return context.clearance_pin_form(rendered = res,
    43                                  psm = "Please correct your input.",
     43                                 psm = "Please correct your input!",
    4444                                 #psm = "%s, %s" % (psm,ds),
    4545                                 firstlayout = True,
  • WAeUP_SRP/trunk/skins/waeup_student/student_course_result_created.py

    r805 r892  
    2727    d[f] = getattr(real_course,f)
    2828course.getContent().edit(mapping=d)
    29 psm = 'CourseResult created'
     29psm = 'CourseResult created!'
    3030action_path = context.getTypeInfo().immediate_view
    3131context.REQUEST.RESPONSE.redirect('%s/%s?portal_status_message=%s' %
Note: See TracChangeset for help on using the changeset viewer.