Re: Intricacies of adding an object
"Ken Kahn" <kenkahn-0OjJFJ8UyiNWk0Htik3J/[email protected]> Mon, 8 Dec 2003 15:13:17 -0000
| Newsgroups | gmane.education.weblabs.webreports.uedesign |
|---|---|
| Message-ID | <08ef01c3bd9d$cf9528c0$c400a8c0@LAP68> |
Jesper wrote: > > If the file is a zip-file: > > Add all the files it contains, overwriting any existent file, but add a > new applet to the report. > > > > The reason I overwrite the files in the last case, is that I can't start > renaming all the support files of the applet, and the overwritten files > will in general be common support files such as 'ttclass2.cab' and the > like. > This is a good idea but people should understand how ToonTalk names the files needed for an applet. The images, sounds, and robots should all have unique names (or in case of collisions be the same sound or image). The main applet file name is generated by ToonTalk if there isn't a short text pad on the back of the picture. The name generation is unique only from that machine so there should never be a conflict between two applets generated by the same computer. Except if the user provided a name, e.g. "My Simulation" and others picked the same name. Name conflict for unnamed applets generated on different machines may happen - but hopefully rare enough not to worry. Jesper - Regarding ttclass2.cab, how hard would it be to overwrite only if the creation date is later? There are several versions of ttclass2.cab and the most the recent is the best. When there is an incompatible change then there will be a ttclass3.cab and ttclass3.zip. But that has only happened once in six years so we probably don't need to worry about that. I think we should leave things in both ToonTalk and the Plone as they are but watch out for any problems. And encourage users to give names that are likely to be unique. Best, -ken ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click