def _objectify(items, container_name):
 objects = []
 for item in items:
  if (item.get('subdir', None) is not None):
   object_cls = PseudoFolder
  else:
   object_cls = StorageObject
  objects.append(object_cls(item, container_name))
 return objects

def _objectify ( items , container_name ) : objects = [ ] for item in items : if ( item . get ( 'subdir' , None ) is not None ) : object_cls = PseudoFolder else : object_cls = StorageObject objects . append ( object_cls ( item , container_name ) ) return objects
splits a listing of objects into their appropriate wrapper classes .