Ignore:
Timestamp:
8 Jul 2007, 09:16:21 (17 years ago)
Author:
joachim
Message:

starting

Location:
WAeUP_SRP/branches/joachim-azax-branch
Files:
7 added
6 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/branches/joachim-azax-branch/Students.py

    r1970 r1997  
    1717from Products.WAeUP_SRP.Academics import makeCertificateCode
    1818from Products.AdvancedQuery import Eq, Between, Le,In
     19from Products.azax import AzaxBaseView
    1920import DateTime
    2021import logging
     
    14791480###)
    14801481
    1481 class StudentStudyLevel(CPSDocument): ###(
     1482class StudentStudyLevel(CPSDocument,AzaxBaseView): ###(
    14821483    """
    14831484    WAeUP Student container for the various student data
     
    14911492        """compose title"""
    14921493        return "Level %s" % self.aq_parent.getId()
     1494
     1495    def getCorrespondingSelect(self, value):
     1496        """ returns select content """
     1497        import pdb;pdb.set_trace()
     1498        mapping = {}
     1499        mapping['']=[]
     1500        mapping['animals']=['dog', 'cat', 'cow']
     1501        mapping['machines']=['computer', 'car', 'airplane']
     1502        # XXX Note that originally we just used replaceInnerHTML to just put
     1503        # the options inside the select, however this is principally broken
     1504        # on IE due to an IE bug. Microsoft has confirmed the bug but is not
     1505        # giving information on whether it has or it will ever be fixed.
     1506        # For further info, see http://support.microsoft.com/default.aspx?scid=kb;en-us;276228
     1507        # The current solution, replace the outer node, works solidly.
     1508        result = ['<select id="second">']
     1509        result.extend(['<option>%s</option>' % item for item in mapping[value]])
     1510        result.append('</select>')
     1511        self.getCommandSet('core').replaceHTML('select#second', ' '.join(result))
     1512        return self.render()
    14931513
    14941514    def create_course_results(self,cert_id,current_level): ###(
  • WAeUP_SRP/branches/joachim-azax-branch/__init__.py

    r1988 r1997  
    3030import Products.WAeUP_SRP.WAeUPPermissions
    3131import WAeUPTool
    32 import Azax
    3332
    3433import Widgets
    3534tools = (WAeUPTool.WAeUPTool,
    36          Azax.KSSTool)
     35        )
    3736
    3837waeup_types = (
  • WAeUP_SRP/branches/joachim-azax-branch/profiles/default/skins.xml

    r1988 r1997  
    33   cookie_persistence="False" default_skin="CPSSkins"
    44   request_varname="portal_skin">
    5  <object name="waeup_azax" meta_type="Filesystem Directory View"
    6     directory="WAeUP_SRP/skins/waeup_azax"/>
     5 <object name="waeup_kss" meta_type="Filesystem Directory View"
     6    directory="WAeUP_SRP/skins/waeup_kss"/>
    77 <object name="waeup_custom" meta_type="Filesystem Directory View"
    88    directory="WAeUP_SRP/skins/waeup_custom"/>
  • WAeUP_SRP/branches/joachim-azax-branch/profiles/default/toolset.xml

    r1988 r1997  
    2323 <required tool_id="waeup_tool"
    2424           class="Products.WAeUP_SRP.WAeUPTool.WAeUPTool"/>
    25  <required tool_id="kss_tool"
    26            class="Products.WAeUP_SRP.Azax.KSSTool"/>
    2725</tool-setup>
  • WAeUP_SRP/branches/joachim-azax-branch/skins/waeup_design/main_template.pt

    r1988 r1997  
    3838          <metal:block define-slot="base">
    3939            <base href=""
    40                   tal:attributes="href string:${context/get_proxy_url}" />
     40                  tal:attributes="href string:${here_url}/" />
    4141          </metal:block>
    4242        </metal:block>
  • WAeUP_SRP/branches/joachim-azax-branch/skins/waeup_student/student_index.py

    r1845 r1997  
    3030        return context.study_course_view()
    3131    elif context.portal_type == 'StudentStudyLevel':
    32         return context.study_level_view()
     32        return context.study_level_view_azax()
    3333    elif context.portal_type == 'StudentClearance':
    3434        return context.clearance_view()
Note: See TracChangeset for help on using the changeset viewer.