Permalink
Browse files

allow_anonymous field is always shown; fixes #51

  • Loading branch information...
1 parent a227292 commit a74fb920fd8461803abbae02d4b26bf04a908e92 @hvelarde hvelarde committed Jun 11, 2012
Showing with 4 additions and 12 deletions.
  1. +0 −6 acceptance-tests/polls.txt
  2. +4 −0 docs/HISTORY.txt
  3. +0 −6 src/collective/polls/content/poll.py
@@ -17,12 +17,6 @@ Test CRUD
Goto Homepage
Create, Update, Delete Poll Test poll
-Test Issue X
- Goto Homepage
- Add Poll Issue X
- Issue X Issue X
- Delete Poll Issue X
-
*** Keywords ***
Setup
View
@@ -6,6 +6,8 @@ Because you have to know where your towel is.
1.0.2 (unreleased)
^^^^^^^^^^^^^^^^^^
+- allow_anonymous field is always shown (fixes `#51`_). [hvelarde]
+
- Some refactoring on tests was done; we now test for CSS installation and
removal. [hvelarde]
@@ -63,3 +65,5 @@ Because you have to know where your towel is.
- Initial release.
+.. _`#51`: https://github.com/collective/collective.polls/issues/51
+
@@ -15,8 +15,6 @@
from zope.schema.vocabulary import SimpleVocabulary, SimpleTerm
-from z3c.form.interfaces import HIDDEN_MODE
-
from plone.directives import dexterity
from plone.directives import form
@@ -32,8 +30,6 @@
from collective.polls.polls import IPolls
-from collective.polls.utils import anonymous_view_parent
-
from collective.polls import MessageFactory as _
@@ -260,8 +256,6 @@ class PollEditForm(dexterity.EditForm):
def updateWidgets(self):
''' Update form widgets to hide column option_id from end user '''
super(PollEditForm, self).updateWidgets()
- if not anonymous_view_parent(self.context):
- self.widgets['allow_anonymous'].mode = HIDDEN_MODE
self.widgets['options'].allow_reorder = True
data = ""

0 comments on commit a74fb92

Please sign in to comment.