~replaceafill/schooltool/cando

« back to all changes in this revision

Viewing changes to src/schooltool/cando/skill.py

  • Committer: Douglas Cerna
  • Date: 2012-05-28 20:06:38 UTC
  • Revision ID: douglascerna@yahoo.com-20120528200638-8t2qwpelt19jt8t2
Added skills gradebook

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
from zope.component import adapter
23
23
from zope.container.btree import BTreeContainer
24
24
from zope.container.interfaces import INameChooser
 
25
from zope.publisher.interfaces import IPublishTraverse
 
26
from zope.component import queryMultiAdapter
 
27
from zope.security import proxy
25
28
 
26
29
from schooltool.app.app import InitBase, StartUpBase
27
30
from schooltool.app.interfaces import ISchoolToolApplication
177
180
    return ss
178
181
 
179
182
 
 
183
class SectionSkillsTraverser(object):
 
184
 
 
185
    implements(IPublishTraverse)
 
186
 
 
187
    def __init__(self, context, request):
 
188
        self.context = context
 
189
        self.request = request
 
190
 
 
191
    def publishTraverse(self, request, name):
 
192
        return self.context[name]
 
193
 
 
194
 
180
195
# XXX: skill catalog
181
196
#
182
197
# + directly equivalent