Changeset 8106 for main/waeup.kofa/trunk


Ignore:
Timestamp:
11 Apr 2012, 11:07:58 (13 years ago)
Author:
Henrik Bettermann
Message:

Move file widget templates to the browser package.

Location:
main/waeup.kofa/trunk/src/waeup/kofa
Files:
2 added
2 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/layout.py

    r7819 r8106  
    5353default_primary_nav_template.__grok_name__ = 'default_primary_nav'
    5454
     55default_filedisplay_template = PageTemplateFile(
     56    os.path.join('templates', 'filedisplay.pt'))
     57default_filedisplay_template.__grok_name__ = 'default_filedisplay'
     58
     59default_fileupload_template = PageTemplateFile(
     60    os.path.join('templates', 'fileupload.pt'))
     61default_fileupload_template.__grok_name__ = 'default_fileupload'
     62
    5563class action(grok.action):
    5664
  • main/waeup.kofa/trunk/src/waeup/kofa/students/viewlets.py

    r8078 r8106  
    2828from waeup.kofa.browser.viewlets import (
    2929    PrimaryNavTab, ManageActionButton, AddActionButton)
    30 from waeup.kofa.browser.layout import default_primary_nav_template
     30from waeup.kofa.browser.layout import (
     31    default_primary_nav_template,
     32    default_filedisplay_template, default_fileupload_template)
    3133from waeup.kofa.students.workflow import (ADMITTED, PAID,
    3234    CLEARANCE, REQUESTED, RETURNING, CLEARED, REGISTERED, VALIDATED)
     
    605607    grok.viewletmanager(FileManager)
    606608    grok.view(StudentClearanceDisplayFormPage)
    607     grok.template('filedisplay')
     609    template = default_filedisplay_template
    608610    grok.order(1)
    609611    grok.require('waeup.viewStudent')
     
    628630    grok.viewletmanager(FileManager)
    629631    grok.view(StudentClearanceManageFormPage)
    630     grok.template('fileupload')
     632    template = default_fileupload_template
    631633    grok.require('waeup.uploadStudentFile')
    632634    tab_redirect = '?tab2'
Note: See TracChangeset for help on using the changeset viewer.