- Timestamp:
- 8 Jul 2007, 09:16:21 (17 years ago)
- 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 17 17 from Products.WAeUP_SRP.Academics import makeCertificateCode 18 18 from Products.AdvancedQuery import Eq, Between, Le,In 19 from Products.azax import AzaxBaseView 19 20 import DateTime 20 21 import logging … … 1479 1480 ###) 1480 1481 1481 class StudentStudyLevel(CPSDocument ): ###(1482 class StudentStudyLevel(CPSDocument,AzaxBaseView): ###( 1482 1483 """ 1483 1484 WAeUP Student container for the various student data … … 1491 1492 """compose title""" 1492 1493 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() 1493 1513 1494 1514 def create_course_results(self,cert_id,current_level): ###( -
WAeUP_SRP/branches/joachim-azax-branch/__init__.py
r1988 r1997 30 30 import Products.WAeUP_SRP.WAeUPPermissions 31 31 import WAeUPTool 32 import Azax33 32 34 33 import Widgets 35 34 tools = (WAeUPTool.WAeUPTool, 36 Azax.KSSTool)35 ) 37 36 38 37 waeup_types = ( -
WAeUP_SRP/branches/joachim-azax-branch/profiles/default/skins.xml
r1988 r1997 3 3 cookie_persistence="False" default_skin="CPSSkins" 4 4 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"/> 7 7 <object name="waeup_custom" meta_type="Filesystem Directory View" 8 8 directory="WAeUP_SRP/skins/waeup_custom"/> -
WAeUP_SRP/branches/joachim-azax-branch/profiles/default/toolset.xml
r1988 r1997 23 23 <required tool_id="waeup_tool" 24 24 class="Products.WAeUP_SRP.WAeUPTool.WAeUPTool"/> 25 <required tool_id="kss_tool"26 class="Products.WAeUP_SRP.Azax.KSSTool"/>27 25 </tool-setup> -
WAeUP_SRP/branches/joachim-azax-branch/skins/waeup_design/main_template.pt
r1988 r1997 38 38 <metal:block define-slot="base"> 39 39 <base href="" 40 tal:attributes="href string:${ context/get_proxy_url}" />40 tal:attributes="href string:${here_url}/" /> 41 41 </metal:block> 42 42 </metal:block> -
WAeUP_SRP/branches/joachim-azax-branch/skins/waeup_student/student_index.py
r1845 r1997 30 30 return context.study_course_view() 31 31 elif context.portal_type == 'StudentStudyLevel': 32 return context.study_level_view ()32 return context.study_level_view_azax() 33 33 elif context.portal_type == 'StudentClearance': 34 34 return context.clearance_view()
Note: See TracChangeset for help on using the changeset viewer.