~communesplone/appy/communesplone

« back to all changes in this revision

Viewing changes to src/appy/pod/pod_parser.py

  • Committer: Jean-François Roche
  • Date: 2011-08-03 14:00:53 UTC
  • Revision ID: jfroche@affinitic.be-20110803140053-iliurzc0pg48p21g
use expression in text input

Show diffs side-by-side

added added

removed removed

Lines of Context:
213
213
        elif elem == ('%s:annotation' % officeNs):
214
214
            e.state = e.READING_STATEMENT
215
215
        elif (elem == ('%s:change-start' % textNs)) or \
 
216
             (elem == ('%s:text-input' % textNs)) or \
216
217
             (elem == ('%s:conditional-text' % textNs)):
217
218
            e.state = e.READING_EXPRESSION
218
219
            e.exprHasStyle = False
288
289
                    e.currentContent = ''
289
290
            elif e.state == e.READING_EXPRESSION:
290
291
                if (elem == ('%s:change-end' % textNs)) or \
 
292
                   (elem == ('%s:text-input' % textNs)) or \
291
293
                   (elem == ('%s:conditional-text' % textNs)):
292
294
                    expression = e.currentContent.strip()
293
295
                    e.currentContent = ''