~free.ekanayaka/storm/any-expr

« back to all changes in this revision

Viewing changes to tests/zope/README.txt

  • Committer: Jamu Kakar
  • Date: 2009-07-28 16:50:01 UTC
  • mfrom: (315 trunk)
  • mto: This revision was merged to the branch mainline in revision 325.
  • Revision ID: jkakar@kakar.ca-20090728165001-9mmwkhcaszjizs47
- Merged trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
115
115
 
116
116
  >>> person = Person(u"John Doe")
117
117
  >>> store.add(person)
118
 
  <Person object at ...>
 
118
  <...Person object at ...>
119
119
  >>> transaction.commit()
120
120
 
121
121
Notice that we're not using store.commit directly; we're using Zope's
135
135
Let's make sure aborting transactions works, too.
136
136
 
137
137
  >>> store.add(Person(u"Imposter!"))
138
 
  <Person object at ...>
 
138
  <...Person object at ...>
139
139
 
140
140
At this point a store.find should return the new object.
141
141