Chris Zumbrunn | 14 Jul 17:48
Gravatar

OpenMocha is ready for a spin

OpenMocha is now ready for a first spin. I hope it will be a productive 
and constructive contribution that will in one way or the other benefit 
many of us involved and invested in either the Javascript community in 
general or the Helma project in particular.

The goal of OpenMocha is to maximize the fun and productivity of 
Javascript development by blending the gap between browser and server 
based scripting. The current version is just a first step in that 
direction.

With OpenMocha, a new project can be quickly soft-coded by creating 
custom Mocha Objects using the web browser. As the project matures, 
these Mocha Objects can be re-factored and hard-coded in separate code 
files. The two approaches can be mixed at any time, patching hard-coded 
applications through soft-coding even during runtime.

http://download.openmocha.org/openmocha-0.5.tgz
http://download.openmocha.org/openmocha-0.5.zip

http://openmocha.org/openmocha/GettingStarted/

Cheers, Chris

chris <at> czv.com  +41 329 41 41 41
Chris Zumbrunn Ventures - http://www.czv.com/
Internet Application Technology - Reduced to the Maximum
Michael Platzer | 15 Jul 11:21
Picon

uploadLimit - catching errors

Hi,

just a quick question: is there any way to catch the 'Sorry, upload size 
exceeds limit of 1024 kB.', so that it actually does display in a nicely 
formatted layout?
The same question also araises for this error: 
http://twoday.net/michi/members/asdwe, i.e. when i am inserting a string 
into the url for a collection that expects an Integer as its Accessname. 
The according collection is defined as follows:
  _children               = collection(Membership)
  _children.local         = SITE_ID
  _children.foreign       = MEMBERSHIP_F_SITE
  _children.accessname    = MEMBERSHIP_F_USER

greets,
  michi
tobias.schaefer | 15 Jul 11:23
Picon
Favicon

RE: uploadLimit - catching errors

hi michi

can't you go with a try/catch block?

ciao,
tobi

Michael Platzer wrote:
> Hi,
> 
> just a quick question: is there any way to catch the 'Sorry, upload
> size exceeds limit of 1024 kB.', so that it actually does display in
> a nicely formatted layout? The same question also araises for this
> error:  
> http://twoday.net/michi/members/asdwe, i.e. when i am inserting a
> string into the url for a collection that expects an Integer as its
> Accessname.  
> The according collection is defined as follows:
>   _children               = collection(Membership)
>   _children.local         = SITE_ID
>   _children.foreign       = MEMBERSHIP_F_SITE
>   _children.accessname    = MEMBERSHIP_F_USER
> 
> greets,
>   michi
> 
> 
> _______________________________________________
> Helma-user mailing list
> Helma-user <at> helma.org
(Continue reading)

Michael Platzer | 15 Jul 11:25
Picon

Re: uploadLimit - catching errors

tobias.schaefer <at> orf.at schrieb:

>hi michi
>can't you go with a try/catch block?
>  
>
in both cases no, thats why i'm writing. these errors happen *before* 
any action is actually called.

   michi
Hannes Wallnoefer | 15 Jul 11:51
Picon
Gravatar

Re: uploadLimit - catching errors

Hi Michi,

no, there's no way to catch this. If the upload limit is exceeded, the
servlet immediately generates a 413 Request Entity Too Large response
and returns without invoking any script.

hannes

On 7/15/05, Michael Platzer <michael.platzer <at> knallgrau.at> wrote:
> Hi,
> 
> just a quick question: is there any way to catch the 'Sorry, upload size
> exceeds limit of 1024 kB.', so that it actually does display in a nicely
> formatted layout?
> The same question also araises for this error:
> http://twoday.net/michi/members/asdwe, i.e. when i am inserting a string
> into the url for a collection that expects an Integer as its Accessname.
> The according collection is defined as follows:
>   _children               = collection(Membership)
>   _children.local         = SITE_ID
>   _children.foreign       = MEMBERSHIP_F_SITE
>   _children.accessname    = MEMBERSHIP_F_USER
> 
> greets,
>   michi
> 
> 
> _______________________________________________
> Helma-user mailing list
> Helma-user <at> helma.org
(Continue reading)

Michael Platzer | 15 Jul 11:55
Picon

Re: uploadLimit - catching errors

Hannes Wallnoefer schrieb:

>Hi Michi,
>
>no, there's no way to catch this. If the upload limit is exceeded, the
>servlet immediately generates a 413 Request Entity Too Large response
>and returns without invoking any script.
>  
>
yes, thats what i read in the code. but can handle all other errors 
nicely. why not also this one?

and do you have an idea of how to catch the other error i reported?

thanks,
  michi
Hannes Wallnoefer | 15 Jul 12:55
Picon
Gravatar

Re: uploadLimit - catching errors

On 7/15/05, Michael Platzer <michael.platzer <at> knallgrau.at> wrote:
> Hannes Wallnoefer schrieb:
> 
> >Hi Michi,
> >
> >no, there's no way to catch this. If the upload limit is exceeded, the
> >servlet immediately generates a 413 Request Entity Too Large response
> >and returns without invoking any script.
> >
> >
> yes, thats what i read in the code. but can handle all other errors
> nicely. why not also this one?

Because the error is caught before we enter the application, and
because neither i nor anybody else has bothered to handle it any other
way.

> and do you have an idea of how to catch the other error i reported?

You should be able to handle that one with the error action. Aren't you?

Hannes

> thanks,
>   michi
> 
> 
> _______________________________________________
> Helma-user mailing list
> Helma-user <at> helma.org
(Continue reading)

Michael Platzer | 15 Jul 16:27
Picon

Re: uploadLimit - catching errors

Hannes Wallnoefer schrieb:
because neither i nor anybody else has bothered to handle it any other way.
Ok, asking for 'why' was maybe the wrong way to put it. We are interested in handling that particular error also with a custom error_action. Is that technical feasible? If yes, do you have any hints for how to modify the helma source to acchieve this? And would you consider such a change to be useful, i.e. would this go into Helma core if we provide a patch?
Because the error is caught before we enter the application, and
and do you have an idea of how to catch the other error i reported?
You should be able to handle that one with the error action. Aren't you?
yes, you are right and i was wrong. sorry.

a nice, sunny weekend, greets,
  michi

_______________________________________________
Helma-user mailing list
Helma-user <at> helma.org
http://helma.org/mailman/listinfo/helma-user
Hannes Wallnoefer | 15 Jul 16:51
Picon
Gravatar

Re: uploadLimit - catching errors

On 7/15/05, Michael Platzer <michael.platzer <at> knallgrau.at> wrote:
>  Hannes Wallnoefer schrieb: 
>  because neither i nor anybody else has bothered to handle it any other
> way.
>  
>  Ok, asking for 'why' was maybe the wrong way to put it. We are interested
> in handling that particular error also with a custom error_action. Is that
> technical feasible? If yes, do you have any hints for how to modify the
> helma source to acchieve this? And would you consider such a change to be
> useful, i.e. would this go into Helma core if we provide a patch?

It's certainly possible to do this, but not necessarily easy or
elegant. Have you considered using Apache error documents, e.g.

ErrorDocument 413  /static/upload_error.html

>  
> Because the error is caught before we enter the application, and
>  
>  and do you have an idea of how to catch the other error i reported?
>  
>  You should be able to handle that one with the error action. Aren't you?
>  
>  yes, you are right and i was wrong. sorry.
>  
>  a nice, sunny weekend, greets,

same to you!

hannes

>    michi
>  
>
tobias.schaefer | 15 Jul 16:54
Picon
Favicon

RE: uploadLimit - catching errors

> ErrorDocument 413  /static/upload_error.html

hey maybe this works even lik

ErrorDocument 415 /helma/upload_error

???

pls. let us know, could be worthwhile some day.

ciao,
tobi

Gmane