- Timestamp:
- 13 Mar 2014, 15:39:27 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/widgets/sequencewidget.py
r8057 r11495 30 30 from zope.schema.interfaces import IField, IList 31 31 32 32 33 class KofaSequenceWidget(ListSequenceWidget): 33 34 """A sequence widget for lists. … … 37 38 """ 38 39 template = ViewPageTemplateFile('sequencewidget.pt') 40 _kofa_seq_len_changed = False 41 42 def _generateSequence(self): 43 result = super(KofaSequenceWidget, self)._generateSequence() 44 if ((self.name + '.add' in self.request.form) or 45 (self.name + '.remove' in self.request.form)): 46 self._kofa_seq_len_changed = True 47 return result 48 39 49 40 50 class KofaSequenceDisplayWidget(SequenceDisplayWidget): … … 85 95 return contents 86 96 97 87 98 # Register our sequence widgets as default for lists. 88 99 @grok.adapter(IList, IField, IBrowserRequest) … … 91 102 return KofaSequenceWidget(obj, field, req, *args, **kw) 92 103 104 93 105 @grok.adapter(IList, IField, IBrowserRequest) 94 106 @grok.implementer(IDisplayWidget)
Note: See TracChangeset for help on using the changeset viewer.