Skip to content

Commit

Permalink
formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
daniele-andreotti committed Jul 5, 2024
1 parent 89085db commit 7eccbfe
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/iosanita/contenttypes/behaviors/argomenti.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,4 @@ class ArgomentiNews(object):
""""""

def __init__(self, context):
self.context = context
self.context = context
2 changes: 1 addition & 1 deletion src/iosanita/contenttypes/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
directory="profiles/default"
post_handler=".setuphandlers.post_install"
/>

<genericsetup:registerProfile
name="taxonomy"
title="Io sanita: Content-types (behaviors)"
Expand Down
5 changes: 4 additions & 1 deletion src/iosanita/contenttypes/setuphandlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ def post_install(context):


def post_install_taxonomy(context):
import pdb;pdb.set_trace()
import pdb

pdb.set_trace()
context.runImportStepFromProfile(
"profile-iosanita.contenttypes:default", "typeinfo", True
)
Expand All @@ -34,6 +36,7 @@ def post_install_taxonomy(context):
for utility_name, utility in list(getUtilitiesFor(ITaxonomy)):
utility.updateBehavior(**{"field_prefix": ""})


def uninstall(context):
"""Uninstall script"""
# Do something at the end of the uninstallation of this package.

0 comments on commit 7eccbfe

Please sign in to comment.