[Xerte] Re: Xerte 2.16 Inconsistent inclusion of Page Wizard based pages
Julian Tenney
Julian.Tenney at nottingham.ac.uk
Tue Jun 14 11:54:56 BST 2011
Jonathan:
The wizard is run from the onLoad handler of the model xml from the rlm file. I've added a test to see if the data has actually loaded successfully before running the wizard: see below (it's from insertPageTempalte()). You ca add some further tests in there ot see if the file exists when we are trying to read from it etc. Maybe that helps?
modelXML.onLoad = function(success){
if (success == true){ //this has been added
var str1 = modelFile.substr(0, modelFile.lastIndexOf('\\') + 1);
var str2 = editor.FileLocation.substr(0, editor.FileLocation.lastIndexOf('\\') + 1);
tdStr = "FileLocation + '" + str1.substr(str2.length) + modelFile.substr(str1.length) + "'";
tdStr = replace(tdStr, '.rlm', '.xml');
tdStr = replace(tdStr, '\\', '/');
this.firstChild.attributes.templateData = tdStr;
tree.dataProvider.firstChild.firstChild.appendChild(this.firstChild);
tree.dataProvider = tree.dataProvider;
tree.selectedNode = tree.dataProvider.firstChild.firstChild.lastChild;
tree.dispatchEvent({type:'change', target:tree});
if (this.launch == true){
runKOWizard();
}
} else {
mdm.Dialogs.prompt("The model data failed to load"); //in other words did the file exist to try and read from, i.e. has the unzipping finished yet?
}
From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: 14 June 2011 09:08
To: Xerte discussion list
Subject: [Xerte] Re: Xerte 2.16 Inconsistent inclusion of Page Wizard based pages
I'll look as well, but busy this morning,
From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Kemp Johnathan
Sent: 14 June 2011 07:24
To: Xerte discussion list
Subject: [Xerte] Re: Xerte 2.16 Inconsistent inclusion of Page Wizard based pages
The intermittent nature of the problem has delayed my posting earlier as everything has worked correctly, whilst I have been watching for it to go wrong again.
However this morning I opened explorer on my projects "pages" folder. When I started the process of adding a page using the Model Answer page wizard I was able to observe the process in terms of changes to folders. The process and outcome went as follows
1. Select the interface icon
2. Click on the templates menu
3. Click on a Page Wizard from the list of available wizards e.g. e) Interactivity / Annotated Diagram
4. When the Browse for Computer dialogue opens I navigate to the project folder,
5. Expand the project folder,
6. Expand the Pages folder (which I created earlier to hold each page wizard folder).
7. Select the Pages folder
8. Click on the Make New Folder button
9. Enter a name for the new folder e.g. Model Answer
10. Click off the folder name to ensure the name change is saved. The new folder appeared in the project's pages folder, I opened the folder in Explorer and it was, as expected at this point, empty.
11. Ensure the newly named folder is selected.
12. Click the OK button. No change to the folder it remained empty
13. The confirm dialogue is displayed asking if I want to Open the wizard? Still empty
14. Select not to open the wizard. The folder was populated with the three model files and a common folder. In Xerte the page failed to be added to the project and the last page in the project was highlighted as the current page.
This suggests that there is no point in the process where the user can grant more time to Xerte by delaying an action, as the critical tasks all take place after the final "Open the page wizard" dialogue.
I will take a look at the new editor.swf to see if I can duplicate the problem using that.
Kind regards
Johnathan
On 13 June 2011 10:37, Julian Tenney <Julian.Tenney at nottingham.ac.uk<mailto:Julian.Tenney at nottingham.ac.uk>> wrote:
I just committed an editor.swf that does false or 'false' so give it a whirl: it goes in [xerte]/tools
From: xerte-bounces at lists.nottingham.ac.uk<mailto:xerte-bounces at lists.nottingham.ac.uk> [mailto:xerte-bounces at lists.nottingham.ac.uk<mailto:xerte-bounces at lists.nottingham.ac.uk>] On Behalf Of Tom Reijnders
Sent: 10 June 2011 19:30
To: Xerte discussion list
Subject: [Xerte] Re: Xerte 2.16 Inconsistent inclusion of Page Wizard based pages
Could this be the same as the "false" and false??? I noticed when just updating my local svn copy, that you changed the unpacking for templates, but not for the page wizards. It only checks for "false"...
Op 10-6-2011 17:06, Julian Tenney schreef:
If you want to look at the code, look at the function insertPageWizard() in the editor.fla.
From: xerte-bounces at lists.nottingham.ac.uk<mailto:xerte-bounces at lists.nottingham.ac.uk> [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Kemp Johnathan
Sent: 10 June 2011 14:17
To: Xerte discussion list
Subject: [Xerte] Re: Xerte 2.16 Inconsistent inclusion of Page Wizard based pages
I would guess that the process for creating a project from a project template would be fairly similar to the process for creating a page from a Page Wizard but I have no knowledge of the code in the Xerte engine.
The only other factor that has changed is that the computer I am using is much faster than the old XP box I have used up till now.
My thought was that there was a time issue somewhere e.g. the code that processed the files and deleted the common folder when done was perhaps trying to run before the files had been unpacked and saved to the folder. Would the duration of the timer be affected by the processing power of the computer?
Kind regards
Johnathan
On 10 June 2011 13:04, Julian Tenney <Julian.Tenney at nottingham.ac.uk<mailto:Julian.Tenney at nottingham.ac.uk>> wrote:
No, nothing has changed in there. There is a timer thing going on when creating a template project, to give zinc time to unzip the zip and let everything happen: because zinc doesn't give any events for this stuff, I had to take a punt at a '3 seconds ought to be long enough' approach.
I wonder if that timer thing is also in the code that opens a page wizard: but I think, before I look, they are both handled by the same functionality??
From: xerte-bounces at lists.nottingham.ac.uk<mailto:xerte-bounces at lists.nottingham.ac.uk> [mailto:xerte-bounces at lists.nottingham.ac.uk<mailto:xerte-bounces at lists.nottingham.ac.uk>] On Behalf Of Kemp Johnathan
Sent: 10 June 2011 10:41
To: Xerte discussion list
Subject: [Xerte] Xerte 2.16 Inconsistent inclusion of Page Wizard based pages
I have been creating a couple of test projects recently using Xerte 2.16 and the current release of the Page Wizards on a computer running Windows 7.
I am adding new pages using the following sequence
1.
1. Select the interface icon
2. Click on the templates menu
3. Click on a Page Wizard from the list of available wizards e.g. e) Interactivity / Annotated Diagram
4. When the Browse for Computer dialogue opens I navigate to the project folder,
5. Expand the project folder,
6. Expand the Pages folder (which I created earlier to hold each page wizard folder).
7. Select the Pages folder
8. Click on the Make New Folder button
9. Enter a name for the new folder e.g. AnnotatedDiagram
10. Click off the folder name to ensure the name change is saved.
11. Ensure the newly named folder is selected.
12. Click the OK button.
13. The confirm dialogue is displayed asking if I want to Open the wizard?
14. I have tested both situations i.e. When clicking Yes and when clicking No.
Most of the time on completion of the sequence the Page appears listed in the project structure panel if I did not choose to open the Wizard. If I chose to open the Wizard the wizard opens, and on closing the wizard the page is listed in the project structure. Which is exactly what is supposed to happen.
However sometimes, and it is happening quite frequently, the page is not listed in the project structure. If I selected to open the wizard the last page in the project wizard opens. On closing the wizard the new page is not listed in the project structure. On examining the Pages folder the new page's folder has been created containing the xml, rlm and xwd files, but it also contains the page wizard's common folder (normally this would not be there. I think it gets copied there and is then deleted by Xerte once any required files have been copied to the Project's common folder).
When this occurs I generally repeat the process but select to use the folder originally created when I made my first attempt. When prompted that the folder is not empty I select to use the folder and then the Page Wizard entry process completes correctly and the common folder in the Page's folder is usually (but not in every case) deleted.
The current release of the Page Wizards does not contain any of the recent modifications to achieve a common set of rlm files. Most of the Page Wizards in the current release have been in use without change for months, some over a year.
Did anything change in Xerte 2.16 that would affect the process of creating a Page Wizard based page?
Could it be something to do with Windows 7?
The current situation does not prevent the use of Page Wizards, it is just a bit frustrating and inconvenient.
Anyone any ideas that might resolve this situation?
Kind regards
Johnathan
1.
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk<mailto:Xerte at lists.nottingham.ac.uk>
http://lists.nottingham.ac.uk/mailman/listinfo/xerte
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.
_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk<mailto:Xerte at lists.nottingham.ac.uk>
http://lists.nottingham.ac.uk/mailman/listinfo/xerte
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.
--
--
Tom Reijnders
TOR Informatica
Chopinlaan 27
5242HM Rosmalen
Tel: 073 5226191
Fax: 073 5226196
_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk<mailto:Xerte at lists.nottingham.ac.uk>
http://lists.nottingham.ac.uk/mailman/listinfo/xerte
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20110614/f5340e62/attachment-0001.html>
More information about the Xerte
mailing list