[Silva-general] KeyError in external sources with "ListField" or "MultiListField" parameters after upgrading to Silva 2
eric at infrae.com
Wed Feb 6 15:41:19 CET 2008
Nico Grubert wrote:
> Dear Silva Developers
> I am upgrading my Silva instance from 1.4 to 2.04 and I found a major
> problem in handling External Sources with "ListField" or
> "MultiListField" parameters.
> In my application I have an external Source "scs_projects" with a
> "MultiListField" parameter "locations" which holds some paths to documents.
> In Silva 1.4 this MultiListField parameter is saved as:
> In Silva 2.04 the parameter is saved as:
> Changing to the forms editor raises a key error:
> KeyError: u"['/path/to/document1]"
> I am wondering how I can fix the described behavior...
> Any idea?
> I did a partial Silva content upgrade via
> services > service_extensions > Partial upgrades
> and the log file returned me that everything was upgraded successfully.
Hmm, I'm not sure. The bug lies with Silva 1.4 I think, because creating
a new code source with a multilist field behaves correctly, and gives no
errors when switching between kupu and the forms editor. It seems to me
the parameters are always saved as lists, never as strings, (I created a
code source with return repr(multilist_parameter) as its script.) If you
call the code source in a new document, does it give the error? If so,
can you send me a zexp of the code source, so I can do some more testing?
- eric casteleijn
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.infrae.com/pipermail/silva-general/attachments/20080206/aacbf023/attachment.pgp
More information about the silva-general