Guest User

Untitled

a guest
Jul 21st, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. @property
  2. def __parent__(self):
  3. class Root(object):
  4. __name__ = None
  5. __parent__ = None
  6.  
  7. class Item(object):
  8. __name__ = 'dayzeroitem'
  9. __parent__ = Root()
  10.  
  11. return Item()
  12.  
  13. @property
  14. def __name__(self):
  15. return '{0}'.format(self.id)
Add Comment
Please, Sign In to add comment