The Artima Developer Community
Sponsored Link

Perl Buzz Forum
Almost got another release out

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Chris Winters

Posts: 931
Nickname: cwinters
Registered: Jul, 2003

Daytime: Java hacker; nighttime: Perl hacker; sleeptime: some of both.
Almost got another release out Posted: Jan 6, 2005 6:00 PM
Reply to this message Reply

This post originated from an RSS feed registered with Perl Buzz by Chris Winters.
Original Post: Almost got another release out
Feed Title: cwinters.com
Feed URL: http://www.cwinters.com/raw/cwinters_perl.rdf
Feed Description: Chris Winters on Perl, programming and technology
Latest Perl Buzz Posts
Latest Perl Buzz Posts by Chris Winters
Latest Posts From cwinters.com

Advertisement
Finally, only a few months late, another release of the OpenInteract2 beta will be going out the door shortly. It's got way too many feature updates for a single beta release, I know. But putting out a release is a fairly serious time commitment. Not for the actual release, but for the week or two afterward where you'll probably get more questions than usual about installation, functionality, etc. And I've been either tied up with real life stuff or a little burned out to commit. Plus I kept adding features...

Anyway, this site is already running on the CVS version from a couple of days ago. One of the features I added (or fixed) was action types. It's typically an action that needs nothing but configuration -- the lookup table editors shipped with the server are one, the template-only actions are another. Those are kind of boring though. Why not jazz it up with a buzzword? And that buzzword is: RSS!

So on the main page of the site you'll see a 'Recent Links' box. Here's all I had to do to add the OpenInteract2::Action::RSS perl module (on CPAN as soon as this beta is released), add this template code to the home page:

[% OI.box_add( 'delicious_links' ) %]

and add the following action so that box has some content:

[delicious_links]
action_type  = rss
feed_url     = http://del.icio.us/rss/cwinters/
title        = Recent Links
cache_expire = 180m
template     = my_custom::delicious
url_none     = yes
weight       = 2
num_display  = 8

Most of that is pretty easy to follow I think. Of the stuff that isn't:

  • 'template' uses the OpenInteract syntax for finding a template -- that's the 'delicious' template in the 'my_custom' application package
  • 'url_none' says that this action shouldn't be accessible by URL
  • 'weight' refers to how the box is sorted.

Caching is done automatically by OI2 actions so all we need to do is specify how long we want the content to stick around.

I also have an implementation of lightweight object tags a la delicious so you can use the same tags to reference any object on the site -- you can actually see the box at the programming page -- but I'll talk more about that later.

Read: Almost got another release out

Topic: Almost got another release out Previous Topic   Next Topic Topic: CPAN Suggest

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use