Strumenti personali
Tu sei qui: Home Plone products OrderableReferenceField: patches orderablereference.pt.diff

orderablereference.pt.diff

Diff file for the orderablereference.pt template.

orderablereference.pt.diff — Plain Text, 1Kb

Contenuto del file

45d44
<                          fName fieldName;
48d46
<                          vlen python:len(vocab);
51,53c49,53
<                          refs python:[r.targetUID for r in refs];
<                          refs python:here.REQUEST.get(fName, refs);
<                          targetUIDs python:refs;">
---
>                          targetUIDs python:[ref.targetUID for ref in refs];
>                          left_uids python:[uid for uid in targetUIDs if uid in uids];
>                          added_uids python:[uid for uid in uids if not uid in targetUIDs];
>                          uids python:left_uids+added_uids;
>                          ">
107c107,108
<                                      tal:attributes="name string:${fieldName}:list;
---
>                                      tal:attributes="
>                                               name fieldName;
114c115
<                           <tal:block tal:repeat="single_value refs">
---
>                           <tal:block tal:repeat="single_value uids">