Skip to content

Instantly share code, notes, and snippets.

@wwitzel3
Created January 28, 2011 02:13
Show Gist options
  • Save wwitzel3/799694 to your computer and use it in GitHub Desktop.
Save wwitzel3/799694 to your computer and use it in GitHub Desktop.
add this to my SA objects
@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