Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @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)
Add Comment
Please, Sign In to add comment