fixed examples, thanks Joe

This commit is contained in:
mdipierro
2012-12-24 16:14:05 -06:00
parent 6acb695660
commit 83ed22f64e
5 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ update:
echo "remember that pymysql was tweaked"
src:
### Use semantic versioning
echo 'Version 2.4.1-alpha.1+timestamp.'`date +%Y.%m.%d.%H.%M.%S` > VERSION
echo 'Version 2.4.1-alpha.2+timestamp.'`date +%Y.%m.%d.%H.%M.%S` > VERSION
### rm -f all junk files
make clean
### clean up baisc apps
+1 -1
View File
@@ -1 +1 @@
Version 2.4.1-alpha.1+timestamp.2012.12.24.14.03.22
Version 2.4.1-alpha.2+timestamp.2012.12.24.16.13.22
@@ -368,7 +368,7 @@ db.define_table(
db.define_table(
'product',
Field('seller_id',db_person),
Field('seller_id',db.person),
Field('name'),
Field('description', 'text'),
Field('picture', 'upload', default=''),
@@ -383,9 +383,7 @@ db.define_table(
Field('quantity', 'integer'),
format = '%(quantity)s %(product_id)s -> %(buyer_id)s')
purchased = \
(db.person.id==db.purchase.buyer_id)&\
(db.product.id==db.purchase.product_id)
purchased = (db.person.id==db.purchase.buyer_id)&(db.product.id==db.purchase.product_id)
db.person.name.requires = IS_NOT_EMPTY()
db.person.email.requires = [IS_EMAIL(), IS_NOT_IN_DB(db, 'person.email')]
BIN
View File
Binary file not shown.
Binary file not shown.