Click here to show or hide the menubar.

mainResponder.respond


The implementation of user.prefs.flMainResponderHandlesErrors broke quite a bit in Manila. Now that Jake is trying to get that running, we need to address the breakage in such a way that it doesn't introduce more breakage, and gives him an easy way to unbreak Manila.

The workaround

if user.prefs.flMainResponderHandlesErrors is true, and there is a boolean, pta^.flFakedError that's true, and if the error message begins with a ! -- if all that is true, we re-throw the error.

Test case

A page that returns a GIF image through mainResponder.respond. If it works, we've solved the problem.

Parts

mainResponder.respond

Jake Savin permalink

11/5/12; 6:08:06 PM by JES

Just finished packaging this up and writing instructions.

Instructions are in the .zip for now.

Once a few more kinks are worked out, I'm happy to post to somewhere more permanent if that's helpful.

11/5/12; 10:41:50 AM by JES

Tom (and Dave) - I'll put a copy of my updated Manila.root up a little later today, and write up some instructions.

There are also some changes in OPML.root to make the Admin site work properly. I'll figure out how to package those up to make them easy to install.

Please stay tuned...

11/4/12; 11:21:49 PM by JES

Tom: I've got lots of things working here, but have not tested exhaustively (by any stretch).

Can I enlist your help testing out my changes in manila.root to see what's working, and what needs fixing?

Perhaps Dave has suggestions for how to approach this. If not, I'm happy to package up changes and get them to you...

11/2/12 by JES

Got the update, and tested here, and it works.

Tom Clifton permalink

11/05/12; 6:19:47 AM by TC

Yes Jake, I would be happy to help test.

finally remembered how to insert a time stamp ;^p

11/04/12; 6:27:17 AM by TC

Sounds good, I will wait for Jake's changes. It seems like we are really close.

11/03/12; 6:26:24 AM by TC

I am pretty sure I'm not on the same page, meaning that I don't understand the the post and what variables should be set to what and where they should be set.

This is what I am seeing. I set flMainResponderHandlesErrors to false and now the images that I have uploaded are appearing on the site (http://antidune.es-designs.com/chapter1) which is a manila site running in opml editor.

So now I can upload images and have them show up on the site. That is a very good thing!!!

I am still getting a server error:

500 INTERNAL SERVER ERROR

Can't evaluate the expression because the name "binaryServerFolder" hasn't been defined.

everytime I hit post changes, but the changes are made, and if I back up and reload the page they are there.

Dave Winer permalink

11/5/12; 8:56:52 AM by DW

Jake & Tom -- I hope you guys do work together.

Here's how I suggest you do that.

At first it'll just be the two of you, so Jake, either send Tom full copies of manila.root, or upload them somewhere and send him a URL.

You can iterate over that a bit, and once you feel you have something stable, and can write a simple How To that says how to install it (I would be happy to edit it), you can give me a copy of manila.root and I'll put it in the right place so it replaces the one we have on the Tool Catalog page. I see that happening pretty quickly because the one we have there is the result of me doing a very quick edit to get something running. I'm sure yours is already more functional.

Then we'll have to figure out a way for you to release new parts for it the way I do for all the other roots.

These days updates are done via RSS although that's hidden behind the user interface.

11/4/12; 4:00:22 PM by DW

Tom, if you turn user.prefs.flMainResponderHandlesErrors false, then you won't be able to run any of the new stuff in the OPML Editor environment.

I would recommend trying to get into synch with Jake when he releases a new manila.root, but not to make changes for this at this time.

Of course you're free to do whatever you like.

11/2/12; 5:11:32 PM by DW

I released the new version.


Posted on Friday, November 02, 2012 at 9:54 AM by Dave Winer.