Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to add Analysis Services #1416

Closed
dninet opened this issue Aug 2, 2019 · 11 comments
Closed

Unable to add Analysis Services #1416

dninet opened this issue Aug 2, 2019 · 11 comments
Assignees
Labels

Comments

@dninet
Copy link

dninet commented Aug 2, 2019

Description

I'm trying to add Analysis Services but an error keeps popping up when I try to save it.

Reproduction guide

Lims Setup -> Analysis Services -> + Add

Fill out all required fields and click Save

Observed behaviour

A message appears with

Info
Changes saved.

and a traceback as seen below

Contrary to the message, the service is not saved.

Expected behaviour

Well.... a new analysis service...

Versions

  • OS: Ubuntu Linux

  • senaite.core: 1.3.1

Traceback

We’re sorry, but there seems to be an error…

Here is the full error message:

Display traceback as text

Traceback (innermost last):

  • Module ZPublisher.Publish, line 138, in publish
  • Module ZPublisher.mapply, line 77, in mapply
  • Module ZPublisher.Publish, line 48, in call_object
  • Module Products.CMFPlone.FactoryTool, line 478, in __call__
  • Module ZPublisher.mapply, line 77, in mapply
  • Module ZPublisher.Publish, line 48, in call_object
  • Module Products.CMFFormController.FSControllerPageTemplate, line 91, in __call__
  • Module Products.CMFFormController.BaseControllerPageTemplate, line 29, in _call
  • Module Products.CMFFormController.ControllerBase, line 232, in getNext
  • Module Products.CMFFormController.Actions.TraverseTo, line 38, in __call__
  • Module ZPublisher.mapply, line 77, in mapply
  • Module ZPublisher.Publish, line 48, in call_object
  • Module Products.CMFFormController.FSControllerPythonScript, line 105, in __call__
  • Module Products.CMFFormController.Script, line 145, in __call__
  • Module Products.CMFCore.FSPythonScript, line 127, in __call__
  • Module Shared.DC.Scripts.Bindings, line 322, in __call__
  • Module Shared.DC.Scripts.Bindings, line 359, in _bindAndExec
  • Module Products.PythonScripts.PythonScript, line 344, in _exec
  • Module script, line 1, in content_edit <FSControllerPythonScript at /senaite/bika_setup/bika_analysisservices/portal_factory/AnalysisService/analysisservice.2019-08-02.1489681382/content_edit> Line 1
  • Module Products.CMFCore.FSPythonScript, line 127, in __call__
  • Module Shared.DC.Scripts.Bindings, line 322, in __call__
  • Module Shared.DC.Scripts.Bindings, line 359, in _bindAndExec
  • Module Products.PythonScripts.PythonScript, line 344, in _exec
  • Module script, line 12, in content_edit_impl <FSPythonScript at /senaite/bika_setup/bika_analysisservices/portal_factory/AnalysisService/analysisservice.2019-08-02.1489681382/content_edit_impl> Line 12
  • Module Products.Archetypes.BaseObject, line 633, in processForm
  • Module Products.Archetypes.BaseObject, line 626, in _processForm __traceback_info__: (<AnalysisService at /senaite/bika_setup/bika_analysisservices/analysisservice.2019-08-02.1489681382>, <Field DuplicateVariation(fixedpoint:rw)>, <bound method AnalysisService.setDuplicateVariation of <AnalysisService at /senaite/bika_setup/bika_analysisservices/analysisservice.2019-08-02.1489681382>>)
  • Module Products.Archetypes.CatalogMultiplex, line 118, in reindexObject
  • Module Products.CMFPlone.CatalogTool, line 349, in catalog_object
  • Module Products.ZCatalog.ZCatalog, line 476, in catalog_object
  • Module Products.ZCatalog.Catalog, line 353, in catalogObject
  • Module Products.ZCTextIndex.ZCTextIndex, line 184, in index_object
  • Module Products.Archetypes.BaseObject, line 526, in SearchableText
  • Module Products.Archetypes.BaseObject, line 526, in
  • Module Products.Archetypes.utils, line 568, in getValue

TypeError: DisplayList keys must be strings or ints, got <type 'dict'>

@dninet
Copy link
Author

dninet commented Aug 2, 2019

Additional behaviour: when Identifiers is left empty, the Analysis Service is added successfully.

@xispa xispa added the Bug 🐞 label Aug 5, 2019
@min2great
Copy link

I am also facing the same issue. This issue seems to be with the Identifiers as for any class which implements IHaveIdentifiers interface, the user comes across the same error while saving.

@ramonski
Copy link
Contributor

Thanks for reporting, we are going to remove the Identifiers from senaite.core in version 1.3.2.

@ramonski ramonski added the Cleanup 🧹 Code cleanup and refactoring label Aug 10, 2019
@min2great
Copy link

min2great commented Aug 10, 2019 via email

@ramonski
Copy link
Contributor

Hi Khurram,
I can understand that such a feature would be nice to have.
However, from a software development perspective, we want to shape senaite.core to provide a robust set of base functionalities, where such things can build on in separate add-ons.
In my opinion, this feature never worked properly and is not used by many labs to consider it a core functionality. Hence, we are going to remove such pieces of code which are dysfunctional, to make the system more maintainable and upgradable.
I hope you can understand that we need to make such strict decisions to get forward, otherwise we are in 20 years still on Plone 4 and Python 2.x.

@min2great
Copy link

min2great commented Aug 11, 2019 via email

@ramonski
Copy link
Contributor

Hi Khurram,
it is always possible to contribute to the Senaite Project with a fixture for this feature, or to support it by ordering such a development from one of the service providers.
In both cases we would reconsider holding such a feature in the core.
Best regards, Ramon

@alexanderstrand
Copy link

alexanderstrand commented Aug 21, 2019

Hi, I'm having the same issue, but cannot leave Identifiers empty as it is a required field. Is there another workaround?

Edit: Turns out it only appeared to be required by the form but was able to leave it blank. Thanks!

@min2great
Copy link

min2great commented Aug 21, 2019 via email

@nascimf
Copy link

nascimf commented Aug 24, 2019

@min2great Hi, I can leave identifiers empty.
error identificadores
When I make this, when I do this, it tells me that I must fill in that field. How you do it?
Thanks.

@min2great
Copy link

min2great commented Aug 24, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

6 participants