Allow teachers to view demographics of ALL students and contacts in school

Asked by Paul Newton

I am in the process of implementing schooltool at a small non-profit preschool. My primary purpose is to have demographic info for each student available to every teacher, to show them their scheduled students for the day, and intervention tracking.

I would like my teachers to have access for viewing trh demographic info for every student in the school along with their respective guardians/parents. Is this possible? If not, is there a workaround possible involving adding every student and teacher to an extra group of some sort?

Thank you!

I LOVE schooltool!

Question information

Language:
English Edit question
Status:
Open
For:
SchoolTool Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was reopened

Revision history for this message
Paul Newton (paulallen-newton) said :
#1

I would also like teachers to be able to view contact info for all other teachers in the school. Any ideas?

I tried adding all the students to a group called 'everyone' and adding all teachers as responsible parties of that group with no success. it allowed the teachers to see who was in the group, but not to view their demographics.

Revision history for this message
Ignas Mikalajūnas (ignas) said :
#2

Look at Server -> Security there is an overview of who can do what in
schooltool.

To workaround the problem either add all teachers to the clerks group (will
alow them
to do much more than you want though)

Or create a mega-section with all students and all teachers as the teachers
of the section (seems like a lot of work)

Ignas

On Fri, Jun 22, 2012 at 4:31 AM, Paul Newton <
<email address hidden>> wrote:

> Question #201137 on SchoolTool changed:
> https://answers.launchpad.net/schooltool/+question/201137
>
> Paul Newton gave more information on the question:
> I would also like teachers to be able to view contact info for all other
> teachers in the school. Any ideas?
>
> I tried adding all the students to a group called 'everyone' and adding
> all teachers as responsible parties of that group with no success. it
> allowed the teachers to see who was in the group, but not to view their
> demographics.
>
> --
> You received this question notification because you are an answer
> contact for SchoolTool.
>

Revision history for this message
Paul Newton (paulallen-newton) said :
#3

Server > Security tells me that teachers are only allowed to view students who are in classes they are the instructor for, but does not allow me to change that permission.

I looked into adding teachers as clerks, but it allows them too much permission.

I looked into creating one mega section as well, but it seems clumsy, especially since we are enrolling new students all year.

Revision history for this message
Ignas Mikalajūnas (ignas) said :
#4

<?xml version="1.0"?>
<configure xmlns="http://schooltool.org/securitypolicy"
           xmlns:zope="http://namespaces.zope.org/zope"
           i18n_domain="schooltool">

  <allow
     interface="schooltool.course.section.Section"
     crowds="teachers"
     permission="schooltool.view" />

  <allow
     interface="schooltool.person.interfaces.IPersonContainer"
     crowds="teachers"
     permission="schooltool.view" />

  <allow
     interface="schooltool.person.interfaces.IPerson"
     crowds="teachers"
     permission="schooltool.view" />

</configure>

If you would find your schooltool plugins directory in /etc/schooltool
(somewhere there don't have schooltool installed)
and put a file teacher-security.zcml in there with the xml content above it
should work.

Ignas

On Fri, Jun 22, 2012 at 5:35 AM, Paul Newton <
<email address hidden>> wrote:

> Question #201137 on SchoolTool changed:
> https://answers.launchpad.net/schooltool/+question/201137
>
> Status: Answered => Open
>
> Paul Newton is still having a problem:
> Server > Security tells me that teachers are only allowed to view
> students who are in classes they are the instructor for, but does not
> allow me to change that permission.
>
> I looked into adding teachers as clerks, but it allows them too much
> permission.
>
> I looked into creating one mega section as well, but it seems clumsy,
> especially since we are enrolling new students all year.
>
> --
> You received this question notification because you are an answer
> contact for SchoolTool.
>

Revision history for this message
Paul Newton (paulallen-newton) said :
#5

Prefect!

That gave me exactly what I was looking for. The only caveat is that it revoked the demographic access rights for all my administration, but I just added them to the teacher group and all is well.

Thank you so much!

Revision history for this message
Paul Newton (paulallen-newton) said :
#6

Thanks Ignas Mikalajūnas, that solved my question.

Revision history for this message
Zainuddin (zainuddin) said :
#7

Dear Ignas,

The above patch works well with schooltool 2.1 but it does not fully work on schooltool 2.3 installed in edubuntu 12.10. It does give people list of names, but when we click on a name, it displays the log in page with the following message;

 "You are not allowed to access this page. You can click on the back button in your browser to go back, or ask a more privileged user to log in.:

This function is very useful for teachers and hope the patch could be updated.

Zainuddin

Revision history for this message
Paul Newton (paulallen-newton) said :
#8

I second Zainuddin's comment.

I love schooltool, and it has been working wonderfully for my small non-profit. It was one of the selling points for switching my school over to Linux.

Unfortunately, since the latest update, this patch no longer works, which is a major drawback for us.

Revision history for this message
Ignas Mikalajūnas (ignas) said :
#9

I'll try and take a look at it tomorrow.

Revision history for this message
Zainuddin (zainuddin) said :
#10

Thank you Ignas :)

On Sun, Oct 28, 2012 at 9:05 AM, Ignas Mikalajūnas <
<email address hidden>> wrote:

> Question #201137 on SchoolTool changed:
> https://answers.launchpad.net/schooltool/+question/201137
>
> Ignas Mikalajūnas posted a new comment:
> I'll try and take a look at it tomorrow.
>
> --
> You received this question notification because you are a direct
> subscriber of the question.
>

Revision history for this message
Ignas Mikalajūnas (ignas) said :
#11

Add this to the file:

  <allow
     interface="schooltool.basicperson.interfaces.IBasicPerson"
     crowds="teachers"
     permission="schooltool.view" />

in:

  <allow
     interface="schooltool.person.interfaces.IPerson"
     crowds="teachers"
     permission="schooltool.view" />

<<<here>>>

</configure>

in that file.

Revision history for this message
Paul Newton (paulallen-newton) said :
#12

Thank you for all your help, Ignas!

Unfortunately, after modifying the file and restarting schooltool, I still get the same error. Maybe I entered it wrong.

Could you please past the text of the whole file?

Thanks again for all your hard work!

Revision history for this message
Zainuddin (zainuddin) said :
#13

Thank you Ignas for the solution. The function is working fine.

Paul, update the patch as follow;

<?xml version="1.0"?>
<configure xmlns="http://schooltool.org/securitypolicy"
           xmlns:zope="http://namespaces.zope.org/zope"
           i18n_domain="schooltool">

  <allow
     interface="schooltool.course.section.Section"
     crowds="teachers"
     permission="schooltool.view" />

  <allow
     interface="schooltool.person.interfaces.IPersonContainer"
     crowds="teachers"
     permission="schooltool.view" />

  <allow
     interface="schooltool.person.interfaces.IPerson"
     crowds="teachers"
     permission="schooltool.view" />

  <allow
     interface="schooltool.basicperson.interfaces.IBasicPerson"
     crowds="teachers"
     permission="schooltool.view" />

</configure>

Can you help with this problem?

Provide an answer of your own, or ask Paul Newton for more information if necessary.

To post a message you must log in.