Laurent Lasudry

This user hasn't shared any biographical information

Homepage: http://www.affinitic.be


Posts by Laurent Lasudry

No more JS / CSS browser cache refresh pain

January 31, 2017 - 2:42 pm

Posted in Planet Plone | 1 comment

We often have the following problem : a CSS or a Javascript file is changed in a package we make a release (or not) and put it to production some visitors still gets old CSS and Javascript versions (except if by chance we remembered to reinstall package / re-save portal_css and portal_javascripts configs) and need […]

Get rid of huge images in your Plone site

April 12, 2016 - 2:51 pm

Posted in Planet Plone | 2 comments

Do you have users that don’t care about image sizes at all ? Do you have Plone sites with tons of raw photos galleries ? Do you want to shrink your Data.fs ? Then try the new collective.autoscaling package ! It allows automatic scaling of large images uploaded into your Plone sites. You can configure […]

Automatically pack your Plone instances (without zeo)

January 20, 2016 - 10:35 am

Posted in Planet Plone, Technical | No comments

At Affinitic, we have many Plone sites on our servers and we wanted to pack their ZODB automatically. Our goal is of course to do it without any downtime. It’s easy when you have a zeoserver, but you cannot use a packing script when there isn’t : zc.lockfile.LockError: Couldn’t lock ‘instance/var/filestorage/Data.fs.lock’ We decided to simply […]

Keyword fields are tied to allowRolesToAddKeywords roles

December 3, 2014 - 3:27 pm

Posted in Planet Plone | No comments

For a project, we have added some extended fields on contents. Those fields use KeywordWidget widget (same as Plone ‘Subject’ tags). We wanted to have a custom permission on those fields, so we used : read_permission=permissions.OurCustomPermission write_permission=permissions.OurCustomPermission But it didn’t work : the field title and label displayed correctly (when we have the permission) but […]

Beware of uppercase letters in your config files

August 12, 2014 - 3:05 pm

Posted in Planet Plone, Python, Technical | No comments

We got a surprise using a [theme:parameters] variable in the manifest.cfg of one of our Diazo theme. We were defining a parameter like that : isFrontPage = context/@@isFrontPage and then we were using it in the rules : <drop css:content=”#footer-sitemap” if=”$isFrontPage” /> But we got an error after having the Theme installed. And we found […]

Remove broken portlets programmatically

March 27, 2013 - 11:04 am

Tags:
Posted in Planet Plone, Technical | No comments

If you have specific broken portlets that needs to be removed from your Plone site, you will have to reinstall the product that contains your portlets, otherwise you will get this error : Traceback (innermost last): Module ZPublisher.Publish, line 126, in publish Module ZPublisher.mapply, line 77, in mapply Module ZPublisher.Publish, line 46, in call_object Module […]

Comment traduire des contenus dans Plone 4

September 5, 2012 - 2:34 pm

Posted in User manual | No comments

How to translate Plone 4 content – French manual I. Accéder à l’édition de contenus Pour accéder à l’édition des contenus du site Plone et à l’interface de traduction, il faut se connecter avec son identifiant et son mot de passe via le lien “Se connecter” situé en haut à droite du site. En règle […]