FET Forum

FET Development => Custom FET for Particular Needs => Topic started by: Jaume Obrador on July 18, 2009, 10:26:04 AM

Title: FET for schools in Illes Balears
Post by: Jaume Obrador on July 18, 2009, 10:26:04 AM
Hi!

We are leading a project in Balearic Islands to try to introduce new tecnologies in education centers. One of our goals is to improve the use of free software as much as possible, so FET fits on our project perfectly.

What we are planning to implement (or asking whether it's possible to implement) is an import/export module for FET to be able to share data with Gestib, a school administration software used in all schools in Balearic Islands.

Both import and export data is made through XML files, so I'm sure it would be easily done by FET. Specs on that files are unknown yet, but as soon as I can get them I'll start working on that.

I would like to start looking at FET code to see how importing/exporting is done, and also to know if we will get some help on that goal.

Many thanks in advance and kind regards to all you!
Jaume Obrador.
Title: Re: FET for schools in Illes Balears
Post by: Volker Dirr on July 18, 2009, 11:22:15 AM
Hallo,

have a look into the /src/engine/timetableexport.cpp and maybe also into /scr/engine/export.cpp.

Ask more detailed if you need more help. Of course we can help.
Title: Re: FET for schools in Illes Balears
Post by: Jaume Obrador on July 18, 2009, 10:47:06 PM
Thanks a lot Volker.

I'll look into that files. I don't have yet a detailed specs of import/export XML file, but I asked and presented our project just to start looking at the code, now that we are on holidays and I have some time to.

Regards.
Jaume.
Title: Re: FET for schools in Illes Balears
Post by: Volker Dirr on July 19, 2009, 09:22:23 AM
Quote
have a look into the /src/engine/timetableexport.cpp and maybe also into /scr/engine/export.cpp.

I forgot to say: That are the export files of timetable result export and csv export.
Loading a fet file is in /src/engine/rules.cpp function bool Rules::read(...)
But you can read that maybe later. I think it is unneded to understand the xml file format.
Title: Re: FET for schools in Illes Balears
Post by: Volker Dirr on July 19, 2009, 09:27:46 AM
And one more i forgot. Writing the fet xml file (so not only result, also constraints, ...) is done also in rules.cpp function rules::write(...).
Title: Re: FET for schools in Illes Balears
Post by: Jaume Obrador on July 19, 2009, 09:42:05 AM
Many thanks Volker, I was looking now at rules.cpp. Where are the "Import->csv values..." function done?

Regards!
Jaume.
Title: Re: FET for schools in Illes Balears
Post by: Volker Dirr on July 19, 2009, 09:44:27 AM
QuoteMany thanks Volker, I was looking now at rules.cpp. Where are the "Import->csv values..." function done?

in src/engine/import.cpp
Title: Re: FET for schools in Illes Balears
Post by: Jaume Obrador on July 19, 2009, 09:50:10 AM
 :o of course!! :)
Title: Re: FET for schools in Illes Balears
Post by: Liviu Lalescu on July 21, 2009, 09:10:45 AM
To import the FET obtained timetable into another application is very easy this way: use ttt_activities.xml from the generated timetables folder. This has the time for each activity in an xml file.
Title: Re: FET for schools in Illes Balears
Post by: Andrés Chandía on January 27, 2012, 11:22:23 AM
If your school application is based on databases, I think the better solution is to use the csv file (File > Export )