Created
January 28, 2011 02:13
-
-
Save wwitzel3/799694 to your computer and use it in GitHub Desktop.
add this to my SA objects
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@property | |
def __parent__(self): | |
class Root(object): | |
__name__ = None | |
__parent__ = None | |
class Item(object): | |
__name__ = 'dayzeroitem' | |
__parent__ = Root() | |
return Item() | |
@property | |
def __name__(self): | |
return '{0}'.format(self.id) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment