peterknife / boto

Automatically exported from code.google.com/p/boto
0 stars 0 forks source link

SDBObject find and list broken in Boto 2.0b4 #496

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
=====================================
What steps will reproduce the problem?
=====================================

1.Copy the attached Python script "persistence_test.py" to disk
2.Insert your sdb test domain name and your AWS access keys where noted in 
persistence_test.py
3.Save the file.
4. Run "python persistence_test.py"

=====================================
What is the expected output? What do you see instead?
=====================================

Expected output is:

   ...
   ----------------------------------------------------------------------
   Ran 4 tests in 1.266s

   OK

Actual output is test errors, with the following exception - relevant info is
 "Domain instance has no attribute 'query'":

Traceback (most recent call last):
  File "bototest.py", line 51, in test_2000_find
    users = User.find(firstname=u"Þórir", lastname="Mela")
  File "build/bdist.macosx-10.6-intel/egg/boto/sdb/persist/object.py", line 110, in find
    rs = manager.domain.query(query)
AttributeError: Domain instance has no attribute 'query'

=====================================
What version of the product are you using? On what operating system?
=====================================

2.0b4 on Mac OSX ( but but should be across all platforms )

Please provide any additional information below.

Original issue reported on code.google.com by rmela02...@gmail.com on 18 Mar 2011 at 4:49

Attachments:

GoogleCodeExporter commented 9 years ago
I've since been informed on the developer list that boto.sdb.persist is 
deprecated

It's been superceded by boto.sdb.db

I've confirmed that that's wokring just fine ( via persistence_test2.py )

Since boto.sdb.persist is flat-out broken, and unlikely to be fixed, should it 
be removed from boto?

Original comment by rmela02...@gmail.com on 18 Mar 2011 at 5:28

Attachments:

GoogleCodeExporter commented 9 years ago
I will remove boto.sdb.persist shortly.

Original comment by Mitch.Ga...@gmail.com on 24 Mar 2011 at 10:58