I cannot reproduce. What web2py version are you using?

$ python web2py.py -S welcome -M
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2013
Version 2.4.1-alpha.2+timestamp.2013.02.23.14.51.03
Database drivers available: SQLite(sqlite3), MySQL(pymysql), 
PostgreSQL(pg8000), MongoDB(pymongo), IMAP(imaplib)
WARNING:web2py:import IPython error; use default python shell
Python 2.7.3 (v2.7.3:70274d53c1dd, Apr  9 2012, 20:52:43) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> db.define_table('daily_counts',
...    Field('encrypt_count','integer'),
...    Field('decrypt_count','integer'),
...    Field('error_count','integer'),
...    Field('cycle_count','integer'),
...    Field('directory_create_count','integer'),
...    Field('client_add_count','integer'),
...    Field('client_update_count','integer'),
...    Field('client_delete_count','integer'),
...    Field('encryption_key_count','integer'),
...    Field('add_date','date', unique=True),
...    Field('add_time','time'),
...    Field('add_db_user','string'),
...    Field('add_app_user','string'),
...    Field('update_date','date'),
...    Field('update_time','time'),
...    Field('update_db_user','string'),
...    Field('update_app_user','string'))
<Table daily_counts 
(id,encrypt_count,decrypt_count,error_count,cycle_count,directory_create_count,client_add_count,client_update_count,client_delete_count,encryption_key_count,add_date,add_time,add_db_user,add_app_user,update_date,update_time,update_db_user,update_app_user)>
>>> 
>>> db.define_table('history2',
...    Field('client_id','string',length=10),
...    Field('command','string',length=255),
...    Field('encrypt_key','string',length=50),
...    Field('from_dir','string',length=100),
...    Field('to_dir','string',length=100),
...    Field('archive_dir','string',length=100),
...    Field('error_dir','string',length=100),
...    Field('in_filename','string',length=100),
...    Field('out_filename','string',length=100),
...    Field('encryption_type','string'),
...    Field('add_dateid',db.daily_counts),
...    Field('add_date','date'),
...    Field('add_time','time'),
...    Field('add_db_user','string'),
...    Field('add_app_user','string'))
<Table history2 
(id,client_id,command,encrypt_key,from_dir,to_dir,archive_dir,error_dir,in_filename,out_filename,encryption_type,add_dateid,add_date,add_time,add_db_user,add_app_user)>
>>> grid = SQLFORM.smartgrid(db.history2)
>>> 

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to