import id problem

Bug #325390 reported by Tom Hoffman
6
Affects Status Importance Assigned to Milestone
SchoolTool
Fix Released
High
Ignas Mikalajūnas

Bug Description

My problem is similar to Brian Lockwood's but was not solved in that conversation.

I created the school year 2009, a term called "Semester 1" and a timetable called "Mark 1". When I import the following csv file I receive an error message about a non-existant timetable. I'm presuming a timetable title and id are different but cannot find a reference to a timetable ID field (as distinct from Title). I used the help screen to format the csv file thus:

"Semester 1","Mark 1"
"","",""
"Infotech","sav"
Monday, 1
Wednesday, 5
Wednesday, 6
Thursday, 2
Friday, 6
***
freddie
jill
sarah
etc

All my other imports have been trouble free.

Laurie savage

Changed in schooltool:
assignee: nobody → ignas
importance: Undecided → High
milestone: none → jaunty
Revision history for this message
Tom Hoffman (tom-hoffman) wrote :

There seem to be two problems here:

First, our documentation is out of date. We've removed the first item, the term, from the file. So instead of:

"Semester 1","Mark 1"

you want:

"Mark 1"

We'll fix the documentation.

Second, you need the ID of the term, not the title. At the moment the id is not visible in the web interface (this is a bug) except for in the URL.

So if you navigate to the term you should see a URL more or less like this (the name of the year may be different), where the term ID is the last part of the URL:

http://localhost:7080/schoolyears/2006-2008/mark-1

The ID of "Mark 1" is probably "mark-1" unless you explicitly set it otherwise. You need to use the ID, so the final answer is the first line should probably be

"mark-1"

But you should check the URL to make sure that's the actual term ID.

Revision history for this message
Laurie Savage (sav-pvgc) wrote : Re: [Bug 325390] Re: import id problem

Thanks Tom, that fixed it for me.

Laurie Savage

Just recently, on Fri, Feb 06, 2009 at 07:48:48PM -0000 in fact, Tom Hoffman mentioned:
> There seem to be two problems here:
>
> First, our documentation is out of date. We've removed the first item,
> the term, from the file. So instead of:
>
> "Semester 1","Mark 1"
>
> you want:
>
> "Mark 1"
>
> We'll fix the documentation.
>
> Second, you need the ID of the term, not the title. At the moment the
> id is not visible in the web interface (this is a bug) except for in the
> URL.
>
> So if you navigate to the term you should see a URL more or less like
> this (the name of the year may be different), where the term ID is the
> last part of the URL:
>
> http://localhost:7080/schoolyears/2006-2008/mark-1
>
> The ID of "Mark 1" is probably "mark-1" unless you explicitly set it
> otherwise. You need to use the ID, so the final answer is the first
> line should probably be
>
> "mark-1"
>
> But you should check the URL to make sure that's the actual term ID.
>
> --
> import id problem
> https://bugs.launchpad.net/bugs/325390
> You received this bug notification because you are a direct subscriber
> of the bug.

--
Laurie Savage
========================================================
Markbook Manager/Web Services, Pascoe Vale Girls College
Pascoe Vale, Victoria (w)03 9306 2544 (m)04 3373 8533
========================================================
A classic is something that everyone wants to have read
and nobody wants to read.
  -- Mark Twain, "The Disappearance of Literature"

Changed in schooltool:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.