ramonski on plone5
ramonski on 2.x
Bumped version (compare)
ramonski on 2.x
Fixed link (compare)
ramonski on 2.0.0rc2
$ docker --version Docker version 19.03.13, build 4484c46d9d
I tried also to import senaite config but I got this error: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 bika.lims.exportimport.dataimport, line 96, in __call__ Module bika.lims.exportimport.load_setup_data, line 123, in __call__ Module bika.lims.exportimport.setupdata, line 111, in __call__ Module bika.lims.exportimport.setupdata, line 527, in Import Module Products.Archetypes.BaseObject, line 428, in update Module Products.Archetypes.Schema, line 528, in updateAll Module Products.Archetypes.ClassGen, line 76, in generatedMutator Module wicked.fieldevent, line 34, in store Module zope.event, line 31, in notify Module zope.component.event, line 24, in dispatch Module zope.component._api, line 136, in subscribers Module zope.component.registry, line 321, in subscribers Module zope.interface.adapter, line 585, in subscribers Module wicked.fieldevent, line 24, in notifyFieldEvent Module zope.component._api, line 136, in subscribers Module zope.component.registry, line 321, in subscribers Module zope.interface.adapter, line 589, in subscribers Module wicked.fieldevent.meta, line 83, in field_value_set Module Products.Archetypes.Field, line 1140, in set Module Products.Archetypes.Field, line 1422, in _process_input
TextFieldException: Value is not File or String (<type 'float'> - <type 'float'>) Note that I use senaite 1.3.4 and the config file is from https://docs.google.com/spreadsheets/d/1m56tIL24f-cBqMoWouzgtoRAyzNBPTUgbW9GHYMFdfY/edit#gid=936537807
analysisrequest.pybased on the BikaSelectionWidget with the wildcard "MyField" having vocabulary in the form of
("ShortCut", "FullName"). I tried to get it searchable by adding it to metadata column as explained here :point_up: 26. Juli 2019 17:47 and here :point_up: 23. September 2019 16:35
MyFielddid work, but only for the
ShortCut. Is it possible to get the
FullNamefrom the BikaSelectionWidget? Or did I make mistakes with
getMyFieldand if done correctly it would show the
DisplayList, so yours should look like similar to
DisplayList((('shortcut', 'Shortcut'), ('fullname', 'FullName'))))though. Can you paste how you've delcared this field?
I did not write that part of code myself due to missing knowledge and the person responsible is no longer part of the team. I just inherited this project without any knowledge of coding and I'm trying to get behind it.
StringField( 'MyField', #some stuff happening vocabulary=[ ('ShortCut - invisible during addition of a new AR', 'full Name Which is visible during addition of a new AR'), #and some more things to choose from widget=BikaSelectionWidget, # details of the widget
@RaabJoh better you add a vocabulary like this in the top of your class:
MYFIELD_VOCAB = DisplayList(( ('shortcut', 'ShortCut - invisible during addition of a new AR'), ('fullname', 'full Name Which is visible during addition of a new AR') ))
And declare your field as follows:
StringField( 'MyField', vocabulary=MYFIELD_VOCAB ...