Skip to content

Commit

Permalink
Fix pfg_prefix for PloneFormGen forms to really return a unique prefi…
Browse files Browse the repository at this point in the history
…x per form in a full_view.
  • Loading branch information
thet committed Jan 18, 2013
1 parent ea125a4 commit 263d070
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
Changes
=======

1.1.1 (unreleased)
------------------

- Fix pfg_prefix for PloneFormGen forms to really return a unique prefix per
form in a full_view.
[thet]


1.1 (2013-01-16)
----------------

Expand Down
4 changes: 2 additions & 2 deletions collective/fullview/full_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ def is_pfg(self):

@property
def pfg_prefix(self):
pfg_prefix = getattr(self, '_pfg_prefix', 0)
pfg_prefix = self.request.get('_pfg_prefix', 0)
pfg_prefix += 1
self._pfg_prefix = pfg_prefix
self.request.set('_pfg_prefix', pfg_prefix)
return '_pfg_prefix_%s' % pfg_prefix

@property
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from setuptools import setup, find_packages

version = '1.1'
version = '1.1.1'

setup(name='collective.fullview',
version=version,
Expand Down

0 comments on commit 263d070

Please sign in to comment.