Gillian Sampont

This user hasn't shared any biographical information


Posts by Gillian Sampont

Omit attribute in TAL

March 18, 2015 - 4:56 pm

Posted in Planet Plone | 2 comments

I always tough than it was impossible to completely omit a tag attribute using TAL. So when I wanted to automatically check or not a radio button, I duplicated it like this: <input type=”radio” tal:condition=”mycondition” checked=”checked” /> <input type=”radio” tal:condition=”not:mycondition” /> But we can omit a tag attribute by passing nothing to a tal:attributes, like […]

Affinitic at Monster GameJam

November 24, 2014 - 5:36 pm

Posted in Event | No comments

We participated in the Monster GameJam contest, the deal was to create a video game within only 2 days. The given subject was “Inner mechanism”, so we had the idea to develop a game about an old guy trying to recursively explore his memory. It is a puzzle/memory game playable with arrow keys only. You […]

Google Chrome + Firebug Lite + z3c.form = Bad combo

January 9, 2014 - 2:26 pm

Posted in Planet Plone, Technical | No comments

There is a bug that provokes a double execution of the Update method of z3c.form when you launch Firebug Lite in Google Chrome. Be careful when you are developping in that environment. I guess that firebug lite triggers an undesirable event.

Percent in python’s string formatting

October 14, 2013 - 4:47 pm

Posted in Python | No comments

In python, we don’t need to escape the char ‘%’ in a string, except when we want to format the specific string. Examples: >>> ‘Here is a percent: %’ ‘Here is a percent: %’ >>> ‘Here is two percent %%’ ‘Here is two percent %%’ >>> ‘Here is a percent %% %s’ % ‘in formatted […]

New package affinitic.templer

October 1, 2013 - 10:44 am

Posted in Planet Plone | No comments

We just created a new package to gain a lot of time when we create new plone packages from scratch. The main goal is to maximum simplify this creation. This can include a diazo theme. All the details are in the README of the package found in

Filter menu using a grok view

March 4, 2013 - 5:03 pm

Posted in Planet Plone, Technical, Uncategorized | No comments

You want a menu to be seen only in certain conditions without creating a new “permission” stuff. You can use the filter attribute in your menuItem. You can access the request and context in it. Simple example: <menuItem for=”*” title=”My dinosaur menu” description=”" permission=”zope.Public” action=”@@mydinosaurpage” menu=”mainmenu” filter=”context/@@displayForDinosaursOnly”/> Now we have to create a view that […]

Python verbose in zope and scripts

February 6, 2013 - 2:41 pm

Posted in Planet Plone, Technical | No comments