Skip to content. | Skip to navigation

Sections
Personal tools
You are here: Home News & views GloWorm 1.0 Released!

Posted Jan 07, 2009

GloWorm 1.0 Released!

by Eric Steele

The Worm has finally turned (1.0, that is...)

One of our trainers recently had a conversation with a new partner about the difficulties in understanding exactly what a viewlet was. Portlets, it seems, are quite obvious — ask someone who has been using Plone for an hour and they'll easily point them out to you. Yet, despite the fact that portlets and viewlets are essentially the same thing — both conceptually and code-wise — many integrators who have been at it for months would be hard-pressed to point out a viewlet. The difference, they decided? Portlets have borders.

Let me say that again... Portlets have borders, viewlets don't. That's the big mental roadblock. It was a bit of an epiphany for me.

And tempt the rover through the dark...

So, to that end, there's GloWorm. We wanted to give the user the ability to see those viewlets, on the page, and with borders. Referred to here previously as a PTTOTPATMMAIS interface, GloWorm gives the user the ability to click on something in his or her site and find out just what it is and how it got there.

Some of the features that GloWorm provides:

  • Viewlet and viewlet manager inspection
  • Viewlet template customization
  • Viewlet showing/hiding
  • Viewlet ordering
  • A tree view of the page's nested manger-viewlet structure
  • TAL statements involved in the creation of page elements (tal:attributes, tal:condition, tal:content, tal:replace)
  • Archetypes field information (type, widget, accessor, mutator, read/write permissions)

Walking without rhythm...

Let's say a Plone user wants to change the footer text. Here's how the traditional method would work:
  1. Fire up @@manage-viewlets
  2. Locate the viewlet containing the content he or she wants to edit, and get the name — in this case, 'plone.footer'
  3. Go to portal_view_customizations in the ZMI, locate 'plone.footer', click 'customize', edit.

The problems with this:

  • @@manage-viewlets isn't linked to from anywhere in Plone
  • @@manage-viewlets doesn't display the site's current theme
  • The user has to go into the Zope Management Interface (ZMI)
  • There is some assumed knowledge here that requires a good bit of reading or training to obtain.

All you need to do is follow the worm(s)...

Now let's try the same task with GloWorm:

  1. Fire up GloWorm (@@inspect)
  2. Click the page element he or she wants to edit, click the name of the containing viewlet.
  3. Click 'customize,' edit.

GloWorm's main goal is to keep new users out of the Zope Management Interface as much as possible and in an interface that looks like their actual Plone site. The ZMI is big, ugly, and to put it bluntly, absolutely scares the crap out of beginning integrators. GloWorm uses all of the same mechanisms (boiled down, it's just a Javascript UI frontend for the portal_view_customizations and ViewletSettingStorage utilities) within a page that uses their customized (or not) site theme.

Make it all wonderful, beautiful...

And with that I'm thrilled to announce that GloWorm 1.0 has finally reached PyPi. Download, install, enjoy! And look for a walkthrough screencast sometime next week.

 

Update: A screencast of GloWorm's features is now available.

Document Actions

Plone ♥ GloWorm!

Posted by Anonymous User at Jan 07, 2009 06:49 PM

Woohoo! Congrats on the 1.0 release. Do gloworms turn into butterflies eventually? ;)

Check it out

Posted by Steve McMahon at Jan 08, 2009 12:59 PM
For anyone reading this, my advice is to run
do not walk -- to check out GloWorm. It's one of those rare tools that helps you understand and explore an environment while you customize it.

Great work, Eric, and huge thanks to WebLion!

Need help now?

Immediate assistance is available during university work hours:

News & views…
Posted Oct 13, 2009 Portlets gone wild with ContentWellPortlets 2.0.1 This new release adds the ability to add portlets to the footer area. It also has 6 portlet managers per area. This means 20 total portlet managers including the 2 on the sides that ship with plone.
Posted Sep 17, 2009 Plone 4 – An interview with Zope News Jan Ulrich Hasecke interviews me for Zope News.
Posted Aug 31, 2009 Web Services API for Plone Alpha 3 Release Details the release of the wsapi4plone.core package and the plans for future releases. The final report of the AtomPub for Plone Google Summer of Code project.
Posted Aug 28, 2009 Content editing and creation in Plone is faster with archetypes.schematuning Some bench marks of content editing and creation in Plone with and without archetypes.schematuning installed.
More news & views…