fixed examples, thanks Joe
This commit is contained in:
@@ -30,7 +30,7 @@ update:
|
|||||||
echo "remember that pymysql was tweaked"
|
echo "remember that pymysql was tweaked"
|
||||||
src:
|
src:
|
||||||
### Use semantic versioning
|
### 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
|
### rm -f all junk files
|
||||||
make clean
|
make clean
|
||||||
### clean up baisc apps
|
### clean up baisc apps
|
||||||
|
|||||||
@@ -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(
|
db.define_table(
|
||||||
'product',
|
'product',
|
||||||
Field('seller_id',db_person),
|
Field('seller_id',db.person),
|
||||||
Field('name'),
|
Field('name'),
|
||||||
Field('description', 'text'),
|
Field('description', 'text'),
|
||||||
Field('picture', 'upload', default=''),
|
Field('picture', 'upload', default=''),
|
||||||
@@ -383,9 +383,7 @@ db.define_table(
|
|||||||
Field('quantity', 'integer'),
|
Field('quantity', 'integer'),
|
||||||
format = '%(quantity)s %(product_id)s -> %(buyer_id)s')
|
format = '%(quantity)s %(product_id)s -> %(buyer_id)s')
|
||||||
|
|
||||||
purchased = \
|
purchased = (db.person.id==db.purchase.buyer_id)&(db.product.id==db.purchase.product_id)
|
||||||
(db.person.id==db.purchase.buyer_id)&\
|
|
||||||
(db.product.id==db.purchase.product_id)
|
|
||||||
|
|
||||||
db.person.name.requires = IS_NOT_EMPTY()
|
db.person.name.requires = IS_NOT_EMPTY()
|
||||||
db.person.email.requires = [IS_EMAIL(), IS_NOT_IN_DB(db, 'person.email')]
|
db.person.email.requires = [IS_EMAIL(), IS_NOT_IN_DB(db, 'person.email')]
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user