Re: How to create a new MIME type for a Sugar activity?

2008-02-12 Thread Phil Bordelon
Martin Dengler wrote: On Tue, Feb 12, 2008 at 07:17:28PM -0500, Mikus Grinbergs wrote: Personally, I agree with just about everything John Gilmore said in his Tue, 12 Feb 2008 13:59:49 -0800 message to Bert Freudenberg. I frequently ftp materiel to my XO. Wanted to put one of these into

Re: How to create a new MIME type for a Sugar activity?

2008-02-12 Thread Martin Dengler
On Tue, Feb 12, 2008 at 07:17:28PM -0500, Mikus Grinbergs wrote: Personally, I agree with just about everything John Gilmore said in his Tue, 12 Feb 2008 13:59:49 -0800 message to Bert Freudenberg. I frequently ftp materiel to my XO. Wanted to put one of these into the datastore

Re: How to create a new MIME type for a Sugar activity?

2008-02-12 Thread Mikus Grinbergs
Personally, I agree with just about everything John Gilmore said in his Tue, 12 Feb 2008 13:59:49 -0800 message to Bert Freudenberg. I frequently ftp materiel to my XO. Wanted to put one of these into the datastore (Journal). Have picked up the .py scripts posted by Phil Bordelon and

Re: How to create a new MIME type for a Sugar activity?

2008-02-12 Thread Tomeu Vizoso
On Tue, 2008-02-12 at 18:32 +, Ivo Emanuel Gonçalves wrote: On 2/12/08, Bert Freudenberg [EMAIL PROTECTED] wrote: So if any, it's made-up by those crazy freedesktop.org guys. Someone find and beat them into a pulp for leading other people astray. I think the mimes rpm in F8 has those

Re: How to create a new MIME type for a Sugar activity?

2008-02-12 Thread Mikus Grinbergs
I've concluded that the nature of the difficulty I ran into did not come across in what I wrote earlier to the list. I apologize. I was not commenting on the mechanics of ENTERING a mime-type when trying to store an object to the Journal. Rather, I was commenting on __me__ not knowing the

Re: How to create a new MIME type for a Sugar activity?

2008-02-12 Thread Bert Freudenberg
On Feb 12, 2008, at 4:17 , Albert Cahalan wrote: On Feb 11, 2008 10:33 AM, Karl [EMAIL PROTECTED] wrote: Albert Cahalan wrote: Whatever you invent, Etoys will claim it in the next release. It does not matter if Etoys has any ability to handle the data. As mentioned earlier, please file

Re: How to create a new MIME type for a Sugar activity?

2008-02-12 Thread Bert Freudenberg
On Feb 11, 2008, at 23:06 , Ivo Emanuel Gonçalves wrote: On 2/11/08, Karl [EMAIL PROTECTED] wrote: Here is the list of MIME types Etoys claim: audio/x-speex+ogg; audio/x-speex; What are these two doing here? The media type for Speex in Ogg (common .spx files) is audio/ogg.

Re: How to create a new MIME type for a Sugar activity?

2008-02-11 Thread Ivo Emanuel Gonçalves
On 2/11/08, Karl [EMAIL PROTECTED] wrote: Here is the list of MIME types Etoys claim: audio/x-speex+ogg; audio/x-speex; What are these two doing here? The media type for Speex in Ogg (common .spx files) is audio/ogg. audio/x-speex or audio/speex as it's in the process of being registered

Re: How to create a new MIME type for a Sugar activity?

2008-02-11 Thread Martin Dengler
On Mon, Feb 11, 2008 at 04:33:17PM +0100, Karl wrote: Albert Cahalan wrote: Whatever you invent, Etoys will claim it in the next release. It does not matter if Etoys has any ability to handle the data. I'm half serious too, as is clear to anybody who has looked at the list of MIME

Re: How to create a new MIME type for a Sugar activity?

2008-02-11 Thread James Simmons
Albert, I have decided against creating a new MIME type for my application. It turns out that the problems I was experiencing were caused by issues with the Journal. In the latest release the Journal has problems dealing with larger files (30 meg or so). When you try to use one of those

Re: How to create a new MIME type for a Sugar activity?

2008-02-11 Thread Yoshiki Ohshima
At Mon, 11 Feb 2008 17:35:59 +, Martin Dengler wrote: Is there a possibility to make a distinction between ability to handle and claims [as the default handler]? As an outsider / random developer, I understand why Etoys should declare it can handle, say, text/html, but I don't

Re: How to create a new MIME type for a Sugar activity?

2008-02-11 Thread Karl
Albert Cahalan wrote: Whatever you invent, Etoys will claim it in the next release. It does not matter if Etoys has any ability to handle the data. I'm half serious too, as is clear to anybody who has looked at the list of MIME types claimed by Etoys and tried them. Almost none make sense.

Re: How to create a new MIME type for a Sugar activity?

2008-02-11 Thread Yoshiki Ohshima
Albert, The MIME type of application/zip works, but Etoys is using that one too. Whatever you invent, Etoys will claim it in the next release. It does not matter if Etoys has any ability to handle the data. No. If it is something that somebody invent for their app, we don't have to

Re: How to create a new MIME type for a Sugar activity?

2008-02-09 Thread Albert Cahalan
James Simmons writes: I agree I have no business inventing my own MIME type. Yes you do, and you should ignore the x- disaster. Pick something sane, descriptive but not too generic, and be done with it. (If you use x-, then you **still** face any collision problems and you're expected to

Re: How to create a new MIME type for a Sugar activity?

2008-02-07 Thread James Simmons
Tomeu, I tried using the mimetypes.xml file in the activity directory with the Sugar Emulator in Xubuntu. It ignored it. I then tried packaging up the .xo file with setup.py dist and loading it on my XO. That didn't work either. Today I opened the .xo file with 7-zip and found that

Re: How to create a new MIME type for a Sugar activity?

2008-02-06 Thread Bert Freudenberg
On Feb 6, 2008, at 1:57 , Yoshiki Ohshima wrote: Looking into the tree for Etoys (http://dev.laptop.org/git?p=projects/etoys;a=summary), etoys.xml which will be installed to /usr/share/mime/packages by Makefile(.in) and activity.info(.in) that lists the accepted types. This is only how the

Re: How to create a new MIME type for a Sugar activity?

2008-02-06 Thread Tomeu Vizoso
On Mon, 2008-02-04 at 11:21 -0600, James Simmons wrote: I am writing a Sugar activity in Python. This activity will enable the user to navigate through a list of image files stored in a Zip file by using the arrow keys, and might support a slideshow feature too. There might be a hundred

Re: How to create a new MIME type for a Sugar activity?

2008-02-06 Thread Carl-Daniel Hailfinger
On 04.02.2008 18:21, James Simmons wrote: To accomplish this I have created my Zip files with the extension .slides and I'd like to be able to use the MIME type application/slides for such files. I'm also interested in creating a reader program for Gutenberg etexts. I'd like these files

Re: How to create a new MIME type for a Sugar activity?

2008-02-06 Thread James Simmons
Tomeu, The problem is that my application does not create the Zip files filled with images, it only reads them. I had noticed that when I put a flash drive containing hundreds of images into my XO that it thrashed for quite a bit and wouldn't let me open any apps until it was done. I would

Re: How to create a new MIME type for a Sugar activity?

2008-02-06 Thread James Simmons
Carl, I agree I have no business inventing my own MIME type. What I really want is a file suffix association like I can do with Windows or Midnight Commander on Linux. The MIME type of application/zip works, but Etoys is using that one too. I need a way for Zip files using the .slides

Re: How to create a new MIME type for a Sugar activity?

2008-02-06 Thread Tomeu Vizoso
On Wed, 2008-02-06 at 09:39 -0600, James Simmons wrote: Tomeu, The problem is that my application does not create the Zip files filled with images, it only reads them. Oh, now I see. I had noticed that when I put a flash drive containing hundreds of images into my XO that it thrashed for

Re: How to create a new MIME type for a Sugar activity?

2008-02-06 Thread Carl-Daniel Hailfinger
Hi James, On 06.02.2008 16:46, James Simmons wrote: I agree I have no business inventing my own MIME type. What I really want is a file suffix association like I can do with Windows or Midnight Commander on Linux. The MIME type of application/zip works, but Etoys is using that one too. I

Re: How to create a new MIME type for a Sugar activity?

2008-02-06 Thread James Simmons
Tomeu, I had created a mimetypes.xml file that looks like this: ?xml version=1.0? mime-info xmlns=http://www.freedesktop.org/standards/shared-mime-info; mime-type type=application/slides commentView Slides Archive/comment glob pattern=*.slides/ /mime-type

Re: How to create a new MIME type for a Sugar activity?

2008-02-06 Thread James Simmons
Carl, If I can get this working I'll definitely use a MIME type like activity/x-slide-activity. I want to distribute this activity when its finished. Thanks, James Simmons Carl-Daniel Hailfinger wrote: Hi James, On 06.02.2008 16:46, James Simmons wrote: I agree I have no business

Re: How to create a new MIME type for a Sugar activity?

2008-02-06 Thread Jameson Chema Quinn
This is a little off-topic, but just wondering... In my work on Develop, I am looking at a similar situation: application bundles. These are zip files with the extension .xo. My question is, why bother zipping them if the file system compresses anyway? Why not, you ask. I know that ziptools can

Re: How to create a new MIME type for a Sugar activity?

2008-02-05 Thread Yoshiki Ohshima
Hello, 1). The Etoys activity does not try to open the file, at all, ever. EToys takes a long time to start up and shut down and it is really annoying when I open the file with EToys instead of my own activity. For for the record, Etoys doesn't take a long time to start up. It is the

How to create a new MIME type for a Sugar activity?

2008-02-04 Thread James Simmons
I am writing a Sugar activity in Python. This activity will enable the user to navigate through a list of image files stored in a Zip file by using the arrow keys, and might support a slideshow feature too. There might be a hundred image files stored in the Zip file. Grouping the images in