Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
valeriozhang
@valeriozhang
when i use this as a body
{
"portal_type": "Client",
"title": "Test Client",
"ClientID": "TEST-01",
"parent_uid": "c952f2f727ac4704b42374cb8b20d83a"
}
parent_path -> parent_uid
it created a record
but i get {
"_runtime": 0.03247499465942383,
"message": "You are not allowed to create this content",
"success": false
}
401 unauthorized
and a wierd client record gets created
Febriana Pangestu
@fpangestu_gitlab
Hi! I have several samples with results and I would like to combine the samples into a project (not sure where I can combine them) and have a calculation/ analysis under the PROJECT. Does anyone know how to do it??
gbmorrison
@gbmorrison
Hi All, having a strange issue with permissions. When our Lab Manager saves a new batch an error is thrown - checking the logs the message is 'The action against the <em>batch.2021-02-08.4854563382</em> object could not be carried out. One of the following constraints caused the problem: <br><br>The object does not support this operation.<br><br>-- OR --<br><br>The currently logged-in user does not have the <b>Copy or Move</b> permission respective to the object.'
Paul VanderWeele
@faytrow

{
"_runtime": 0.0012619495391845703,
"message": "You are not allowed to access 'clients' in this context",
"success": false
}

Are you including authentication in the request?

Paul VanderWeele
@faytrow
Has anyone had any success sending requests to Senaite.JSONAPI using cURL??? All my cURL requests fail to get converted correctly into a Dictionary by the API. I think it has to do with escaped quotation marks in the BODY of the request, but it happens even when I call the request using the -d @data.jsonparameter style of POST calling with cURL.
Paul VanderWeele
@faytrow

And is there a proper syntax for creating multiple objects in 1 request? I tried using a format like

[
    {
        Object 1...
    },
    {
        Object 2...
    }
]

But it failed to converted into a proper list of dictionaries. Is there a better format?

Paul VanderWeele
@faytrow
It doesn't look like it can actually even take multiple objects. The function get_request_data() that creates the data expects a Dictionary, and throws an error when json.loads(data) returns a List type (List of Dictionaries) instead.
David Bain
@pigeonflight
Is it too way out to consider using Senaite as a lunch order management platform?
gauravkittz
@gauravkittz
i'm not a developer, but want to understand senaite.impress. Can anyone please help me with adding range remark to published results?
gauravkittz
@gauravkittz
please can someone help me with publishing of range comment from specs in impress
Stefan Gruber
@grulisco
@pigeonflight: I would rather look for a kind of "classic" billing application. The paradigms of samples, analyses and results of LIMS barely fit your needs.
yofori
@yofori
Hi, has any one had any success with sending notification by SMS. I will appreciate any help here. Thanks
NEWAGE-Labs
@NEWAGE-Labs
Is there any way to include a "Date of Analysis" in a 2Dimensional CSV instrument import (Senaite 2.x)? We see the option in the XML format, but that does not appear functional at this time.
rjwswenson
@rjwswenson
Hello, I am just beginning an investigation into Senaite, but is there a customer portal or customer portal functionality as well? E.g. Can clients with client roles log in, complete test order requests, and if we wanted to offer an API, allow them to generate an API key so that developers can then use the API key to import or exchange data via API?
Elinah
@elirabalison
Hello, I tried to bulk sampling with admin roles. The problem is that sample button doesn't appear in the admin session. How can I fix that please? Note that if I logged out and use a Sampler session the button appear and it's possible to bulk sampling.
pratiklodha95
@pratiklodha95
with senaite.sync archived, what is the best way to sync data across platforms
Gonzalo Hernandez
@gonzalohd_gitlab
hi all, I've been working with Senaite on and off for a few years. recently I've been tasked with adding some functionality for specific workflows. The first workflow refers to the ability to monitor the stock of reference materials.
The lab I'm working for controls the weight of each standard before and after a QC run or analysis. They wish to be able to track the use of each standard and get a warning when they're running low. How difficult would it be to add this functionality to Reference Samples, for example?
Mike Metcalfe
@mikejmets

Nevertheless, you need to add a custom react component field like e.g. the StringField:
https://github.com/senaite/senaite.core.listing/blob/master/src/senaite/core/listing/react/components/StringField.coffee
But change the input type to date: https://github.com/senaite/senaite.core.listing/blob/master/src/senaite/core/listing/react/components/StringField.coffee#L58

I need an editable DateField in a listing. Has anyone started on this yet? Also, I don't see the Issue tab in s.app.listing on github, where should I create an issue for this?

Mike Metcalfe
@mikejmets
Reading through the s.a.listing README I don't see anything about coffeescript. If someone can tell me where the converted js output should go, I will update the README. Or does webpack do it automagically?
toedtling
@toedtling
is there any fast way tutorial how to set up senaite on a raspberry
Mike Metcalfe
@mikejmets
Wow, there are loads of react datetime pickers (https://www.npmjs.com/search?q=datetime%20picker). Any thoughts/preferences?
Ramon Bartl
@ramonski

Reading through the s.a.listing README I don't see anything about coffeescript. If someone can tell me where the converted js output should go, I will update the README. Or does webpack do it automagically?

Hi Mike, yes, webpack is taking care of all conversion and packing already

Wow, there are loads of react datetime pickers (https://www.npmjs.com/search?q=datetime%20picker). Any thoughts/preferences?

I would actually just go for the HTML 5 date fields

Ross Kiernan
@rosskiernan4_gitlab
Hi all, I was just wondering about Senaite is there anyway once data gets put into senaite that the same data is then pushed into another system?
Mike Metcalfe
@mikejmets

I would actually just go for the HTML 5 date fields

I actually require a DateTime field but the html5 datetime field is deprecated and datetime-local has not supported by all browsers (in my case firefox on linux)

Mike Metcalfe
@mikejmets
This is from developer.mozilla.org: The control's UI varies in general from browser to browser; at the moment support is patchy, with only Chrome/Opera and Edge on desktop and most modern versions of mobile browsers having usable implementations. In other browsers, these degrade gracefully to simple <input type="text"> controls.
kidpixo
@kidpixo
Hi, I just discover Senaite.
I cannot understand if I can store spectral measurements too.
At the end they are just text files.
thanks!
Chenderin
@Chenderin
Hello everyone, I'm a newbie using SENAITE and I would like you to please help me with a question I have. I want to export customer data, samples, etc, but I can't find any solution. I know that there is an option to generate reports, but unfortunately it is very limited. I have reviewed many topics in the forum, but none give a clear solution. I would like to know if any of you know how to do it to date? I am very interested in using this LIMS, but the reports are very important to me. Thanks a lot
valeriozhang
@valeriozhang
ez_setup.py is deprecated and when using it setuptools will be pinned to 33.1.1 since it's the last version that supports setuptools self upgrade/installation, check pypa/setuptools#581 for more info; use pip to install setuptools
Downloading https://pypi.io/packages/source/s/setuptools/setuptools-33.1.1.zip
Extracting in /tmp/tmpZb4xEq
Now working in /tmp/tmpZb4xEq/setuptools-33.1.1
Building a Setuptools egg in /tmp/bootstrap-tjxCat
warning: no files found matching '' under directory 'setuptools/_vendor'
/tmp/bootstrap-tjxCat/setuptools-33.1.1-py2.7.egg
error: https://files.pythonhosted.org/packages/3b/69/3584b5d1f197460194647aa12c627cb4b0b822ee1782fd6c867280f2e6d7/zc.buildout-2.13.4.tar.gz#sha256=b978b2f9317b317ee4191f78fcc4f05b1ac41bdaaae47f0956f14c8285feef63 hostname 'files.pythonhosted.org' doesn't match either of 'r.ssl.fastly.net', '
.catchpoint.com', '.cnn.io', '.dollarshaveclub.com', '.eater.com', '.fastly.picmonkey.com', '.files.saymedia-content.com', '.ft.com', '.meetupstatic.com', '.nfl.com', '.pagar.me', '.picmonkey.com', '.realself.com', '.sbnation.com', '.shakr.com', '.streamable.com', '.surfly.com', '.theverge.com', '.thrillist.com', '.vox-cdn.com', '.vox.com', '.voxmedia.com', 'eater.com', 'ft.com', 'i.gse.io', 'picmonkey.com', 'realself.com', 'static.wixstatic.com', 'streamable.com', 'surfly.com', 'theverge.com', 'vox-cdn.com', 'vox.com', 'www.joyent.com'
Traceback (most recent call last):
File "bootstrap.py", line 193, in <module>
"Failed to execute command:\n%s" % repr(cmd)[1:-1])
Exception: Failed to execute command:
'/usr/local/bin/python', '-c', "import sys; sys.path[0:0] = ['/tmp/bootstrap-tjxCat/setuptools-33.1.1-py2.7.egg']; from setuptools.command.easy_install import main; main()", '-mZqNxd', '/tmp/bootstrap-tjxCat', 'zc.buildout==2.13.4'
The command '/bin/sh -c python bootstrap.py && bin/buildout && ln -s $SENAITE_FILESTORAGE/ var/filestorage && ln -s $SENAITE_BLOBSTORAGE/ var/blobstorage && chown -R senaite:senaite $SENAITE_HOME $SENAITE_DATA && rm -rf $SENAITE_HOME/buildout-cache/downloads/dist' returned a non-zero code: 1
ERROR: Service 'zeoserver' failed to build
has anyone had this issue before via docker?
valeriozhang
@valeriozhang
everything was working fine until today
mateoke
@mateoke
Regarding Senaite Health, can the process for requesting investigations be changed to a more intuitive one? Doctors never ask for samples; they ask for tests (represented by analysis services and analysis profiles). The current process of making analysis requests which begins by first creating samples then indicating tests to be performed on those samples makes the process quite challenging and difficult to adopt Senaite when other healthcare LIMS follow a more natural flow. Also, the anticipated QA around making sure samples are collected in the right containers does not work this way i.e there is no point where the system recommends to the user the correct container to collect a sample in. An ideal flow would be for a doctor to request for an analysis service/profile and get indication of the sample type and container to do this with.
Stefan Gruber
@grulisco
@mateoke Please try out using analysis templates instead of analysis profiles...
You can configure sample partitions, containers and sample types there.
NEWAGE-Labs
@NEWAGE-Labs

Hello everyone, I'm a newbie using SENAITE and I would like you to please help me with a question I have. I want to export customer data, samples, etc, but I can't find any solution. I know that there is an option to generate reports, but unfortunately it is very limited. I have reviewed many topics in the forum, but none give a clear solution. I would like to know if any of you know how to do it to date? I am very interested in using this LIMS, but the reports are very important to me. Thanks a lot

@Chenderin There are multiple ways to export data depending on whether you need raw data or a PDF.

For all Reports/PDFs, you should use the Senaite.Impress addon in addition to senaite.core and senaite.lims. You can customize your own report templates based on TAL/METAL expressions (as a lot of Plone is done). I don't believe Senaite.Impress has Chameleon support, but I could be wrong :)

For raw data, it is best to use the Senaite API if you can. The code lives inside the senaite.core project, but there is an old git repo for the API specifically that has the documentation. The other primary method is to include the senaite.jsonapi addon and get a lot of relevant data in an HTTP request.

NEWAGE-Labs
@NEWAGE-Labs

is there any fast way tutorial how to set up senaite on a raspberry

@toedtling Senaite on a Pi should be similar to running Senaite/Plone any other Linux distro, but your Pi needs to meet Plone's minimum requirements.

Ensure your Pi meets Plone's Installation Requirements, and then follow the Official Senaite Installation Instructions.

Alternatively, you could put Docker on your Pi, and simply run a Senaite container. There should be a few images available, but Ramonski's is the official one I believe (and should be labelled as such).

Your Pi might be powerful enough to host the site, but not to additionally run the browser needed to view it. If resources are limited, ensure your Pi is on a network and navigate to YOUR_PI_IP:8080 in your browser.

NEWAGE-Labs
@NEWAGE-Labs

The lab I'm working for controls the weight of each standard before and after a QC run or analysis. They wish to be able to track the use of each standard and get a warning when they're running low. How difficult would it be to add this functionality to Reference Samples, for example?

@gonzalohd_gitlab That would depend on your familiarity with Plone Development. Senaite was built following most of Plone's conventions to allow multiple Add-Ons to work together. A custom Plone Add-On that modifies the reference samples and does all the bookkeeping/notifications you want should be incredibly feasible!

Unfortunately, Plone is a pretty steep learning curve, so if you're brand new to it I would plan on learning for a bit first. There is a pretty good Plone Training on learning to create Add-Ons for Plone. However, you'll need to keep in mind that Senaite is a combination of a few Add-Ons that are already created, so your modifications wouldn't be the same as they would for a brand new site. For that you'll need to read the GitHub Repositories themselves, browser the Senaite Community Forums, and read some of the old conversations here on Gitter ^^^

laitheyad
@laitheyad
Hi, I’ve followed the instruction that were provided to use the dynamic specs but still i didn’t get the out of range mark !
is there any instructions except those ?
https://community.senaite.org/t/multiple-analysis-specifications/407
Gonzalo Hernandez
@gonzalohd_gitlab
@NEWAGE-Labs thank you very much for your response
NEWAGE-Labs
@NEWAGE-Labs

Does anyone know how to Override a View Class when the view is specifically for the default view?

We would like to override some of the browser view classes like BatchFolderContentsView, but we cannot seem to get the changes to appear unless we manually enter a @@ style url for whatever the name= field is in our configure.zcml .

We noticed that the name for the view is "base_view" which that the Default view has an alias.

However, (for the BatchFolder example specifically) we have tried using the naming conventions: BatchFolder, base_view, and (Default) with no success in changing which view is rendered by default.

NEWAGE-Labs
@NEWAGE-Labs
Do we need to do something with GenericSetup to get the bika.lims AT content to use our subclassed view as the default view instead somehow? Does anyone have an example of how to override the default view for any of the Senaite content types from a separate Add-On?
NEWAGE-Labs
@NEWAGE-Labs

This is what we have for it so far in our addon:

In our browser/configure.zcml we added:

  <!-- Override BatchFolder View Class -->
  <browser:page
      name="BatchFolder"
      class=".batchfolder.CustomBatchFolderContentsView"
      permission="cmf.ListFolderContents"
      for="bika.lims.interfaces.IBatchFolder"
      layer="nal.lims.interfaces.INalLimsLayer"
      />

And then in our browser/batchfolder.py we added:

from bika.lims.browser.batchfolder import BatchFolderContentsView
#Some other imports

class CustomBatchFolderContentsView(BatchFolderContentsView):
    #Our customized BatchFolder view class

If we navigate to localhost:8080/oursenaitesite/.../@@BatchFolder we successfully see our custom view. We would like this to be the Default
However, with the name field set to name='base_edit' which is the name senaite aliases the (Default) view as, we don't get our custom view and ONLY get the Senaite default.

Mike Metcalfe
@mikejmets
To override you must place the config in overrides.zcml not configure.zcml
Also, like the configure.zcml hierarchy that starts in the root of the add on, you need an overrides.zcml that includes browser/overrides.zcml