[Pypersyst-cvs] pypersyst/pypersyst/test schema.py,1.1,1.2
Brought to you by:
pobrien
From: <po...@us...> - 2003-08-27 22:47:35
|
Update of /cvsroot/pypersyst/pypersyst/pypersyst/test In directory sc8-pr-cvs1:/tmp/cvs-serv25177 Modified Files: schema.py Log Message: typos Index: schema.py =================================================================== RCS file: /cvsroot/pypersyst/pypersyst/pypersyst/test/schema.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** schema.py 26 Aug 2003 01:27:48 -0000 1.1 --- schema.py 27 Aug 2003 22:47:32 -0000 1.2 *************** *** 80,99 **** def sample(): """Return a Root instance with sample data.""" root = Root() ! root.Avatar.extent = extent.Extent(Avatar) ! root.Realm.extent = extent.Extent(Realm) ! root.User.extent = extent.Extent(User) ! u1 = root.User('User1', 'password') ! u2 = root.User('User2', 'password') ! u3 = root.User('User3') ! r1 = root.Realm('Realm1') ! r2 = root.Realm('Realm2') ! r3 = root.Realm('Realm3') ! r4 = root.Realm('Realm4') ! a1 = root.Avatar(u1, r1, 'Avatar1') ! a2 = root.Avatar(u1, r2, 'Avatar2') ! a3 = root.Avatar(u1, r2, 'Avatar3') ! a4 = root.Avatar(u2, r2, 'Avatar4') ! a5 = root.Avatar(u2, r2, 'Avatar5') ! a6 = root.Avatar(u2, r2, 'Avatar6') return root --- 80,99 ---- def sample(): """Return a Root instance with sample data.""" + Avatar.extent = extent.Extent(Avatar) + Realm.extent = extent.Extent(Realm) + User.extent = extent.Extent(User) root = Root() ! u1 = User('User1', 'password') ! u2 = User('User2', 'password') ! u3 = User('User3') ! r1 = Realm('Realm1') ! r2 = Realm('Realm2') ! r3 = Realm('Realm3') ! r4 = Realm('Realm4') ! a1 = Avatar(u1, r1, 'Avatar1') ! a2 = Avatar(u1, r2, 'Avatar2') ! a3 = Avatar(u1, r2, 'Avatar3') ! a4 = Avatar(u2, r2, 'Avatar4') ! a5 = Avatar(u2, r2, 'Avatar5') ! a6 = Avatar(u2, r2, 'Avatar6') return root |