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

temporary views modified

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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)
Note: See TracChangeset for help on using the changeset viewer.