Changeset 3824 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
19 Dec 2008, 15:44:45 (16 years ago)
Author:
Henrik Bettermann
Message:

implement configuration object (step 1)

Configuration file must be created with create_configuration_file.py

Location:
WAeUP_SRP/trunk/skins
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/cps_custom/cpsdocument_create.py

    r3157 r3824  
    2525from Products.CPSDocument.utils import getFormUidUrlArg
    2626
     27request = REQUEST
     28
     29try:
     30    from Products.zdb import set_trace
     31except:
     32    def set_trace():
     33        pass
     34
    2735ti = getToolByName(context, 'portal_types').getTypeInfo(type_name)
    2836
    2937while True:
    3038    if not context.isSectionOfficer():
    31         psm = "illegal access"
    32         break
     39        return request.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url())
     40
    3341    is_valid, ds = ti.validateObject(None, layout_mode='create',
    3442                                    request=REQUEST, context=context,
  • WAeUP_SRP/trunk/skins/waeup_default/waeup_document_create_do.py

    r3682 r3824  
    1111request = context.REQUEST
    1212
    13 if type_name in ("StudyLevel","StudentStudyLevel","WAeUPDocument","StudentPastoralReport"):
     13if type_name in ("StudyLevel","StudentStudyLevel","WAeUPDocument","StudentPastoralReport","WAeUPConfiguration"):
    1414    id = datamodel.get('code')
    1515else:
  • WAeUP_SRP/trunk/skins/waeup_student/apply_admission.py

    r3794 r3824  
    5757
    5858deaddates = {}
     59
     60#config_params = context.getConfigParams()
     61#deaddates['pume'] = config_params['dead_pume']
     62
    5963deaddates['pume'] = DateTime.DateTime('2008/08/19 07:00')
    6064deaddates['pde'] = DateTime.DateTime('2008/10/02 23:59')
Note: See TracChangeset for help on using the changeset viewer.