Changeset 3827


Ignore:
Timestamp:
1 Jan 2009, 16:42:57 (16 years ago)
Author:
uli
Message:

Make student container available as utility.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup/branches/ulif-rewrite/src/waeup/students/studentcontainer.py

    r3551 r3827  
    33
    44from waeup.basecontainer import BaseContainer
     5from waeup.interfaces import IStudentContainer
    56from student import Student, fromCsv
    67from waeup.utils import importexport as csv
     
    1011    The node containing the student models
    1112    """
     13
     14    grok.implements(IStudentContainer)
     15   
    1216    name = u"Students"
    1317    childClass = Student
    1418    specialActions = [u"import", u"export"]   
    1519
     20
     21   
    1622class Import(grok.View):
    1723    def render(self):
     
    4046        csv.writeFile(result)
    4147        return "yeah %s" % t[0]
     48
     49grok.global_utility(StudentContainer, provides=IStudentContainer)
Note: See TracChangeset for help on using the changeset viewer.