Tuesday, January 26, 2010

Re: [App Idea] Django-CDN

libcdn api brainstorm, my intent is not to support all the features of
each cdn but only to support those that would be used by django-cdn
for now. This will be a separate project so if other people want to
make it more feature rich thats fine by me, I'll add you to the
project.

class Connection(object):
def create_container(self, name):
def get_all_public_containers(self):
def get_container(self, name):
def finalize(self):
""" This will be used to do any finalization required for this
CDN, specifically the Amazon CloudFront requires you send an update
command after uploading the new files to the S3 storage"""

class Container(object):
""" This is called a Bucket in S3, Container in most others so I
settled with the container name"""
def make_public(self):
def create_asset(self name):
def get_all_public_assets(self):
def get_asset(self, name):
def uri(self):

class Asset(object):
""" This is called a Key in S3, and an Object in most others, I
personally prefer asset as it fits better with what I am doing in
django-cdn
def save(self, data):
def set_headers(self, **kwargs):
"""Method to set the headers for this asset, such as Expires,
E-Tag, etc """
def make_public(self):
def uri(self):

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate