/usr/lib/python2.7/dist-packages/schooltool/intervention/interfaces.py is in python-schooltool.intervention 2.7.1-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 | #
# SchoolTool - common information systems platform for school administration
# Copyright (c) 2005 Shuttleworth Foundation
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
from zope.container.interfaces import IContainer, IContained
from zope.container.constraints import contains, containers
from zope.interface import Interface, implements
from zope.schema.interfaces import IList, IBool
from zope.schema import TextLine, Text, Bool, List, Date, Datetime
from schooltool.intervention import InterventionGettext as _
class IInterventionRootMarker(Interface):
"""A marker interface for the root intervention objects."""
class IInterventionStudentMarker(Interface):
"""A marker interface for the student intervention objects."""
class IInterventionMarker(Interface):
"""A marker interface for the actual intervention objects.
Presently, these include messages and goals."""
class IInterventionTabProxy(Interface):
"""An interface for getting the displayable value of a message or goal."""
class IStudentSchoolYearsProxy(Interface):
"""A marker interface for the student schoolyear proxy."""
class IStudentSchoolYearProxy(Interface):
"""A marker interface for the student schoolyear proxy."""
class IPersonListField(IList):
"""A field that represents a list of people."""
class PersonListField(List):
"""A field that represents a list of people."""
implements(IPersonListField)
class IGoalMetField(IBool):
"""A field that represents the goal met boolean."""
class GoalMetField(Bool):
"""A field that represents the goal met boolean."""
implements(IGoalMetField)
class IInterventionRoot(IContainer):
"""Container of IInterventionSchoolYear objects."""
contains('schooltool.intervention.interfaces.IInterventionSchoolYear')
class IInterventionSchoolYear(IContainer):
"""Container of the IInteventionStudent objects."""
contains('schooltool.intervention.interfaces.IInterventionStudent')
containers(IInterventionRoot)
class IInterventionStudent(IContainer):
"""Container of the student's intervention containers."""
contains(IContainer)
containers(IInterventionSchoolYear)
class IInterventionMessages(IContainer):
"""Container of intervention messages."""
contains('schooltool.intervention.interfaces.IInterventionMessage')
containers(IInterventionStudent)
class IInterventionMessage(IContained):
"""Intervention message about a given student."""
sender = List(
title=u"List of contacts (relationship) for the sender(s)"
)
recipients = PersonListField(
title=_("Recipients"),
)
subject = TextLine(
title=_("Subject"),
required=False,
)
body = Text(
title=_("Message body")
)
status_change = Bool(
title=u"Status Change Message",
required=False
)
created = Datetime(
title=u"Creation Date/Time",
)
containers(IInterventionMessages)
class IInterventionGoals(IContainer):
"""Container of the studnet's interventions goals."""
contains('schooltool.intervention.interfaces.IInterventionGoal')
containers(IInterventionStudent)
class IInterventionGoal(IContained):
"""intervention goal for a given student."""
presenting_concerns = Text(
title=_("Presenting concerns"),
required=False,
)
goal = Text(
title=_("Goal"),
)
strengths = Text(
title=_("Strengths"),
required=False,
)
indicators = Text(
title=_("Indicators"),
required=False,
)
intervention = Text(
title=_("Intervention"),
required=False,
)
timeline = Date(
title=_("Timeline"),
)
persons_responsible = PersonListField(
title=_("Persons responsible"),
description=_(u"The selected people will receive messages regarding"
" this goal through their interventions inbox and"
" email (if selected below)."),
)
at_one_time_responsible = List(
title=_("Persons who have been at one time responsible"),
)
goal_met = GoalMetField(
title=u"Goal met",
required=False,
default=False,
)
follow_up_notes = Text(
title=_("Follow up notes"),
required=False
)
notified = Bool(
title=u"Notification sent to persons responsible"
)
creator = List(
title=u"List of contacts (relationship) for the creator(s)"
)
created = Datetime(
title=u"Creation Date/Time",
)
containers(IInterventionGoals)
class IInterventionPersonsResponsible(Interface):
"""An interface for getting the persons_responsible of a message or goal."""
class IInterventionSchoolYearId(Interface):
"""An interface for getting the schoolYearId of a message or goal."""
class IInterventionType(Interface):
"""An interface for getting the intervention type as a string."""
class IInterventionGetter(Interface):
"""An interface for getting the displayable value of a message or goal."""
class ISectionMessagesProxy(Interface):
"""An interface for adapting the SectionMessagesProxy."""
class IStudentMessagesGoalsProxy(Interface):
"""An interface for adapting the StudentMessagesGoalsProxy."""
class IIndependentActivities(Interface):
"""Bridge interface to remove intervention dependency on gradebook."""
|