Changeset 170


Ignore:
Timestamp:
14 Nov 2005, 20:58:00 (19 years ago)
Author:
Henrik Bettermann
Message:

minor modifications

Location:
waeup_product/trunk
Files:
5 edited

Legend:

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

    r169 r170  
    192192                      },
    193193                      { 'tool'      : 'portal_actions',
    194                         'id'        : 'Academics',
     194                        'id'        : 'academics',
    195195                        'name'      : 'Academics',
    196196                        'action'    : "python: portal.portal_url.getUrlFromRpath('sections/demouni/academics')",
  • waeup_product/trunk/Students.py

    r168 r170  
    6666    def Description(self):
    6767        """compose description"""
    68         data = getattr(self,'JAMB',None)
     68        data = getattr(self,'PERSONAL',None)
     69        data_jamb = getattr(self,'JAMB',None)
     70        if data is None:
     71            data = data_jamb
    6972        if data:
    70             content = data.getContent()
    71             return "%s %s is studying %s" % (content.firstname,content.lastname,content.course)
     73            content_data = data.getContent()
     74            content_jamb = data_jamb.getContent()
     75            return "%s %s is studying %s" % (content_data.firstname,content_data.lastname,content_jamb.course)
    7276        return self.description
    7377
     
    8084                '%s_date' % ident : ds.get('sc_date'),
    8185                }
    82                
     86
    8387        if self.portal_membership.isAnonymousUser():
    8488            tmp_user = CPSUnrestrictedUser('s%(jamb_id)s' % ds, '',
  • waeup_product/trunk/skins/waeup_default/getWAeUPTypes.py

    r169 r170  
    304304          {
    305305          'id'        : 'DOCUMENTS',
    306           'name'      : 'Upload Documents',
     306          'name'      : 'Scanned Documents',
    307307          'action'    : 'string:${object/absolute_url}/DOCUMENTS',
    308308          'condition':  "python: object.getContent().memberIsOwner() and getattr(object,'PERSONAL',None)",
     
    316316          {
    317317          'id'        : 'register_study_level',
    318           'name'      : 'Register for next Level',
     318          'name'      : 'Register for Next Level',
    319319          'action'    : 'string:${object/absolute_url}/register_level',
    320320          'condition':  'python: object.getContent().memberIsOwner() and not object.getContent().isRegisteredForCurrentLevel()',
     
    514514          'visible': True,},
    515515          {'id': 'add_level',
    516           'name': 'Register for next year',
     516          'name': 'Register for Next Year',
    517517          'condition': "python:member and 'Student'in member.getRoles()",
    518518          'action'    : 'register_level',
     
    574574          'name': 'action_metadata',
    575575          'action': 'cpsdocument_metadata',
     576          'condition': "python:member and 'Manager' in member.getRoles()",
    576577          'permissions': (ModifyPortalContent,UniversityManage,)},
    577578          {'id': 'localroles',
  • waeup_product/trunk/skins/waeup_default/portlet_session_info.pt

    r166 r170  
    2121      </span>
    2222    </tal:block>
     23    <tal:block condition="python: 0">
    2324    <br />
    2425    <a href="" tal:condition="python: 'Student' in member.getRoles() and not 'UniversityManager' in member.getRoles()"
     
    2627      Go to your personal area
    2728    </a>
     29    </tal:block>
    2830    <br />
    2931    <a href="" tal:condition="python: 0"
  • waeup_product/trunk/skins/waeup_student/booked_accommodation.pt

    r166 r170  
    88               >
    99    You have successfully booked bed nr <span tal:content="acco/beds_assigned" /> in <span tal:content="acco/heading" />.
    10     <br />Your next steps:
     10    <p>Your next steps:</p>
    1111    <ul>
    12       <li>Buy a Hostel Scratch card</li>
    13       <li>Login with your user_id and password </li>
    14       <li>Klick on the pay Hostel Fee tab</li>
     12      <li>Buy a Hostel Fee Scratch Card</li>
     13      <li>Login with your user id and password </li>
     14      <li>Click 'Pay Hostel Fee'</li>
    1515    </ul>
    1616  </metal:block>
Note: See TracChangeset for help on using the changeset viewer.