Changeset 4579 for waeup


Ignore:
Timestamp:
27 Dec 2009, 19:44:05 (15 years ago)
Author:
uli
Message:

One view requires direct assignment of template. Still odd.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup/branches/ulif-layout/src/waeup/app.py

    r4474 r4579  
    88from waeup.interfaces import (IUniversity, IStudentContainer, IHostelContainer,
    99                              IFacultyContainer, ICSVDataReceivers)
    10 from waeup.viewlets import MainArea, LeftSidebar, Index, Manage, FormWrapMixin
     10from waeup.viewlets import (MainArea, LeftSidebar, Index, Manage,
     11                            FormWrapMixin, master_template_path)
    1112from waeup.authentication import setup_authentication
    1213from waeup.datacenter import DataCenter
    1314from waeup.users import UserContainer
    1415from waeup.widgets.interfaces import ITableProvider
     16
     17master_template = grok.PageTemplateFile(master_template_path)
    1518
    1619class University(grok.Application, grok.Container):
     
    8285    grok.context(IUniversity)
    8386    grok.require('waeup.manageUniversity')
    84 
    85     def render(self, *args, **kw):
    86         return super(ManageUniversity, self).render(*args, **kw)
     87    grok.template('master_template')
     88   
    8789   
    8890class ManageUniversityMain(FormWrapMixin, grok.Viewlet):
Note: See TracChangeset for help on using the changeset viewer.