From cbab84beea7253334c061ab2d65a1d1c6e8e808b Mon Sep 17 00:00:00 2001 From: Tim Parkin Date: Wed, 29 Jul 2009 11:25:31 +0100 Subject: [PATCH] fixed bug in sequence item template blob generation. See changelog --- CHANGELOG | 29 ++++++++++++++++++++++------- formish.egg-info/PKG-INFO | 2 +- formish/forms.py | 4 ++-- setup.py | 2 +- 4 files changed, 26 insertions(+), 11 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index b8c8d26..23d079c 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,10 +2,18 @@ Changlelog ========== +0.8.2b +------ + +BUGFIX: When using custom templates, the generated 'blob' of data that + represents the 'new item' template was not working correctly. This + should not have affected normal uses of formish + 0.8.2 ----- - * Rewritten formish javascript for sequences to use class name hooks instead of relative paths. Add SequenceOfSequence support + * Rewritten formish javascript for sequences to use class name hooks instead + of relative paths. Add SequenceOfSequence support BUGFIX: Sequence of Sequence javascript manipulation did not work correctly at all. @@ -17,23 +25,29 @@ BUGFIX: Enctype wasn't being encoded correctly hence file uploads didn't work 0.8.1b ------ - * changed behaviour of enctype so that multi-part is only used if there is a file upload on the form + * changed behaviour of enctype so that multi-part is only used if there is a + file upload on the form 0.8.1a ------ -BUGFIX: Sequences were using base64 encoding to store new items. This wasn't handling unicode correctly. Changed to use urlencode decodeURIComponent. The JQuery base64 library is now not needed. -BUGFIX: Structures were emitting metadata when they are only needed for sequences +BUGFIX: Sequences were using base64 encoding to store new items. This wasn't + handling unicode correctly. Changed to use urlencode + decodeURIComponent. The JQuery base64 library is now not needed. +BUGFIX: Structures were emitting metadata when they are only needed for + sequences 0.8.1 ----- - * Add the ability to emit form fields using field names which will alow emission of 'slices' of form fields. + * Add the ability to emit form fields using field names which will alow + emission of 'slices' of form fields. 0.8f ---- - * added 'crop' flag to the fileresource handler that instead of resizing to bounds, resizes to fill bounds and crops excess. + * added 'crop' flag to the fileresource handler that instead of resizing to + bounds, resizes to fill bounds and crops excess. 0.8e ---- @@ -191,7 +205,8 @@ BUG FIX: Missed replacing a reference to _template in formish.validation * Documentation improvements - Started adding doctests to documentation - Reduced the weight of the documentation (simplify styling/templates) - * Lots of changes to the way file uploads are handled - will document before a tagged release + * Lots of changes to the way file uploads are handled - will document before a + tagged release - Using a 'headered' filestore that allows meta information to be stored with the file - this means cached files are not browseable on the filesystem anymore diff --git a/formish.egg-info/PKG-INFO b/formish.egg-info/PKG-INFO index 5f697f4..dbf03d3 100644 --- a/formish.egg-info/PKG-INFO +++ b/formish.egg-info/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 1.0 Name: formish -Version: 0.8.2 +Version: 0.8.2b Summary: Formish is a schema backed, templating language agnostic form generation and handling library. Home-page: http://form.ish.io Author: Tim Parkin, Matt Goodall diff --git a/formish/forms.py b/formish/forms.py index ef378af..fbc6f7b 100644 --- a/formish/forms.py +++ b/formish/forms.py @@ -469,7 +469,7 @@ def get_field(self, name): segments = name.split('.') for field in self.fields: if segments[0] == '*': - b = field.bind('*',field.attr) + b = self.bind('*',field.attr) if len(segments) == 1: return b else: @@ -1075,7 +1075,7 @@ def get_field(self, name): segments = name.split('.') for field in self.fields: if segments[0] == '*': - b = field.bind('*',field.attr) + b = self.bind('*',field.attr) if len(segments) == 1: return b else: diff --git a/setup.py b/setup.py index 46fc895..eaae310 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ from setuptools import setup, find_packages import sys, os, glob -version = '0.8.2' +version = '0.8.2b' setup(name='formish', version=version,