Skip to content

Instantly share code, notes, and snippets.

@adiroiban adiroiban/public.py
Created Feb 4, 2014

Embed
What would you like to do?
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
You can’t perform that action at this time.