Changeset 2095 for WAeUP_SRP


Ignore:
Timestamp:
13 Aug 2007, 15:33:15 (17 years ago)
Author:
Henrik Bettermann
Message:

applicants_catalog and application instead of new_students

Location:
WAeUP_SRP/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Widgets.py

    r2094 r2095  
    248248    """WAeUP Session Widget."""
    249249    meta_type = 'WAeUP Session Widget'
    250    
     250
    251251    def _getSessions(self):
    252252        current_year = DateTime().year()
     
    522522                if datastructure[self.state_field]:
    523523                    v = datastructure[self.state_field] + '_' + v
    524        
     524
    525525        if self.is_required and not len(v):
    526526            datastructure.setError(widget_id, "lga required")
     
    533533            state = datastructure[self.state_field].lower()
    534534            lga = "_".join(datastructure[self.lga_field].lower().split())
    535             datamodel[self.fields[0]] =   state + "_" + lga 
     535            datamodel[self.fields[0]] =   state + "_" + lga
    536536        return 1
    537537
     
    706706        else:
    707707            mode = "xxxx"
    708         if not valid: 
     708        if not valid:
    709709            err = 'Invalid number'
    710710        elif self.reference == '':
     
    717717        elif mode == 'add':
    718718            pass
    719         elif self.reference != '' and self.catalog == "new_students":
     719        elif self.reference != '' and self.catalog == "applicants_catalog":
    720720            res = jamb_nr_catalog.searchResults({"%s" % self.reference: value})
    721721            if len(res) != 1:
     
    13841384                else:
    13851385                    applicant = datastructure['record']
    1386                     if not applicant.pin: 
     1386                    if not applicant.pin:
    13871387                        s_logger.info('%s successfully used PIN %s' % (ref,pin_str))
    13881388                        d = {}
  • WAeUP_SRP/trunk/profiles/default/layouts/application.xml

    r2094 r2095  
    11<?xml version="1.0"?>
    22<?xml-stylesheet type="text/xsl" href="layout.xsl"?>
    3 <object name="new_students" meta_type="CPS Layout">
     3<object name="application" meta_type="CPS Layout">
    44 <property name="layout_create_method">layout_enter_access_code</property>
    55 <property name="layout_edit_method"></property>
  • WAeUP_SRP/trunk/profiles/default/schemas/application.xml

    r2094 r2095  
    11<?xml version="1.0"?>
    22<?xml-stylesheet type="text/xsl" href="schema.xsl"?>
    3 <object name="new_students" meta_type="CPS Schema">
     3<object name="application" meta_type="CPS Schema">
    44 <field name="course1" meta_type="CPS String Field"/>
    55 <field name="course2" meta_type="CPS String Field"/>
Note: See TracChangeset for help on using the changeset viewer.