[pod] Bugfix: repeated error in a for loop (https://bugs.launchpad.net/appy/+bug/394267). [gen] pod field: get the value of appy cookie 'showSubTitle' in any pod template.

This commit is contained in:
Gaetan Delannay 2014-10-16 17:35:35 +02:00
parent 3dfb90b5b3
commit 1ed4f0bf23
5 changed files with 194 additions and 183 deletions

View file

@ -254,6 +254,10 @@ class MemoryBuffer(Buffer):
self.elements = {}
self.action = None
def clone(self):
'''Produces an empty buffer that is a clone of this one.'''
return MemoryBuffer(self.env, self.parent)
def addSubBuffer(self, subBuffer=None):
sb = Buffer.addSubBuffer(self, subBuffer)
self.content += ' ' # To avoid having several subbuffers referenced at