--- a/src/pyams_security/views/login.py Thu May 03 11:50:02 2018 +0200
+++ b/src/pyams_security/views/login.py Wed May 23 15:09:56 2018 +0200
@@ -26,7 +26,12 @@
from z3c.form.interfaces import IDataExtractedEvent
# import packages
-from pyams_form.form import AddForm, AJAXAddForm, DialogAddForm
+try:
+ from pyams_zmi.form import AdminAddForm as AddForm, AdminDialogAddForm as DialogAddForm
+except ImportError:
+ from pyams_form.form import AddForm, DialogAddForm
+
+from pyams_form.form import AJAXAddForm
from pyams_form.schema import ResetButton, CloseButton
from pyams_pagelet.pagelet import pagelet_config
from pyams_security.credential import Credentials