[Aimmath-developers] admin.html and defaultZone (was: Re: installlin.html)
Brought to you by:
gustav_delius,
npstrick
From: Manolis M. <ma...@ma...> - 2003-08-31 02:19:13
|
Greg said: >>I was going to add some comments about this, as if one >>already has an installation using port 80, one has to remember to set >>that in ManualConfig.mpl ... otherwise admin.html, index.html and >> DefaultZone.mpl (in root/) are set with :8080 in their paths, and if one >> adds port 80 to ManualConfig.mpl afterwards and reruns AutocConfig.mpl >> these files are not rewritten (and you have to manually change them). Manolis said > > they are not rewritten because you already had a DeafultZone... otherwise > > for new users its fine. Greg said: > Are you saying that if I had run AutoConf.mpl having forgotten to set the > port and so generated a DefaultZone.mpl file, that it would have been > sufficient to delete the DefaultZone.mpl file, edit ManualConfig.mpl > with the right port and the run AutoConf.mpl again, that admin.html, > index.html and DefaultZone.mpl would be regenerated? If we are talking about a fresh installation then yes (I think) deleting the DefaultZone.mpl will do the job. This is from my understanding of what Neil told me before and from what I see in the code. The problem comes when you have previous subjects in this. But I 've noticed that when you use first time admin.html the subejcts will be hiden so one just needs to unhide them. Everything will work provided you kept your previous seetings ... it's ok for now. Also you have to use your previous password and email as I think that changes are not propagated to all subjects. Neil could perhaps explain this once more ... (I attach his previous email at the bottom) also I made I change that I want to consult you about. At AutoConf.mpl I changed the line setconfig('ServletURL', cat("http://",Config['FullContext'],"/Alice")): to setconfig('ServletURL', "/Alice"); I think this is better as it define the link relative to the current installation anyway and apart from helping if you tunnnel connections like I do and myserver:8080 is not the correct URL anymore it could have also reduced the problem now as one could just use the same old admin.html that she had. I think the same could happen to the DocumentURL and maybe some paths in the .m files ? Manolis Neil said: index.html and admin.html are written by the MakeLoginPage method of the DefaultZone object. This method is defined in aim/Zone.mpl, and it is invoked from aim/admin/Zone.mpl, aim/admin/ZoneAdminHome.mpl and aim/admin/ZoneStudentHome.mpl. The index.html file is constructed by gluing together the files studenthead.html and studentfoot.html, and inserting a table of subjects built from the Subjects field in the DefaultZone object. The web interface allows you to edit studenthead.html and studentfoot.html directly. Similarly, admin.html is built from zone{head,foot}.html, which can be edited directly. Currently there is no good way to copy information from an old AIM setup to a new clean installation; you just have to set up the subjects and quizzes again by hand and copy the question files across manually. Of course this is not satisfactory. |