Skip to content

publishing error #35

Description

@PinkLoadScreen

deployed senaite 2.6.0v2 by docker through portainer.
when i click publish report i got an error

also tried, edge and v2.x, same problem

Ooops, an error occured
Error: sequence item 0: expected string, SuperModel found

 - Expression: "python:', '.join(batch.BatchLabels)"
 - Filename:   ... src/senaite/impress/analysisrequest/templates/summary.pt
 - Location:   (line 92: col 37)
 - Source:     ... tent="structure python:', '.join(batch.BatchLabels)"></td>
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Expression: "python:view.render_summary(context, **options)"
 - Filename:   ... ss/src/senaite/impress/templates/reports/MultiDefault.pt
 - Location:   (line 22: col 28)
 - Source:     ... structure python:view.render_summary(context, **options)" />
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Arguments:  publication_specification: ''
               request: <WSGIRequest, URL=http://192.168.101.166:8081/senaite/samples/ajax_publish/render_reports>
               attrs: {}
               container: <PloneSite at /senaite>
               specification: ''
               reporter: {'username': 'admin', 'fullname': '', 'userid': u'admin', 'email': '', 'roles': ['Manager', 'Authenticated']}
               traverse_subpath: []
               template: <Products.Five.browser.pagetemplatefile.ViewPageTemplateFile object at 0x7f60ada29910>
               translate: <function translate at 0x7f60a8696850>
               spec: ''
               repeat: <Products.PageTemplates.engine.RepeatDictWrapper object at 0x7f60ab4e54b0>
               views: <Products.Five.browser.pagetemplatefile.ViewMapper object at 0x7f60a8196810>
               args: (<PloneSite at /senaite>,)
               here: <PloneSite at /senaite>
               user: <PropertiedUser 'admin'>
               nothing: None
               default: <DEFAULT>
               modules: <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter object at 0x7f60bc336e50>
               batch: <SuperModel:UID(7171834a23b84aa18f20e8b3de2196b1)>
               client: <SuperModel:UID(665506af34c246e98c799dd7bafcb5d1)>
               loop: {}
               context: <PloneSite at /senaite>
               collection: [<SuperModel:UID(3375e5216ba543dba3dce718b7fac49b)>]
               model: <SuperModel:UID(3375e5216ba543dba3dce718b7fac49b)>
               view: <senaite.impress.analysisrequest.reportview.MultiReportView object at 0x7f60a81b8ad0>
               root: <Application at >
               options: {'page_width': 297.0, 'name': 'DIN A4', 'format': 'A4', 'content_height': 170.0, 'margin_right': 20.0, 'content_width': 257.0, 'margin_top': 20.0, 'margin_left': 20.0, 'report_options': {}, 'margin_bottom': 20.0, 'page_height': 210.0, 'orientation': u'landscape'}
               target_language: None

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions