Created
February 4, 2014 14:25
-
-
Save adiroiban/8804502 to your computer and use it in GitHub Desktop.
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
class IPublicAvatar(IPublicObject): | |
name = PublicAttribute() | |
peer = PublicAttribute() | |
class PublicAvatarAdapter(object): | |
delegates(IPublicAvatar) | |
def __init__(self, context): | |
self.context = context | |
service_avatar = ServiceAvatar() | |
public_avatar = PublicAvatarAdapter(service_avatar) | |
--------- | |
public_avatar = IPublicAvatar(service_avatar) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment