You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, I'm a recent new user of Geraldo (version 0.4.12-stable) and love it!
Recently I hit a bug when defining a report using ObjectValue.get_text. Strangely, during report generation the value for get_text is None. Some debugging shows ObjectValue.clone() is called by ReportGenerator.clone() at geraldo/generators/base.py:201, and clone does not copy the reference for get_text.
Our temporary fix for this is to subclass ObjectValue and extend clone:
class CloneObjectValue(ObjectValue):
'''Enhanced ObjectValue with more correct cloning'''
def __init__(self, *args, **kwargs):
super(CloneObjectValue, self).__init__(*args, **kwargs)
def clone(self):
new = super(CloneObjectValue, self).clone()
new.get_text = self.get_text
return new
The text was updated successfully, but these errors were encountered:
Hey, I'm a recent new user of Geraldo (version 0.4.12-stable) and love it!
Recently I hit a bug when defining a report using ObjectValue.get_text. Strangely, during report generation the value for get_text is None. Some debugging shows ObjectValue.clone() is called by ReportGenerator.clone() at geraldo/generators/base.py:201, and clone does not copy the reference for get_text.
Our temporary fix for this is to subclass ObjectValue and extend clone:
class CloneObjectValue(ObjectValue):
'''Enhanced ObjectValue with more correct cloning'''
The text was updated successfully, but these errors were encountered: