|
Rather than having to have a file in a site of a specific ID, can this be a file that lives somewhere else and configurable via sakai.properties? Or have the questions in the database as well?
Steve,
I could make the site id to be configurable with ids other than "setupQuestionsAdmin". However, without populating proper tables in db, we will need such a site for upload the question file. Certain folder structure is also expected within the site. Like the question file should sits inside a "config" folder, whose name can also be configurable. Upload questions.xml file is an easier way for non-db-admins to create and change the question set. However, the questions can also be inserted into db in the first place, and updated afterwards to allow new question types. This approach will put the whole task into db admin's range. Thanks, - Zhen |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Currently in order for the the configuration file questions.xml file to be recognized, it needs to be inside "config" folder within site of id "setupQuestionsAdmin".
Once the system reads the file, db is populated with the new questions, old questions will be marked "not current", but not deleted. Then the questions.xml file will be moved into a paralleled folder named "configBack".
In the future, if new questions are needed, simply drop the questions.xml file into "config" folder again, and the above steps will be performed again.
Thanks,
- Zhen