Archive for the 'wtf' Category

Ok, I’m fed up. Here’s the first of a series of Pearls from the Plone Source. Call it The Plone WTF if you like. Here goes, a loop that does nothing. Notice the ‘locking_info’ adapter is fetched outside the for loop: for action in workflowActions:    if action['category'] != ‘workflow’:        continue locking_info = queryMultiAdapter((context, request), name=’plone_lock_info’) [...]