from .. import api_utils

class ContentNode(object):

  def __init__(self, document, _isChildrenPopulated=False):
    self.document = document
    self._isChildrenPopulated = _isChildrenPopulated

  def get_url(self):
    return api_utils.generate_url("/api/delivery" + self.document.get("path"))

  def get_children(self):
    if not self._isChildrenPopulated:
      self.document = api_utils.get('/api/content/' + self.document.get("uuid") + '/children')
      self._isChildrenPopulated = True
    return [ContentNode(x) for x in self.document.get("children")]
      


@@ -1,8 +1,23 @@
+import urllib%0A%0A
 from .. 
@@ -306,16 +306,195 @@
 ath%22))%0A%0A
+  def get_variant_url(self, variant_name):%0A    query = '?variant=%7B0%7D'.format(variant_name)%0A    return api_utils.generate_url('/api/delivery' + self.document.get('path')) + query%0A%0A
   def ge

Add get_variant_url method to content node.