Ignore:
Timestamp:
27 Sep 2006, 21:45:50 (18 years ago)
Author:
joachim
Message:

fixed button functions, level_index_view

Location:
WAeUP_SRP/trunk/skins/waeup_academics
Files:
8 edited

Legend:

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

    r486 r573  
    1313"""
    1414
    15 ret_url = context.absolute_url() + '/academics_contents'
     15ret_url = context.absolute_url() + '/academics_index'
    1616
    1717if ids:
  • WAeUP_SRP/trunk/skins/waeup_academics/getCertificateInfo.py

    r556 r573  
    2424info['is_manager'] = 'Manager' in roles or 'SectionManager' in roles
    2525info['is_student'] = 'Student' in roles
    26 info['action'] = "%s/academics_index_view" % context.campus.absolute_url()
     26info['action'] = "%s" % context.campus.absolute_url()
    2727info['choosen_ids'] = request.get('ids',[])
    2828info['doc'] = context.getContent()
  • WAeUP_SRP/trunk/skins/waeup_academics/getCoursesInfo.py

    r570 r573  
    2121info = {}
    2222member_id = str(member)
    23 dep_id = request.get('PATH_TRANSLATED').split('/')[-2]
     23#dep_id = request.get('PATH_TRANSLATED').split('/')[-2]
     24dep_id = context.aq_parent.getId()
    2425roles = member.getRoles()
    2526info['is_manager'] = 'Manager' in roles or 'SectionManager' in roles
    2627info['is_student'] = 'Student' in roles
    27 info['action'] = "%s/faculty_index_view" % context.absolute_url()
     28info['action'] = "%s" % context.absolute_url()
    2829info['choosen_ids'] = request.get('ids',[])
    2930info['doc'] = context.getContent()
  • WAeUP_SRP/trunk/skins/waeup_academics/getDepartmentsInfo.py

    r551 r573  
    2424info['is_manager'] = 'Manager' in roles or 'SectionManager' in roles
    2525info['is_student'] = 'Student' in roles
    26 info['action'] = "%s/faculty_index_view" % context.absolute_url()
     26info['action'] = "%s" % context.absolute_url()
    2727info['choosen_ids'] = request.get('ids',[])
    2828items = []
  • WAeUP_SRP/trunk/skins/waeup_academics/getFacultiesInfo.py

    r551 r573  
    2424info['is_manager'] = 'Manager' in roles or 'SectionManager' in roles
    2525info['is_student'] = 'Student' in roles
    26 info['action'] = "%s/academics_index_view" % context.campus.absolute_url()
     26info['action'] = "%s" % context.campus.absolute_url()
    2727info['choosen_ids'] = request.get('ids',[])
    2828items = []
  • WAeUP_SRP/trunk/skins/waeup_academics/getLevelInfo.py

    r571 r573  
    1818member = mtool.getAuthenticatedMember()
    1919path_info = request.get('PATH_INFO').split('/')
    20 
     20try:
     21    i = int(path_info[-1])
     22    p = 0
     23except:
     24    p = 1
    2125info = {}
    2226member_id = str(member)
    2327pt = request.get('PATH_TRANSLATED').split('/')
    24 dep_id = pt[-3]
    25 cert_id = pt[-2]
    26 level_id = pt[-1]
     28
     29dep_id = pt[-(3+p)]
     30cert_id = pt[-(2+p)]
     31level_id = pt[-(1+p)]
    2732roles = member.getRoles()
    2833info['is_manager'] = 'Manager' in roles or 'SectionManager' in roles
    2934info['is_student'] = 'Student' in roles
    30 info['action'] = "%s/faculty_index_view" % context.absolute_url()
     35info['action'] = "%s" % context.absolute_url()
    3136info['choosen_ids'] = request.get('ids',[])
    3237info['doc'] = context.getContent()
     
    4954    row['semester'] = rd.semester
    5055    row['url'] = ro.absolute_url()
     56    row['review_state'] = wf.getInfoFor(ro,'review_state','None')
    5157    if rd.semester == 'first':
    5258        first.append(row)
  • WAeUP_SRP/trunk/skins/waeup_academics/level_index_view.pt

    r566 r573  
    3535                       checked python:id in info['choosen_ids'];"
    3636                       />
    37               </td>
    38               <td><a href="view" tal:attributes="href string:${row/url}">
    39                   <strong tal:content="row/title" /></a> </td>
    40               <td tal:content="row/id"></td>
    41               <td tal:content="python: test(row['core'],'core','elective')"></td>
    42             </tr>
    43           </span>
    44         </table>
     37                </td>
     38                <td><a href="view" tal:attributes="href string:${row/url}">
     39                    <strong tal:content="row/title" /></a> </td>
     40                <td tal:content="row/id"></td>
     41                <td tal:content="python: test(row['core'],'core','elective')"></td>
     42                <td tal:content="row/review_state"> </td>
     43                <td><a href="edit" tal:attributes="href string:${row/url}/cpsdocument_edit_form">[edit]</a></td>
     44              </tr>
     45            </span>
     46          </table>
    4547        <table width="100%" cellspacing="0" cellpadding="2"
    4648               class="folderButtons">
  • WAeUP_SRP/trunk/skins/waeup_academics/retract_checked.py

    r486 r573  
    1313"""
    1414
    15 ret_url = context.absolute_url() + '/academics_contents'
     15ret_url = context.absolute_url() + '/academics_index'
    1616
    1717if ids:
Note: See TracChangeset for help on using the changeset viewer.