Got a 404 response trying to access this:
http://www.schevo.org/docs/schevo/3.1-dev/reference/transactions.html
I was thinking to not use paster for creating the database, can this
be done with that particular API ?
Thanks and Regards
Etienne
Its working :)
Finally got a hold of it using "schevo shell moviereviews.db"
then did:
>>> db.populate()
>>> actors = db.Actor.find()
>>> for actor in actors
>>> print actors
>>> ...
>>> db.close()
But i think i must forgotten to call "db.populate()" initially,
so that must explain why I had no results on my previous attempts.
Thanks and Regards
Etienne
Hi!
Got a 404 response trying to access this:
http://www.schevo.org/docs/schevo/3.1-dev/reference/transactions.html
Its working :)
Finally got a hold of it using "schevo shell moviereviews.db"
then did:
>>> db.populate()
>>> actors = db.Actor.find()
>>> for actor in actors
>>> print actors
>>> ...
>>> db.close()
But i think i must forgotten to call "db.populate()" initially,
so that must explain why I had no results on my previous attempts.
Sure, it should be in the tutorial section. The "Schevo Transactions"
link appear to be missing :
http://www.schevo.org/docs/schevo/3.1-dev/tutorial/moviereviews/part1.html#transactions
Thanks for the tip! :-)
I didn't saw that "--sample" option at first since I was rather
focusing on creating the actual database file:
steiner@lisa:~/notmm-schevo/tests/schevo$ schevo db create -p -s
movie2/schema test.db
/usr/local/lib/python2.6/site-packages/schevo/field.py:9:
DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5
Schevo 3.1-dev :: Database Activities :: Create Database
aps
Creating new database at version 1.
Populating with sample data...
Packing the database...
Database version is now at 1.
Database created.
Best Regards,
- Etienne
/usr/local/lib/python2.6/site-packages/schevo/field.py:9:
DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5