Skip to content

Commit

Permalink
Added script to disable authentication plugins. Needed by copy-data s…
Browse files Browse the repository at this point in the history
…cript
  • Loading branch information
sgeulette committed Apr 3, 2017
1 parent 9265625 commit d502414
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions disable-authentication.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from Products.ExternalMethod.ExternalMethod import manage_addExternalMethod
# we add the external method cputils_install
if not hasattr(app, 'cputils_install'):
manage_addExternalMethod(app, 'cputils_install', '', 'CPUtils.utils', 'install')
# we run this method
app.cputils_install(app)

# disable authentication
app.cputils_change_authentication_plugins(activate='0', dochange='1')
import transaction
transaction.commit()

0 comments on commit d502414

Please sign in to comment.