not quite random
nothing in particular

 



Subscribe to "not quite random" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.

jenett.radio.randomizer - click to visit a random Radio weblog - for information, contact randomizer@coolstop.com

Blogchalk:
Portsmouth, NH, US




 

 

  Monday, September 16, 2002

Weirdness?

If you experience any wierdness after following the instructions in my previous post please let me know...

(You might consider this a warning of sorts. Yup. Definitely a warning. The Post & Publish button is now broken. Ugh. I'll fix it tomorrow.)


6:19:43 PM  comment []  [ permalink ]  
Got It

Ok to use now, but there is one more step.

Don't use this. It's got a nasty bug somewhere.

Ok, I finally have a fix for the problem I posted about on Friday. You have to mess deep in the bowels of Radio.root. Yuck.

Like I mentioned earlier today, the problem is that weblogPostForm() calls publishAllUnpublishedPosts(). I'm not sure why -- you really only want to publish the one that you're currently editing. In my haste to hack in a quick fix by changing the call to updatePagesForPost(), I forgot that you also need to remove the post from weblogData.stats.unpublishedPosts. So I added two new scripts to workspace: publishOneUnpublishedPost() and isPublished().

To use these:

  1. Follow the instructions here. This gets you on a minimum footing.
  2. Import the two scripts above.
  3. (This is the ugly part; if you're shy about mangling script in Radio, you may not want to do this.) Open radio.macros.weblogPostForm. Find the call to radio.weblog.publishAllUnpublishedPosts(adrdata) and replace it with a call to workspace.publishOneUnpublishedPost(adrPostToEdit).
  4. To test it: make two posts (post only, don't publish at first). Note that they both show up in "Previous 10 posts" as unpublished. Now click the edit button for one or the other. Click the publish button. Note that the post is now published and the other one isn't.
  5. Hooray. You're done.
  6. Not quite: the next radio.root update you get will probably wipe out your changes.

I've started a little tool that will do these things for you. Hopefully it pans out...


6:16:38 PM  comment []  [ permalink ]  
Hmm

Apologies to anybody who is subscribed to my feed. I've been trying to route the test posts to a test category, but sometimes old fumblefingers hits the post button instead of the test category checkbox...

Here's the scoop. I've been trying to figure out how to get around the problem I found on Friday. It's buried in radio.macros.weblogPostForm. If the Publish or Post & Publish buttons are pushed, the form processor calls radio.weblog.publishAllUnpublishedPosts(). I experimentally changed it to only call radio.weblog.updatePagesForPost(adrPostToEdit), but this doesn't work.

More investigation later. Lunch is over. Now I've got to get back to work...


1:50:40 PM  comment []  [ permalink ]  



Click here to visit the Radio UserLand website. © Copyright 2002 Brian St. Pierre.
Last update: 10/8/2002; 8:16:20 PM.

September 2002
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30          
Aug   Oct