Skip to content

Commit c3d5a46

Browse files
committed
Black/flake8/zpretty
1 parent 17672bb commit c3d5a46

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

src/euphorie/client/browser/templates/choice_identification.pt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@
5353
name="answer"
5454
type="${python: 'checkbox' if choice.allow_multiple_options else 'radio'}"
5555
value="${option_path}"
56-
tal:define="option_path string:${context/zodb_path}/${option/id}"
56+
tal:define="
57+
option_path string:${context/zodb_path}/${option/id};
58+
"
5759
/>${option/title}
5860
</label>
5961
</fieldset>

src/euphorie/client/navigation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def FindNextQuestion(after, dbsession, filter=None):
4040
sql.and_(
4141
model.Choice.id == model.SurveyTreeItem.id,
4242
sql.or_(
43-
model.Choice.condition == None,
43+
model.Choice.condition == None, # noqa: E711
4444
model.Choice.condition.like(model.Option.zodb_path),
4545
),
4646
),

src/euphorie/content/browser/choice.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from Acquisition import aq_inner
44
from plone.dexterity.browser.view import DefaultView
55
from plone.memoize.instance import memoize
6-
from Products.Five import BrowserView
76

87

98
class ChoiceView(DefaultView, DragDropHelper):

src/euphorie/content/browser/export.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -305,9 +305,9 @@ def exportSurvey(self, parent, survey):
305305
if self.include_intro_text and StripMarkup(survey.introduction):
306306
node = self._add_string_or_html(node, survey.introduction, "introduction")
307307
if survey.classification_code:
308-
etree.SubElement(
309-
node, "classification-code"
310-
).text = survey.classification_code
308+
etree.SubElement(node, "classification-code").text = (
309+
survey.classification_code
310+
)
311311
etree.SubElement(node, "language").text = survey.language
312312
enable_web_training = getattr(survey, "enable_web_training", False)
313313
if enable_web_training:

src/euphorie/deployment/upgrade/alembic/versions/20250402124248_add_content_type_choice.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
Create Date: 2025-04-02 16:39:06.474435
66
77
"""
8+
89
from alembic import op
910
from euphorie.deployment.upgrade.utils import has_table
1011

0 commit comments

Comments
 (0)