Changeset 169


Ignore:
Timestamp:
13 Nov 2005, 22:23:03 (19 years ago)
Author:
Henrik Bettermann
Message:

temporary views modified

Location:
waeup_product/trunk
Files:
2 added
7 edited

Legend:

Unmodified
Added
Removed
  • waeup_product/trunk/Extensions/install.py

    r166 r169  
    196196                        'action'    : "python: portal.portal_url.getUrlFromRpath('sections/demouni/academics')",
    197197                        #'action'    : 'string:${portal_url}/academics',
    198                         'permission': (View ),
     198                        'permission': (UniversityManage),
    199199                        'category'  : 'main_tabs',
    200200                        'visible'   : 1,
     
    205205                        'action'    : "python: portal.portal_url.getUrlFromRpath('sections/demouni/accommodation')",
    206206                        #'action'    : 'string:${portal_url}/accommodation',
    207                         'permissions': (View),
     207                        'permissions': (UniversityManage),
    208208                        #'permissions': (ModifyPortalContent,UniversityManage,StudentManage),
    209209                        'category'  : 'main_tabs',
     
    584584            content.edit(mapping={'Title': heading})
    585585    return '\n'.join(log)
    586                
    587 ###)
    588 
     586
     587###)
     588
  • waeup_product/trunk/skins/waeup_default/getWAeUPLayouts.py

    r166 r169  
    791791    },
    792792    'layout': {
    793         'style_prefix': 'layout_default_',
     793        'style_prefix': 'layout_waeup_',
    794794        'flexible_widgets': (),
    795795        'ncols': 1,
     
    10911091    },
    10921092   'layout': {
    1093         'style_prefix': 'layout_default_',
     1093        'style_prefix': 'layout_waeup_',
    10941094        'flexible_widgets': (),
    10951095        'ncols': 1,
     
    18341834    },
    18351835   'layout': {
    1836         'style_prefix': 'layout_default_',
     1836        'style_prefix': 'layout_waeup_',
    18371837        'flexible_widgets': (),
    18381838        'ncols': 1,
  • waeup_product/trunk/skins/waeup_default/getWAeUPTypes.py

    r166 r169  
    9595    'actions': ({'id': 'view',
    9696                 'name': 'Standard View',
    97                  #'action': 'students_folder_view',
    9897                 'action': 'temporary_view_all',
    99                  #'condition': "python:member and 'Manager' in member.getRoles()",
    10098                 'permissions': (View,)},
    10199##                {
     
    273271          #'action': 'string:${object_url}/student_index_html',
    274272          'action': 'string:${object_url}/temporary_view_all',
    275           'condition':  'python:object.getContent().memberIsOwner()',
     273          'condition':  "python:object.getContent().memberIsOwner() or 'UniversityManager'in member.getRoles()",
    276274          'permission': (View,),
    277275          'category': 'object',
     
    306304          {
    307305          'id'        : 'DOCUMENTS',
    308           'name'      : 'upload Documents',
     306          'name'      : 'Upload Documents',
    309307          'action'    : 'string:${object/absolute_url}/DOCUMENTS',
    310308          'condition':  "python: object.getContent().memberIsOwner() and getattr(object,'PERSONAL',None)",
     
    463461    'actions': (
    464462         {'id': 'view',
    465           'name': 'View',
     463          'name': 'Standard View',
    466464          'action': 'string:${object_url}/temporary_view_all',
    467465          'permission': (View),
  • waeup_product/trunk/skins/waeup_default/temporary_view_all.py

    r167 r169  
    22# $Id$
    33
    4 """Default view for the forum. If post_id is not None, post with id = <post_id>
    5 will be displayed, otherwise first post will be displayed."""
     4"""
     5"""
    66
    77member = context.portal_membership.getAuthenticatedMember()
     
    1313#return context.temporary_view_all_form(psm=psm)
    1414if context.portal_membership.isAnonymousUser():
    15     return context.temporary_view_all_form(psm=psm)
     15    return context.students.student_view_all_form(psm=psm)
    1616else:
    1717    if url0.find(uname) > 0 or 'UniversityManager' in roles or 'Manager' in roles:
     
    2121        for r in res:
    2222            if r.getPath().endswith("students/%s" % uname):
    23                 return r.getObject().temporary_view_all_form(psm=psm)
    24         return context.temporary_view_all_form(psm=psm)
     23                return r.getObject().student_view_student_form(psm=psm)
     24        return context.students.student_view_all_form(psm=psm)
  • waeup_product/trunk/skins/waeup_default/temporary_view_all_form.pt

    r166 r169  
    3939            <td>
    4040              <i>
    41                 <a href="xxx" tal:condition="backend"
     41                <a href="xxx"
    4242                   tal:attributes="href item/absolute_url"
    4343                   tal:content="item/title_or_id"></a>
    44                 <span tal:condition="frontend" tal:content="item/title_or_id"/>
    4544              </i>
    4645            </td>
  • waeup_product/trunk/skins/waeup_student/check_admission_form.pt

    r164 r169  
    1818          Instructions :<br />
    1919          <ul>
    20             <li>Enter the scratch card PIN for admission check </li>
    21             <li>Print the Admission Slip which is displayed if you are admitted by the School </li>
    22             <li>Buy a Clearance card </li>
     20            <li>Buy an Admission Check Scratch Card </li>
     21            <li>Enter the PIN here </li>
     22            <li>Print the Admission Slip which is displayed if you are admitted by the Univesity</li>
     23            <li>Buy a Clearance Scratch Card </li>
    2324            <li>Proceed to the Clearance Eligibility Online Form and fill your O/L details </li>
    24             <li>Proceed to the School with all original documents for Clearance to finalize the clearance process </li>
     25            <li>Proceed to the Univesity with all original documents for clearance to finalize the clearance process </li>
    2526          </ul>
    2627      </metal:block>
  • waeup_product/trunk/skins/waeup_student/clearence_form.pt

    r164 r169  
    1818          Instructions :<br />
    1919          <ul>
    20             <li>Buy a Clearance card </li>
     20            <li>Buy a Clearance Scratch Card </li>
    2121            <li>Enter the PIN here </li>
    2222            <li>Proceed to the Clearance Eligibility Online Form and fill your O/L details </li>
    23             <li>Proceed to the School with all original documents for Clearance to finalize the clearance process</li>
     23            <li>Proceed to the Univesity with all original documents for clearance to finalize the clearance process</li>
    2424          </ul>
    2525      </metal:block>
Note: See TracChangeset for help on using the changeset viewer.