pyobjfs-users Mailing List for OOPS - Python Datastore (Page 25)
Status: Beta
Brought to you by:
mathematician
You can subscribe to this list here.
| 2002 |
Jan
(1) |
Feb
(3) |
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
| 2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
(1) |
Dec
(10) |
| 2007 |
Jan
(14) |
Feb
(23) |
Mar
(20) |
Apr
(17) |
May
(10) |
Jun
(5) |
Jul
(10) |
Aug
(24) |
Sep
(25) |
Oct
(8) |
Nov
(8) |
Dec
(2) |
| 2008 |
Jan
(5) |
Feb
(7) |
Mar
(35) |
Apr
(69) |
May
(53) |
Jun
(120) |
Jul
(91) |
Aug
(80) |
Sep
(66) |
Oct
(8) |
Nov
(38) |
Dec
(44) |
| 2009 |
Jan
(37) |
Feb
(25) |
Mar
(32) |
Apr
(47) |
May
(115) |
Jun
(94) |
Jul
(65) |
Aug
(21) |
Sep
(28) |
Oct
(13) |
Nov
(4) |
Dec
(14) |
| 2010 |
Jan
(11) |
Feb
(7) |
Mar
(36) |
Apr
(55) |
May
(75) |
Jun
(79) |
Jul
(40) |
Aug
(62) |
Sep
(21) |
Oct
(6) |
Nov
(1) |
Dec
|
| 2011 |
Jan
(1) |
Feb
(2) |
Mar
|
Apr
|
May
(3) |
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2012 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
(1) |
Jun
|
Jul
(2) |
Aug
|
Sep
(1) |
Oct
(1) |
Nov
|
Dec
|
| 2013 |
Jan
|
Feb
(1) |
Mar
|
Apr
(2) |
May
|
Jun
(1) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2014 |
Jan
(1) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2015 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2016 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2017 |
Jan
(1) |
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
(1) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Stephen R. F. <fi...@mo...> - 2002-02-22 16:10:00
|
I was playing around with oops, attempting to follow the tutorial: http://pyobjfs.sourceforge.net/tutorial.html I am using Python 2.2 on a Redhat 7.2 Linux install. Oops 0.9.1 My first snag in the Medical patient example was Date, which Python said wasn't defined. I checked the API and noticed there was no Date type (or Class, rather) so I took a guess and changed it to Data() Then I got a complaint about Obj.__init__ >>> patient_db.append(Patient("Dan", "Parisien", (5,5,1980))) Traceback (most recent call last): File "<pyshell#48>", line 1, in ? patient_db.append(Patient("Dan", "Parisien", (5,5,1980))) File "<pyshell#46>", line 8, in __init__ Obj.__init__(**kwargs) # OOPS uses keyword arguments TypeError: unbound method __init__() must be called with Obj instance as first argument (got nothing instead) hmmm... okay, so I took a stab at this perhaps being Obj.__init__(self, **kwargs) >>> patient_db.append(Patient("Dan", "Parisien", (5,5,1980))) Traceback (most recent call last): File "<pyshell#51>", line 1, in ? patient_db.append(Patient("Dan", "Parisien", (5,5,1980))) File "/usr/lib/python2.2/site-packages/oops/core.py", line 1372, in append value.__moveto__(self.__database__, self.__path__+(key,), self) File "/usr/lib/python2.2/site-packages/oops/core.py", line 615, in __moveto__ Node.__moveto__(self, database, path=(), parent=None) File "/usr/lib/python2.2/site-packages/oops/core.py", line 216, in __moveto__ getattr(self, key).__moveto__(database, path+(key,), self) File "/usr/lib/python2.2/site-packages/oops/core.py", line 1173, in __moveto__ for key in list.__iter__(self): AttributeError: type object 'list' has no attribute '__iter__' Some sort of problem with list? The tests seemed to run okay: [fig@localhost oops-0.9.1]$ python2 test.py ............ ---------------------------------------------------------------------- Ran 12 tests in 26.973s OK Do you have any advice? -Stephen |
|
From: Hamish L. <hb...@st...> - 2002-02-15 11:12:10
|
The following exception gets raised when running the tests under Windows
2000:
Traceback (most recent call last):
File "testsuite\objtests.py", line 29, in runTest
os.remove("myfile.obj")
OSError: [Errno 13] Permission denied: 'myfile.obj'
I believe the problem is that a file handle is still open at the time that
the file is being removed. The fix is to delete obj beforehand:
Compare: (<)E:\temp\oops-0.9\testsuite\objtests.py (1407 bytes)
with: (>)E:\temp\oops-0.9\testsuite-new\objtests.py (1423 bytes)
29a29
> del obj
|
|
From: Dan P. <da...@ee...> - 2002-01-11 17:08:44
|
I made release MEGA ALPHA NINJA (0.1) today |