                                                       key=operator.itemgetter(1), reverse=True)]
      [os.remove(path) for path in ctime_sorted_paths[max_files:]]
  
  
  class ObjectStoreRoot(Resource):
      """Root of the Object Store API.
      Allows the client to get a complete list of all the stored objects, or to create a new stored object."""
      allowed_methods = anon_allowed_methods = ('GET', 'POST')
  
      def get(self, request, auth):
          """Return a list of all the stored object URLs. (Ordered by creation time, newest first)"""
          filepaths = [os.path.join(OBJECT_STORE_DIR, file) for file in os.listdir(OBJECT_STORE_DIR) if not file.startswith('.')]
          ctime_sorted_basenames = [item[0] for item in sorted([(os.path.basename(path), os.path.getctime(path)) for path in filepaths],
 
</s> remove     def get(self, request, auth):
        """Return a list of all the stored object URLs. (Ordered by creation time, newest first)"""
 </s> add     def get(self, request):
        """
        Return a list of all the stored object URLs. (Ordered by creation time, newest first)
        """ </s> remove     return [item[0] for item in sorted([(path, os.path.getctime(path)) for path in filepaths],
                                                     key=operator.itemgetter(1), reverse=False)]
 </s> add     return [item[0] for item in sorted( [(path, os.path.getctime(path)) for path in filepaths],
                                        key=operator.itemgetter(1), reverse=False) ]
 </s> remove     """Return a list of files sorted by creation time"""
 </s> add     """
    Return a list of files sorted by creation time
    """ </s> remove     """Remove the oldest files in a directory 'dir', leaving at most 'max_files' remaining.
    We use this to limit the number of resources in the sandbox."""
 </s> add     """
    Remove the oldest files in a directory 'dir', leaving at most 'max_files' remaining.
    We use this to limit the number of resources in the sandbox.
    """ </s> remove     def post(self, request, auth, content):
        """Create a new stored object, with a unique key."""
 </s> add     def post(self, request):
        """
        Create a new stored object, with a unique key.
        """
class ObjectStoreRoot(BaseView):
    """
    Root of the Object Store API.
    Allows the client to get a complete list of all the stored objects, or to create a new stored object.
    """
                                                       key=operator.itemgetter(1), reverse=True)]
      [os.remove(path) for path in ctime_sorted_paths[max_files:]]
  
  
class ObjectStoreRoot(BaseView):
    """
    Root of the Object Store API.
    Allows the client to get a complete list of all the stored objects, or to create a new stored object.
    """
class ObjectStoreRoot(BaseView):
    """
    Root of the Object Store API.
    Allows the client to get a complete list of all the stored objects, or to create a new stored object.
    """
class ObjectStoreRoot(BaseView):
    """
    Root of the Object Store API.
    Allows the client to get a complete list of all the stored objects, or to create a new stored object.
    """
class ObjectStoreRoot(BaseView):
    """
    Root of the Object Store API.
    Allows the client to get a complete list of all the stored objects, or to create a new stored object.
    """
  
      def get(self, request, auth):
          """Return a list of all the stored object URLs. (Ordered by creation time, newest first)"""
          filepaths = [os.path.join(OBJECT_STORE_DIR, file) for file in os.listdir(OBJECT_STORE_DIR) if not file.startswith('.')]
          ctime_sorted_basenames = [item[0] for item in sorted([(os.path.basename(path), os.path.getctime(path)) for path in filepaths],
keep keep keep keep replace replace replace replace keep keep keep keep keep
 Fixing some of the last blocking issues 
examples/objectstore/views.py