diff options
author | Chris Moyer <kopertop@MacPro.local> | 2010-09-07 13:01:19 -0400 |
---|---|---|
committer | Chris Moyer <kopertop@MacPro.local> | 2010-09-07 13:01:19 -0400 |
commit | 70a8ce66f99355d8982e48da9354ce49aa353ca9 (patch) | |
tree | 19066c619492e5ba49cf80034c9997c472a5f172 | |
parent | 13e568f6f55d495c6ba3df445cfbf2a1e21182f3 (diff) | |
download | boto-70a8ce66f99355d8982e48da9354ce49aa353ca9.tar.gz |
Property should set the real slot name if it's
sent a name in the constructor
-rw-r--r-- | boto/sdb/db/property.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/boto/sdb/db/property.py b/boto/sdb/db/property.py index ead30fec..6fe2f023 100644 --- a/boto/sdb/db/property.py +++ b/boto/sdb/db/property.py @@ -43,7 +43,10 @@ class Property(object): self.required = required self.validator = validator self.choices = choices - self.slot_name = '_' + if self.name: + self.slot_name = '_' + self.name + else: + self.slot_name = '_' self.unique = unique def __get__(self, obj, objtype): |