Brian Brown | 7 Jul 02:06 2007
Picon

Displaying graphics question

Is there a Magritte description that know how to display graphics? I  
don't see anything that looks promising in the Magritte-Model- 
Description category, but I thought I had read something about it at  
one time.

- Brian

_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki

Lukas Renggli | 7 Jul 11:45 2007
Picon
Picon

Re: Displaying graphics question

> Is there a Magritte description that know how to display graphics? I
> don't see anything that looks promising in the Magritte-Model-
> Description category, but I thought I had read something about it at
> one time.

MAFileDescription does that if the element is displayed in read-only  
mode. The editor in MAFileUploadComponent doens't do that per default  
anymore, because if it displayed huge images within forms wasn't that  
user friendly. However you can change that by subclassing  
MAFileUploadComponent.

Lukas

--

-- 
Lukas Renggli
http://www.lukas-renggli.ch

_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki

Lukas Renggli | 12 Jul 18:15 2007
Picon
Picon

Re: Differences w/ exception handling in Magritte..?

Where exactly do you get a recursion?

It looks like that this is exactly the point in time where I added  
code to avoid recursion when dealing with recursive descriptions. I  
guess the method causing trouble is  
MAValidatorVisitor>>#visitDescription:?

Lukas

On 12.07.2007, at 17:48, Rick Flower wrote:

>
> Lukas,
>
> I dropped a note to Thomas Koschate, who did the first ports of  
> Magritte
> over to VW, asking about moving the current version of Magritte  
> over to VW
> in the hopes of having something to use w/ Seaside 2.7 or 2.8a  
> (instead of
> 2.6).. Anyway, he indicated that he had tried porting over
> Magritte-all-lr.224 last month but ran into an issue w/ infinite  
> recursion
> as part of some perceived exception handling changes.. Anyway, do  
> you know
> off the top of your head if anything changed between versions 192/193
> (from Feb 16th, 2007) and 224 in how exception handling is dealt  
> with in
> Magritte?  I've not had a chance to look into it yet after his latest
> comments early this morning (I don't have VW/Squeak at work).  Anyway,
(Continue reading)

Rick Flower | 12 Jul 18:29 2007

Re: Differences w/ exception handling in Magritte..?

On Thu, July 12, 2007 9:15 am, Lukas Renggli wrote:
> Where exactly do you get a recursion?
>
> It looks like that this is exactly the point in time where I added
> code to avoid recursion when dealing with recursive descriptions. I
> guess the method causing trouble is
> MAValidatorVisitor>>#visitDescription:?

I'm not sure exactly -- I'll have to load it to find out -- I'll get back
to you with some more details.. Thanks for the heads-up though -- at least
it's a place to start looking.

_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki

Rick Flower | 12 Jul 18:35 2007

What version of Seaside for current version of Magritte?

Lukas --

Just to make sure I'm not trying to plug together apples & oranges, what
version of Seaside does the latest version of Magritte work with? 
Ultimately, I'm trying to avoid the Seaside 2.6 tree and move into either
2.7 or perhaps even 2.8 and wanted to check.. I didn't see anything
indicating this on the web page, but may have missed it perhaps.

Thx!

_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki

Thomas Koschate | 12 Jul 18:35 2007

Re: Differences w/ exception handling in Magritte..?


On 7/12/07, Lukas Renggli <renggli <at> iam.unibe.ch> wrote:
Where exactly do you get a recursion?

It looks like that this is exactly the point in time where I added
code to avoid recursion when dealing with recursive descriptions. I
guess the method causing trouble is
MAValidatorVisitor>>#visitDescription:?

That's exactly the spot.  The #resignalAs: is causing VW some heartburn.

--
============================================================
Thomas Koschate

_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Lukas Renggli | 12 Jul 18:44 2007
Picon
Picon

Re: Differences w/ exception handling in Magritte..?

> That's exactly the spot.  The #resignalAs: is causing VW some  
> heartburn.

I don't exactly remember why I copy the exception there. That seems  
rather strange and presumably causes VW to end up in an infinite  
recursion.

Please try with the following code that works -- as far as I can see  
right now -- well in Squeak:

visitDescription: aDescription
	"Validate the current object using aDescription within an exception  
handler to avoid running further tests that might cause error-cascades."

	aDescription isVisible ifFalse: [ ^ self ].
	[ self validate: self object using: aDescription ]
		on: MAValidationError
		do: [ :err | err beResumable; pass ]

Lukas

--

-- 
Lukas Renggli
http://www.lukas-renggli.ch

_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki

Cédrick Béler | 12 Jul 18:59 2007
Picon

#invalidDispatcher error - causes an improper store into indexable object

Hi,

in my image, PRPierMain>>invalidDispatcher: causes an improper store 
into indexable object
WAResponse internalError: 'bla bla'
executing the last line causes the error...in 
SeasideSupportPlatform>>walkbackStringFor:
is it because error are not meant to be a string (anymore) ? ... don't 
know how to fix...

I use the last seaside and pier version.

Cédrick

_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki

Lukas Renggli | 12 Jul 19:23 2007
Picon
Picon

Re: Differences w/ exception handling in Magritte..?

Name: Magritte-All-lr.226
Author: lr
Time: 12 July 2007, 7:22:28 pm
UUID: 72307372-3019-412b-94df-ab0524468fca
Ancestors: Magritte-All-lr.225
Dependencies: Magritte-Model-lr.271, Magritte-Tests-lr.115, Magritte- 
Seaside-lr.232, Magritte-Morph-lr.38

- trying to improve the way resumeable errors are thrown, so that it  
works on VW as well
- added tests to exactly check the way resumeable errors are handled

On 12.07.2007, at 18:35, Thomas Koschate wrote:

>
> On 7/12/07, Lukas Renggli <renggli <at> iam.unibe.ch> wrote: Where  
> exactly do you get a recursion?
>
> It looks like that this is exactly the point in time where I added
> code to avoid recursion when dealing with recursive descriptions. I
> guess the method causing trouble is
> MAValidatorVisitor>>#visitDescription:?
>
> That's exactly the spot.  The #resignalAs: is causing VW some  
> heartburn.
>
> -- 
> ============================================================
> Thomas Koschate
>
> _______________________________________________
> SmallWiki, Magritte, Pier and Related Tools ...
> https://www.iam.unibe.ch/mailman/listinfo/smallwiki

--

-- 
Lukas Renggli
http://www.lukas-renggli.ch

_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki

Lukas Renggli | 12 Jul 19:24 2007
Picon
Picon

Re: What version of Seaside for current version of Magritte?

> Just to make sure I'm not trying to plug together apples & oranges,  
> what
> version of Seaside does the latest version of Magritte work with?
> Ultimately, I'm trying to avoid the Seaside 2.6 tree and move into  
> either
> 2.7 or perhaps even 2.8 and wanted to check.. I didn't see anything
> indicating this on the web page, but may have missed it perhaps.

I am using it with 2.8. It should also work with 2.7 as far as I  
know, but I didn't try.

Lukas

--

-- 
Lukas Renggli
http://www.lukas-renggli.ch

_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki


Gmane