Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Cherokee: commits

[4219] CTK/trunk/tests/test1.py: Clarifies test1.py

 

 

Cherokee commits RSS feed   Index | Next | Previous | View Threaded


cherokee at cherokee-project

Feb 8, 2010, 10:09 AM

Post #1 of 1 (49 views)
Permalink
[4219] CTK/trunk/tests/test1.py: Clarifies test1.py

Revision: 4219
http://svn.cherokee-project.com/changeset/4219
Author: alo
Date: 2010-02-08 19:09:33 +0100 (Mon, 08 Feb 2010)

Log Message:
-----------
Clarifies test1.py

Modified Paths:
--------------
CTK/trunk/tests/test1.py

Modified: CTK/trunk/tests/test1.py
===================================================================
--- CTK/trunk/tests/test1.py 2010-02-08 17:36:36 UTC (rev 4218)
+++ CTK/trunk/tests/test1.py 2010-02-08 18:09:33 UTC (rev 4219)
@@ -1,4 +1,5 @@
import CTK
+import time

def error(x):
raise Exception("Bad dog!!!!")
@@ -16,15 +17,18 @@
OPTIONS = [('one','uno'), ('two','dos'), ('three', 'tres')]

def apply():
+ if CTK.post['server!tri']:
+ time.sleep(2)
+
return {'ret': "ok"}

class default:
def __init__ (self):
a = CTK.PropsAuto ('/apply')
- a.Add ('Name', CTK.TextField({'name': "server!uno"}), 'Example 1')
- a.Add ('Surname', CTK.TextField({'name': "server!dos"}), 'Lalala')
- a.Add ('Nick', CTK.TextField({'name': "server!tri"}), 'Oh uh ah!')
- a.Add ('Active', CTK.Checkbox ({'name': "server!active", 'checked':1}), 'Nuevo')
+ a.Add ('To upcase', CTK.TextField({'name': "server!uno"}), 'Converts the content of the field to upcase')
+ a.Add ('Shows error', CTK.TextField({'name': "server!dos"}), 'It shows an error, it does not matter what you write')
+ a.Add ('Delay 2secs', CTK.TextField({'name': "server!tri"}), 'It delays response for 2 seconds, so the submitting message is shown')
+ a.Add ('Active', CTK.Checkbox ({'name': "server!active", 'checked':1}), 'It\'s just a plain checkbox. Nothing to see here')

b = CTK.PropsAuto ('/apply')
b.Add ('Elige', CTK.Combobox ({'name': "server!elec", 'selected': "two"}, OPTIONS), 'la lista')

Cherokee commits RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.