Wednesday, October 5, 2005


Resuming work on conducting final testing for the Directory Tool:

  • Looked at DirectoryTestScriptP, saw that in the section that copies the user OPML file to the gems directory for upload, there were no function calls to file.surePath and file.new to check the path and create the file prior to writing data to the file. Looking at docserver.userland.com, the definition of file.writeWholeFile says that it creates the folders and the file, then writes text to the file. I am going to replace that function call with the three-step process used earlier in the script.
  • Noticed that the release version of the tool is no longer in Radio UserLand/DirectoryTest. I must have moved it out of that directory instead of copying it. I will work with the current copy in the Tools folder and copy it to the Radio UserLand/Directory Test folder when i am ready.
  • In DirectoryToolData.prefs, deleted opmlUploadPartialPath, opmlUploadPath, userOPMLDirectoryPath, and weblogDirectoryPath.
  • In DirectoryToolData.breadcrumbText, deleted the text "Top" from item 1 in the table.
  • Deleted the following items from DirectoryToolData: directories, titles, tempDirectory
  • Created DirectoryTestScriptQ from DirectoryTestScriptP, made changes to replace use of file.writeWholeFile with the three-step process used earlier in the script.
  • In DirectoryToolSuite.menu, changed script function call for "Generate new directory" to call DirectoryTestScriptQ.
  • Deleted icons from gems directory (folder.gif, remote.gif, xmlIcon21.gif)
  • Quit Radio UserLand, then moved DirectoryTool.root to Radio UserLand/DirectoryTest. Started Radio UserLand, did not see Directory Tool in Tools menu bar or Window menu bar.
  • Deleted Radio UserLand/mydirs folder
  • Copied DirectoryTool.root to Radio UserLand/Tools, started Radio UserLand, saw Directory Tool in Tools menu bar and Window menu bar.
  • Selected Tools|Directory Tool|Initialize Directory Tool, got correct initialization message.
  • Selected Tools|Directory Tool|Generate new directory, got a script error on the call to file.surePath, saying that "surePath did not exist". Checked Docserver, found out that the right function name was file.sureFilePath. Made the edit, compiled the script, then repeated "Generate new directory" command. Saw messages on status window indicating that files were being created, got dialog box saying "Creating OPML Resources directory", clicked OK, got another dialog box when the directory generation was complete.
  • Checked the directory, it looked good. Checked several links, they all worked. Looked at the OPML directories linked, they all came up in the browser. They are all on UserLand/Dave Winer hosted sites, so the OPML files are being rendered for HTML browsers.
  • Opened www/gems/directories/sampledirectory.opml in Radio UserLand, the file opened successfully, indicating that it was a properly formatted OPML file. I will delete the old call to file.writeWholeFile and keep the three-step version in DirectoryTestScriptQ.
  • Will stop here for tonight, next step is to test the instructions for creating a directory.


11:00:44 PM