Archive for April, 2008

Google Charts in Zope

Posted by mattw on Apr 29 2008 | Software

This afternoon was spent tidying and open sourcing packages that we’ve been meaning to release back to the community for a long, long time. Today’s lucky winner was teamrubber.googlechart (formerly ZGoogleChart) written by Richard Wilson. This also has the honour of being the first product released in our namespace.

teamrubber.googlechart is a Zope2ish wrapper for pygooglechart, it provides an object that can be added to the ZMI to configure some standard options such as colours to be used which then exposes a very basic API. The most useful (in our humble opinion) charts are there already, but we’re open to suggestions as to what should be supported next.

<img tal:attributes='src
  python:here.chart.getSimpleLineChart(data={
                "1":[1,2,3],
                “2″:[3,2,1]
                })’
/>

No automated tests yet, coming in 0.2.1. There are also a couple of known bugs with large data points, but we thought we’d open for comments/suggestions sooner rather than later.

 http://pypi.python.org/pypi/teamrubber.googlechart/0.1 

no comments for now

Saturday in Paris

Posted by mattw on Apr 26 2008 | Software

Today was my first day actually at the Plone 3 Paris sprint – last night I got here just in time to go to the pub.  This morning I was looking over MrTopf’s plone.app.localconf code which uses Five sitemanagers to store configuration of subsections of a site as local adapters with the intention of having local configlets to allow people to reconfigure parts of their site.

This fits in quite well with collective.sectionsubskin: my product that allows for variable interpolation into CSS via marker interfaces on folders.  It seems it should be possible to use PersistantDict based local utilities or just references to .props files to implement the same functionality with localconf. It would be great if CSSManager could be integrated with this, allowing users to go to a local CSS Manager to modify the appearace of folders or even individual content items.  Which would be nice.

Then, after a lovely pizza and glass of rosé with the sun beating down on us we went for a group photo in the park.  And got lost.  After that cerfuffle I moved onto working with PloneSoftwareCenter with Tarek, specifically allowing multiple related eggs to be grouped into the same PSCProject so eggs that are conceptually just supporting products for a larger project won’t crowd the listings.  This obviously had to work with the new PyPI support so new eggs that are added are put in the correct place.  I spent most of the afternoon working on making sure that two projects couldn’t claim responsibility over one egg.

What keeps catching my eye is the Misty theme that DaftDog et al are working on, whenever I walk past their laptops there’s something pretty on screen.  Buildbot support in buildouts was also mentioned, but I had zoned out a bit so don’t know exactly what was going on, but the concept of a buildbot recipe is pretty cool, I’ll look into that later.

There’s so much going on I’ll leave it to the other participants to blog about what they’re doing; it’s almost time for the pub.

no comments for now