Ticket #511 (closed defect: fixed)

Opened 11 months ago

Last modified 11 months ago

GAE Adapter ignores applying dynamic properties to a referenced class.

Reported by: nick Owned by: nick
Priority: major Milestone: 0.4.2
Component: Adapter Version: 0.4.1
Keywords: gae Cc:
Fixed in revision: 2285 Branch: gae-reference-property-511
Author: nick

Description

An pseudo code example:

class Author(db.Model):
    name = db.StringProperty()

class Novel(db.Model):
    title = db.StringProperty()
    author = db.ReferenceProperty(Author)

a = Author(name='Jane Austen')
a.put()

b = Novel(title='Sense and Sensibility', author=a)
b.put()

del a, b

x = Novel.all().filter('title = ', 'Sense and Sensibility').get()
foo = [1, 2, 3]

x.author.bar = foo
k = str(x.key())

y = pyamf.decode(pyamf.encode(x)).next()

assert y.author.bar == foo

Change History

Changed 11 months ago by nick

  • status changed from new to accepted
  • branch set to gae-reference-property-511

Changed 11 months ago by nick

  • keywords gae, review added; gae removed
  • owner nick deleted
  • status changed from accepted to assigned
  • author set to nick

The adapter will now fetch the referenced object through the parent attribute rather than querying the data store directly.

Changed 11 months ago by thijs

  • keywords gae added; gae, review removed
  • owner set to nick

Looks good to me and the  buildslave, please merge.

Changed 11 months ago by nick

  • status changed from assigned to closed
  • revfixed set to 2285
  • resolution set to fixed
Note: See TracTickets for help on using tickets.