I am trying to allow multiple domains to write to a subdomain. From tools/console I do:
a =Authorization.get("testpm", "xyz")
a.domain_write_permission = u"""\
pl.nlm.nih.gov
plstage.nlm.nih.gov"""
a.put()
However, when I actually try to set the domain_write_permission, App Engine spits back a BadValueError, saying that it is not a multi-line property.
But if I type help(Authorization), it clearly says in the documentation for domain_write_permission that it is a multi-line property.
Maybe it's expecting it in a different format? I also tried just using newline characters, which didn't work either. I attempted to set other
Authorization properties listed as multi-line, which didn't work either. Any ideas what might be wrong?
--
On Mon, Sep 17, 2012 at 7:18 AM, personfinder on behalf of Leif Neve <personfinder+noreply-APn2wQeqoub...@googlegroups.com> wrote:
I am trying to allow multiple domains to write to a subdomain. From tools/console I do:
a =Authorization.get("testpm", "xyz")
a.domain_write_permission = u"""\
pl.nlm.nih.gov
plstage.nlm.nih.gov"""
a.put()
However, when I actually try to set the domain_write_permission, App Engine spits back a BadValueError, saying that it is not a multi-line property.Thats correct.But if I type help(Authorization), it clearly says in the documentation for domain_write_permission that it is a multi-line property.
Strange, that looks like a bug in the doc string. The field is defined as a StringProperty(), which defaults to multiline=False.
Maybe it's expecting it in a different format? I also tried just using newline characters, which didn't work either. I attempted to set other
Authorization properties listed as multi-line, which didn't work either. Any ideas what might be wrong?The domain_write_permission is designed to be a single domain - it gets incorporated into the key for all records created with that token. This allows records to be tracked based on their source.
--
--
Is it possible to have multiple write domains for a single key?
--