Feed on
Posts
Comments

Archive for the 'Plone' Category

My notes for the second and third day at the Plone conference in San Francisco. How to think in Plone (when those  about you think in Drupal) Dan Jacka Let’s make switching to Plone easier Plone content is naturally structured, drupal content has nodes indentified by numbers. For Plone lots of content is a prerequisite Confusions [...]

My notes for the first day at the Plone conference in San Francisco. Dextery in the wild David Glick Case study of a complex Dexterity based solution, Net Impact Sales Force integration Membrane is used to represent users as content items. See dexterity.membrane Membrane the ugly: extra catalog with unneeded index Using dexterity with grok saves writing ZCML Content items [...]

Van GW20e nieuws De PyGrunn ‘Python and friends’ conferentie is gehouden in Het Paleis in Groningen en is bezocht door ruim 80 personen. Voorafgaand aan de conferentie was er een masterclass van Armin Ronacher. De conferentie is gericht op de Python programmeertaal en verwante technologie. Met sprekers uit Nederland en het buitenland was de Python-community [...]

For Plone there a few Google Maps packages available. I could get any of these working in Plone 4. I ended up writing my own jQuery code that allows setting a location in edit mode and shows the information when you view you view your content. I’m using the latest Google Maps API v3 for [...]

For a Plone portal I needed to restore a deleted folder. The deleted folder was not found in the undo tab, so I decided to use Zope import/export functionality with the binary ZEXP format. I exported a ZEXP file from a back-up using the import/export tab in the ZMI. On the Plone instance I imported [...]

This year I’m attending the Plone Conference 2009 in Budapest. Today is the second day and as always with Plone conferences the vibe is great and it’s interesting to see the different talks. Together with my collegue Kees Hink we gave a presentation about Hardening Plone. For a customer who needed a DMS to exchange [...]

Zope Formlib cancel button

For a Zope FormLib based form I wanted a ‘Cancel’ button. I tried some googling but couldn’t find any info on it. Here it is, it isn’t so hard: First do some imports: from plone.app.form.validators import null_validator from Products.statusmessages.interfaces import IStatusMessage The cancel function: @form.action(“Cancel”, validator=null_validator) def action_cancel(self, action, data): ….context = aq_inner(self.context) ….IStatusMessage(self.request).addStatusMessage(_(‘Cancelled’), type=’info’) [...]

KSS, client action on server

I’m using KSS in Plone to ajaxify user interface actions. When you’ve got a server-side KSS method and would like to call a client action, here’s how it is done: self.commands.addCommand(‘alert’, ‘.dummy-selector, message=’I’m called from the server!’) self.commands.addCommand(‘myKssAction’, ‘my-selector’, param_1=”, param_n=”) This way you can do necessary things (like storing data from a form), update [...]