formulator validate assumes non-unicode

Bug #101699 reported by Andy Altepeter
4
Affects Status Importance Assigned to Milestone
Silva
Fix Released
Medium
Unassigned

Bug Description

When modifying/setting a metadata set from custom code (e.g. a pythonscript),
the paradigm:

  md = context.service_metadata.getMetadata(obj_ver)
  silvaextra = md.get('silva-extra',acquire=0)
  silvaextra.data['publicationtime1'] = date1
  silvaextra.data['publicationtime2'] = date2
  md.setValues('silva-extra',silvaextra)

does not work. (at least) Formulator.Validator.StringValidator.validate assumes
input values are byte-encoded. Using the above paradigm the values are unicode.

Fields that support forced unicode to verify the value is not already unicode
before encoding.

Tags: formulator
Revision history for this message
Andy Altepeter (aaltepet) wrote :

The latest formulators released with Silva now check whether input is unicode or not. This is resolved.

Changed in silva:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.