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

NMRL-342 AttributeError on upgrade step v1705: getDepartmentUID #154

Merged
merged 1 commit into from
Jun 30, 2017

Conversation

xispa
Copy link
Member

@xispa xispa commented Jun 30, 2017

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.GenericSetup.tool, line 1034, in manage_doUpgrades
  Module Products.GenericSetup.upgrade, line 166, in doStep
  Module bika.lims.upgrade, line 54, in wrap_func_args
  Module bika.lims.upgrade.v3_2_0_1704, line 38, in upgrade
  Module bika.lims.catalog.catalog_utilities, line 120, in setup_catalogs
  Module bika.lims.catalog.catalog_utilities, line 413, in _cleanAndRebuildIfNeeded
  Module plone.app.discussion.patches, line 47, in patchedClearFindAndRebuild
  Module OFS.FindSupport, line 239, in ZopeFindAndApply
  Module OFS.FindSupport, line 239, in ZopeFindAndApply
  Module OFS.FindSupport, line 227, in ZopeFindAndApply
  Module plone.app.discussion.patches, line 26, in indexObject
  Module Products.Archetypes.CatalogMultiplex, line 39, in indexObject
  Module Products.CMFPlone.CatalogTool, line 349, in catalog_object
  Module Products.ZCatalog.ZCatalog, line 476, in catalog_object
  Module Products.ZCatalog.Catalog, line 340, in catalogObject
  Module Products.ZCatalog.Catalog, line 284, in updateMetadata
  Module Products.ZCatalog.Catalog, line 410, in recordify
  Module bika.lims.content.analysisrequest, line 2854, in getDepartmentUIDs
  Module bika.lims.content.analysisrequest, line 2845, in getDepartments
AttributeError: getDepartmentUID

@xispa xispa merged commit 315362b into wip Jun 30, 2017
@xispa xispa deleted the nmrl-342-attribute-error-getDepartmentUID branch August 24, 2017 08:11
@xispa xispa changed the title NMRL-342 attribute error get department uid NMRL-342 AttributeError on upgrade step v1705: getDepartmentUID Oct 9, 2017
Ruhanga pushed a commit to Ruhanga/senaite.core that referenced this pull request Mar 14, 2022
The patients are moved inside Client objects when running the
upgrade step. Using the classic approach provided by Plone is
slower because performs some permissions checks, serializes the
object to be moved and also wakes-up objects several times
unnecessarily.

With this change, the copy&paste of objects from Patients folder
to Clients is slightly faster, cause some of the actions explained
above are omitted.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant