commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnue/forms/samples/intro intro.gfd


From: Jason Cater
Subject: gnue/forms/samples/intro intro.gfd
Date: Sun, 29 Sep 2002 21:11:22 -0400

CVSROOT:        /home/cvs
Module name:    gnue
Changes by:     Jason Cater <address@hidden>    02/09/29 21:11:22

Modified files:
        forms/samples/intro: intro.gfd 

Log message:
        updated intro examples

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/forms/samples/intro/intro.gfd.diff?cvsroot=OldCVS&tr1=1.6&tr2=1.7&r1=text&r2=text

Patches:
Index: gnue/forms/samples/intro/intro.gfd
diff -c gnue/forms/samples/intro/intro.gfd:1.6 
gnue/forms/samples/intro/intro.gfd:1.7
*** gnue/forms/samples/intro/intro.gfd:1.6      Mon Sep 16 16:18:23 2002
--- gnue/forms/samples/intro/intro.gfd  Sun Sep 29 21:11:22 2002
***************
*** 16,22 ****
  
  import string
  
! s = SampleBlock.NameEntry[:]
  out = ''
  
  for word in string.splitfields(s,' '):
--- 16,22 ----
  
  import string
  
! s = SampleBlock.NameEntry.get()[:]
  out = ''
  
  for word in string.splitfields(s,' '):
***************
*** 59,65 ****
  
    out = out + ' ' + word
  
! SampleBlock.CodeNameEntry = string.strip(out)
  </trigger>
    <trigger type="NAMED" name="MyFortune">
  Fortunes = ['You will have a long and fruitful life with GNUe.',
--- 59,65 ----
  
    out = out + ' ' + word
  
! SampleBlock.CodeNameEntry.set(string.strip(out))
  </trigger>
    <trigger type="NAMED" name="MyFortune">
  Fortunes = ['You will have a long and fruitful life with GNUe.',
***************
*** 73,89 ****
              'You have a magnetic personality with GNUe forms.',
              'Use GNUe and you will notice the extraordinary in the ordinary.']
  
! if len(SampleBlock.YearEntry):
  
    try:
!     val = 'Confucius say, "%s"'%Fortunes[int(str(SampleBlock.YearEntry)[-1:])]
    except ValueError:
      val = "Please enter a valid birth year first."
  
  else:
    val = "Please enter a valid birth year first."
  
! SampleBlock.FortuneEntry = val
  </trigger>
    <page name="Welcome">
      <block name="Block_1">
--- 73,89 ----
              'You have a magnetic personality with GNUe forms.',
              'Use GNUe and you will notice the extraordinary in the ordinary.']
  
! if not SampleBlock.YearEntry.isEmpty():
  
    try:
!     val = 'Confucius say, 
"%s"'%Fortunes[int(SampleBlock.YearEntry.get()[-1:])]
    except ValueError:
      val = "Please enter a valid birth year first."
  
  else:
    val = "Please enter a valid birth year first."
  
! SampleBlock.FortuneEntry.set(val)
  </trigger>
    <page name="Welcome">
      <block name="Block_1">




reply via email to

[Prev in Thread] Current Thread [Next in Thread]