MNU MIMETYPE class>>forURIReturnSingleMimeTypeOrDefault:

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

MNU MIMETYPE class>>forURIReturnSingleMimeTypeOrDefault:

Diogenes Moreira
Hi..

that is a StandardFileStream bug or I'm loosing some thing...
may be a versions problem.. 

somebody can say where is implement that method.


Best
Reply | Threaded
Open this post in threaded view
|

Re: MNU MIMETYPE class>>forURIReturnSingleMimeTypeOrDefault:

Diogenes Moreira
Well I find the solution in the 2797 issue. [1]


thanks anyway


On Fri, Feb 18, 2011 at 11:57 AM, Diogenes Moreira <[hidden email]> wrote:
Hi..

that is a StandardFileStream bug or I'm loosing some thing...
may be a versions problem.. 

somebody can say where is implement that method.


Best

Reply | Threaded
Open this post in threaded view
|

Re: MNU MIMETYPE class>>forURIReturnSingleMimeTypeOrDefault:

Stéphane Ducasse
I'm in the train so no internet access.
Tell us what should be done? It is a fix to be integrated?


> Well I find the solution in the 2797 issue. [1]
>
>
> thanks anyway
>
> [1] http://code.google.com/p/pharo/issues/detail?id=2797
>
> On Fri, Feb 18, 2011 at 11:57 AM, Diogenes Moreira <[hidden email]> wrote:
> Hi..
>
> that is a StandardFileStream bug or I'm loosing some thing...
> may be a versions problem..
>
> somebody can say where is implement that method.
>
>
> Best
>


Reply | Threaded
Open this post in threaded view
|

Re: MNU MIMETYPE class>>forURIReturnSingleMimeTypeOrDefault:

Diogenes Moreira
Well, this issue is closed in the 1.2 version.. by marcus.. with the comment 

"12217" 

I dont know what means that..


I can guess, this was solved..

In my case, applying the code from the inbox.. that work fine..

best.

------------------------------------

here the code: 

MIMEType class>>forURIReturnMimeTypesOrNil: aURI
| ext fileName mimes |
mimes := aURI schemeIsFile
ifTrue: 
[fileName := FileDirectory fullPathForURI: aURI.
self forFileNameReturnMimeTypesOrNil: fileName]
ifFalse: 
[ext := aURI extension.
self forExtensionReturnMimeTypesOrNil: ext].
^mimes
MIMEType class>>forURIReturnSingleMimeTypeOrDefault: aURI
| mimes |
mimes := self forURIReturnMimeTypesOrNil: aURI.
mimes ifNil: [^MIMEType defaultStream].
^mimes first



On Fri, Feb 18, 2011 at 4:03 PM, Stéphane Ducasse <[hidden email]> wrote:
I'm in the train so no internet access.
Tell us what should be done? It is a fix to be integrated?


> Well I find the solution in the 2797 issue. [1]
>
>
> thanks anyway
>
> [1] http://code.google.com/p/pharo/issues/detail?id=2797
>
> On Fri, Feb 18, 2011 at 11:57 AM, Diogenes Moreira <[hidden email]> wrote:
> Hi..
>
> that is a StandardFileStream bug or I'm loosing some thing...
> may be a versions problem..
>
> somebody can say where is implement that method.
>
>
> Best
>



Reply | Threaded
Open this post in threaded view
|

Re: MNU MIMETYPE class>>forURIReturnSingleMimeTypeOrDefault:

Marcus Denker-4
In reply to this post by Stéphane Ducasse

On Feb 21, 2011, at 7:33 AM, Diogenes Moreira wrote:

Well, this issue is closed in the 1.2 version.. by marcus.. with the comment 

"12217" 

I dont know what means that..


It means that it has been integrated as 12217, that is: 1.2, update 217

Marcus


--
Marcus Denker  -- http://www.marcusdenker.de
INRIA Lille -- Nord Europe. Team RMoD.

Reply | Threaded
Open this post in threaded view
|

Re: MNU MIMETYPE class>>forURIReturnSingleMimeTypeOrDefault:

Diogenes Moreira
Thanks.. for you answare..

On Mon, Feb 21, 2011 at 2:20 PM, Marcus Denker <[hidden email]> wrote:

On Feb 21, 2011, at 7:33 AM, Diogenes Moreira wrote:

Well, this issue is closed in the 1.2 version.. by marcus.. with the comment 

"12217" 

I dont know what means that..


It means that it has been integrated as 12217, that is: 1.2, update 217

Marcus


--
Marcus Denker  -- http://www.marcusdenker.de
INRIA Lille -- Nord Europe. Team RMoD.