Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

allow_anonymous field is always shown; fixes #51

  • Loading branch information...
commit a74fb920fd8461803abbae02d4b26bf04a908e92 1 parent a227292
@hvelarde hvelarde authored
View
6 acceptance-tests/polls.txt
@@ -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
4 docs/HISTORY.txt
@@ -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
+
View
6 src/collective/polls/content/poll.py
@@ -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 = ""
Please sign in to comment.
Something went wrong with that request. Please try again.