Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
NEWAGE-Labs
@NEWAGE-Labs
Do you know of any examples of this Override configuration being implemented successfully on Plone 5? I'm not sure what we are missing, but I'm willing to figure it out if anyone has an example repo.
NEWAGE-Labs
@NEWAGE-Labs

Nevermind, we figured it out!

It worked following the official Overriding a View Class documentation, but with the exception that we needed some Senaite interfaces to get everything working correctly.

The solution was using these interfaces instead of the IDefaultPloneLayer for our root level interface layer.

from senaite.impress.interfaces import ILayer as ISenaiteImpressLayer
from senaite.lims.interfaces import ISenaiteLIMS
from bika.lims.interfaces import IBikaLIMS

#Layer our custom views bind to
class INalLimsLayer(ISenaiteImpressLayer, ISenaiteLIMS, IBikaLIMS):
    """Marker interface that defines a browser layer."""
Paul VanderWeele
@faytrow

Does anyone know how to get the Navigation to re-load the name for a folder?

During install, my addon changes both the Factory Type title field, as well as the top level folder from "Methods" to "SOPs". The folder title field is changed using the API:

def post_install(context):
    """Post install script"""
    # Do something at the end of the installation of this package.
    site = api.get_portal()

    #Change 'Methods' folder title to 'SOPs'
    site.methods.title = "SOPs"

and the FTI is changed using a purging property:

<?xml version="1.0"?>
<object name="Methods"
        meta_type="Factory-based Type Information with dynamic views"
        xmlns:i18n="http://xml.zope.org/namespaces/i18n"
        i18n:domain="my.addon">
 <property name="title" purge="True">SOPs</property>
</object>

but the Navigation portlet doesn't register the change unless I create an entirely new folder. It looks correct in the ZMI, in the navigation control panel at: http://localhost:8080/senaite/@@navigation-controlpanel, and in the Breadcrumbs, but not in the Navigation portlet itself.

Paul VanderWeele
@faytrow
The title is initially set in bika/lims/profiles/default/structure/methods/.properties during Senaite install when the folder is created. The Nav tree is displaying that initial value even if the title is change after install though. I can modify that file directly and get a fresh site to properly display the title in the navigation, but if I alter the title as part of my own addon's installation the change is not picked up.
NEWAGE-Labs
@NEWAGE-Labs
Is there a straightforward way to change the Toolbar Logo in Senaite v2.x? It seems to function much differently than v1.3
Jeff Bullard
@Jeff-DFWEnv
Is it possible to retract/modify results in a worksheet after they have been verified? We made a mistake in data entry and did not realize it until the publish stage. Need to revise that result in the worksheet but its stuck in "verified" state. Thanks
NEWAGE-Labs
@NEWAGE-Labs

Is it possible to retract/modify results in a worksheet after they have been verified? We made a mistake in data entry and did not realize it until the publish stage. Need to revise that result in the worksheet but its stuck in "verified" state. Thanks

I believe by default, samples must be invalidated and retested if they've made it all the way the the Verified state. They cannot be 'unverified' since that sort of implies they were not truly verified in the first place. A workflow for that could be added via an add-on though.

Daniel
@DanKaranja

Hi, we have more than one lab and are trying to find out how to to limit what is visible/accessible to the separate lab managers to only what they create.Is this possible?

For example, LabManagerA can only see clients and interact with samples they create. LabManagerB is unable see/edit any of LabManagerA's clients/samples etc

Jeff Bullard
@Jeff-DFWEnv
@NEWAGE-Labs Thanks for reply on Verified state. I'll need to program capability to downgrade the state because as we are less than 100% prefect in verification. This particular batch of samples had >500 analysis results and one was incorrect. Due to inability to downgrade verification, had to start over at the beginning and re-enter all of them with new AR identifications etc. Huge chore and now the AR IDs don't match our bench sheets. That's a big problem.
phb95
@phb95
Hi All,
phb95
@phb95
Hi All,
New to gitter, you could have guessed :)
I'm currently collecting information about communication between a LIS and instruments. I've seen that a few years ago you drafted a project called FROID that was based on OpenHIM and FHIR. Can you share why this kind of approach was not used (as far as I can tell) in Senaite ?
NEWAGE-Labs
@NEWAGE-Labs

Is there a straightforward way to change the Toolbar Logo in Senaite v2.x? It seems to function much differently than v1.3

If anyone is interested, Ramonski gave and answer to this question, and we have verified it works! We did notice that Mr. Developer automatically creates a renamed location for the static resources though, so we needed to use ++plone++our.addon.images/logo.png

Has anyone successfully added a default_method to a AT Adapter? We have adapters that modify AnalysisRequests, but every time we try a default method we get a OUR_CUSTOM_FIELD.default_method is neither a method of <class 'bika.lims.content.analysisrequest.AnalysisRequest'> nor a callable error
NEWAGE-Labs
@NEWAGE-Labs

@NEWAGE-Labs Thanks for reply on Verified state. I'll need to program capability to downgrade the state because as we are less than 100% prefect in verification. This particular batch of samples had >500 analysis results and one was incorrect. Due to inability to downgrade verification, had to start over at the beginning and re-enter all of them with new AR identifications etc. Huge chore and now the AR IDs don't match our bench sheets. That's a big problem.

@Jeff-DFWEnv Did you try the Invalidate workflow? It should at least give you a new sample ID that matches with an addition -R1 added to indicate it is a retest. While it does not match the bench sheets exactly, there is an auditable trail inside Senaite linking the original sample to the retested sample. I believe the original results get moved over by default as well, but in an earlier state.

Hi All,
New to gitter, you could have guessed :)
I'm currently collecting information about communication between a LIS and instruments. I've seen that a few years ago you drafted a project called FROID that was based on OpenHIM and FHIR. Can you share why this kind of approach was not used (as far as I can tell) in Senaite ?

@phb95 Not sure if this is actually the answer you were looking for, but This post may be of interest to you.

phb95
@phb95
@NEWAGE-Labs Thanks for the link
Emmanuel Nyachoke
@enyachoke
Hi everybody. Am doing a project where is could be nice to have single sign on. Is this possible in senaite if yes could you point me in the right direction on how to achieve this.
montasser2020-cyber
@montasser2020-cyber
Hello everyone, I am a new user of SENAITE I am trying to modify the design of the report issued by software so I am trying to connect crystal report to the datasource of software but I couldnt find it so is there any information how to find it or if there are better idea for report design modification I will appreciate your help
NEWAGE-Labs
@NEWAGE-Labs

Hello everyone, I am a new user of SENAITE I am trying to modify the design of the report issued by software so I am trying to connect crystal report to the datasource of software but I couldnt find it so is there any information how to find it or if there are better idea for report design modification I will appreciate your help

Senaite Impress is what most senaite users use for reporting. There is documentation on the Github Page. It converts HTML TAL/TALES templates to render the image, and then converts it to a PDF.

The Senaite community site appears to be down
NEWAGE-Labs
@NEWAGE-Labs

Question to anyone with knowledge about JavaScript and modifying Senaite with custom add-ons and GenericSetup profiles.

In our custom Add-On, we wanted to renamed the type 'Sample Point' to 'Sample Location'. We did this by adding the SamplePoint factory type to our GenericSetup profile types.xml file, and changing only the title in SamplePoint.xml like so:

<?xml version="1.0"?>
<object name="SamplePoint"
        meta_type="Factory-based Type Information with dynamic views"
        xmlns:i18n="http://xml.zop.org/namespaces/i18n"
        i18n:domain="nal.lims">
<property name="title" i18n:translate="">Sample Location</property>
</object>

However, we are now having an issue where the SamplePoint will not save during the AR Add screen. It saves perfectly fine on the AR Edit screen, but will not survive a refresh nor submit on the Add screen. However, when inspecting the JavaScript of the SamplePoint element, we cannot determine why this is failing. We did not change anything that affects the referentiability of the widget, yet it fails to load the object from the add template into the javascript that temporarily holds it.

image.png
NEWAGE-Labs
@NEWAGE-Labs
Nevermind, the issue was mis-diagnosed because SampleType was being entered after SamplePoint. The issue appears to be that when no Sample Types are selected under the list of valid SampleTypes for a given SamplePoint, the SamplePoint cannot be searched in the AR Add popup. The filter query only shows SamplePoints with explicitly defined SampleTypes. Will investigate
Elinah
@elirabalison
Hello everyone, is it possible to make the header appear on all pages in senaite.impress?
NEWAGE-Labs
@NEWAGE-Labs

@elirabalison You can with a Multi-Report like we did in one of ours.

Pretty much wrap the pages you want the header in inside a tal:repeat TAL tag, and then iterate over the collection passed to the multi-report. Note The name of the report needs to begin or end with the word 'multi'. Not 100% where the code is that controls that, but I believe it is currently built in.

Also the collection variable is defined at the top of the report. You can find a similar example in the main senaite.impress repo's multi-reports
Elinah
@elirabalison
@NEWAGE-Labs thank you. I tried what you sait but it doesn't work. It only appear on the first page. :( I need to make the logo appear in all page on single and multi report.
klokom
@klokom
hi guys, is there a way to import sample list from csv or excel file or something like that?
NEWAGE-Labs
@NEWAGE-Labs

@NEWAGE-Labs thank you. I tried what you sait but it doesn't work. It only appear on the first page. :( I need to make the logo appear in all page on single and multi report.

How is your report set up?

For a Single report it should be straightforward if you are manually outlining each page in HTML anyway, so you just need to throw the header onto each page.

For the multi-report, you should have at least one tal:repeat tag or attribute in the report. Everything inside of that tag is being repeated which is what creates the seperate pages. If you add your header HTML immediately inside of that element, it will be repeated as well.

Gonzalo Hernandez
@gonzalohd_gitlab
Hello everyone, has anybody validated SENAITE in a GMP/GLP environment? If you have I'd like to hear about what worked and what didn't, how much effort it took ans so on. If you guys send me comments in private I can summarize your responses and post it here for everyone's benefit, otherwise just comment inline. Thank you very much.
Jonathan D. Galingan
@galinganmd
Hi, where to get a list of supported medical instruments for SENAITE? I'm canvassing for a client.
csniculae
@csniculae
Hello, I am new with senaite. I am installing senaite on Ubuntu 18.04 on Azure. I have installed Plone 4.13.9 and I have started the instance.

When I try to add senaite.lims at eggs in buildout.cfg and run buildout, I get the following error:
usrlcl@RoADN-Test:~/Plone/zinstance$ PYTHONHTTPSVERIFY=0 bin/buildout
Uninstalling zopepy.
Uninstalling instance.
Installing instance.
Couldn't find index page for 'senaite.lims' (maybe misspelled?)
Getting distribution for 'senaite.lims'.
Couldn't find index page for 'senaite.lims' (maybe misspelled?)
While:
Installing instance.
Getting distribution for 'senaite.lims'.
Error: Couldn't find a distribution for 'senaite.lims'.

Please advice. Thank you.

laitheyad
@laitheyad
Hi,can anyone explain to me how to connect my instance to a remote database via IP/port (hosting the DB on a server while running the application locally) instead of local ZEO (DB)
NEWAGE-Labs
@NEWAGE-Labs

Hello everyone, has anybody validated SENAITE in a GMP/GLP environment? If you have I'd like to hear about what worked and what didn't, how much effort it took ans so on. If you guys send me comments in private I can summarize your responses and post it here for everyone's benefit, otherwise just comment inline. Thank you very much.

We are an ISO:17025 2017 (and therefore ISO:9001 as well) accredited laboratory which tends to supercede the general GLPs. We use Senaite for the majority of our Quality Control system. However, we have added our own Plone Add-On in order to supplement certain functionality, and will likely continue to do so to meet the needs of our specific analyses.

With some simple HTML/CSS skills, you can accomplish a lot by simply creating custom Senaite Impress templates, and with some basic Python skills you could add callable methods to do pretty much anything in the Reports.

If you would like to use Senaite as a framework to expand into a more robust and customized LIMS for your specific laboratory, then you will likely need at least 1 senior Python developer who understands software development and working with Plone as a Framework. A larger DevOps team would increase the speed and magnitude of customizations you could make. Alternatively, the companies that support the core Senaite project offer customization consultation if you're looking for a vendor to manage your customized LIMS.

NEWAGE-Labs
@NEWAGE-Labs

Hi,can anyone explain to me how to connect my instance to a remote database via IP/port (hosting the DB on a server while running the application locally) instead of local ZEO (DB)

@laitheyad There does not appear to be an official 'Plone' way to do this that is well documented. There is a thread about it, but the poster did not seem to have success. You could also dig around the zope documentation as there are likely multiple ways to move the zeoserver, filestorage, and blobstorage to different drives and get them to interact.

Generally, it seems you would need to change your buildout.cfg file to use new var= and blobstorage= directories. However, we haven't actually done this before, so I'm not sure if IP:Port combos work by default or if you would need a webserver on the Database side to handle the request. I think your question may get a better answer in the Plone Community Forums though since this is more of a Zope/Plone question and there will be more users to help there.

Hello, I am new with senaite. I am installing senaite on Ubuntu 18.04 on Azure. I have installed Plone 4.13.9 and I have started the instance.

@csniculae What does your Buildout.cfg file look like? Also have you installed all of the Senaite and Plone system dependancies?

David Bain
@pigeonflight
@NEWAGE-Labs I would look at relstorage to achieve what you want.
David Bain
@pigeonflight
Just a note... if you're having issues with the installation instructions at https://www.senaite.com/docs/installation.html use this buildout.cfg https://gist.github.com/pigeonflight/bc0488a8f9a550c986ee4118972dc2e0. The issue is that Werkzeug 2.x breaks things
Paul VanderWeele
@faytrow

@NEWAGE-Labs I would look at relstorage to achieve what you want.

@pigeonflight I believe that @laitheyad is the one looking for that information.

Oscar Delgado
@oscaralexanderd_gitlab

Hi all, I am starting to use SENAITE LIMS and I find it great.

I need someone to tell me how to install SENAITE on a web server, that is, I need a hosting provider that supports the technical features of SENAITE. Thank you very much

Joseph
@cyberbytecode
Hey guys... Can someone help point me in the right direction to do a REST call and search by "BatchID".. At the moment I have to loop through all client samples, then after that consolidate samples into their relevant batches? Surely there's an easier way to do this via the API?
Manan2301
@Manan2301
image.png

image.png

Hello all! I was trying to create a Plone site within an already running Zope Instance. I followed the steps given here: (http://web.archive.org/web/20080611061803/http://plone.org/documentation/how-to/multiple-plone-sites-per-zope-instance-using-separate-data-fs-files-for-each-one). I was able to add group1 mount point given in 2nd step but when I create a Plone site as given in 3rd step, I face this error:
Error Type: APIError
Error Value: No tool named 'auditlog_catalog' found.
Will appreciate your help!

toropok
@toropok
hi! does anyone know what happend with community senaite site?
Have somebody experience using: plone.app.z3cform.widget.AjaxSelectFieldWidget or
plone.formwidget.autocomplete.AutocompleteFieldWidget widgets within your add-ons? we're encountering following problem: python code works fine, but js elements undefined or non-initialized - looks like an issue while importing js libraries (missing select-2 library). where to configure this?
MrEinstin
@MrEinstin
@pigeonflight Thank you for the info regarding the buildout config. I spent the entire weekend trying to install this as a demo.
I am building a demo server (non-public facing) on a fresh Ubuntu 18.04LTS install. With regards to the installation what eggs are the most popularly used that may be useful to a microbiology lab?
Campbell
@rockfruit
How many eggs are there? I suppose start with just senaite.lims in eggs. Unless you have some way that the microbio lab is very different from other service labs. At that point, you'd probably be writing a bit of python and html, not installing eggs :)
Did you get it running?