Get the community logo URL.
170371
def get_logo_url(self, obj):
        """"""
        if current_app and obj.logo_url:
            return u'{site_url}{path}'.format(
                site_url=current_app.config.get('THEME_SITEURL'),
                path=obj.logo_url,
            )
787387
def core__get_application_logo_sidebar_path
      dir = "#{core__get_application_root_path}/app/assets/images/lato/"
      if File.exist?("#{dir}/logo_sidebar.svg")
        return 'lato/logo_sidebar.svg'
      elsif File.exist?("#{dir}/logo_sidebar.png")
        return 'lato/logo_sidebar.png'
      elsif File.exist?("#{dir}/logo_sidebar.jpg")
        return 'lato/logo_sidebar.jpg'
      elsif File.exist?("#{dir}/logo_sidebar.gif")
        return 'lato/logo_sidebar.gif'
      end
      core__get_application_logo_path
    end
997704
def splash_url_as(self, *, format='webp', size=2048):
        """"""
        return Asset._from_guild_image(self._state, self.id, self.splash, 'splashes', format=format, size=size)
421912
def url(self):
        
        el_FLocat = self._el.find(TAG_METS_FLOCAT)
        if el_FLocat is not None:
            return el_FLocat.get("{%s}href" % NS["xlink"])
        return ''
85982
def default_links_item_factory(community):
    """"""
    return dict(
        self=url_for(
            '.communities_item', community_id=community['id'], _external=True),
        html=current_app.config.get(
            'COMMUNITIES_URL_COMMUNITY_VIEW',
            '{protocol}://{host}/communities/{community_id}/'
        ).format(
            protocol=request.environ['wsgi.url_scheme'],
            host=request.environ['HTTP_HOST'],
            community_id=community['id']
        )
    )
92106
def community(self):
        
        return _community.Community(url=self._url + "/community",
                                    securityHandler=self._securityHandler,
                                    proxy_url=self._proxy_url,
                                    proxy_port=self._proxy_port)
571185
def save_and_validate_logo(logo_stream, logo_filename, community_id):
    """"""
    cfg = current_app.config

    logos_bucket_id = cfg['COMMUNITIES_BUCKET_UUID']
    logo_max_size = cfg['COMMUNITIES_LOGO_MAX_SIZE']
    logos_bucket = Bucket.query.get(logos_bucket_id)
    ext = os.path.splitext(logo_filename)[1]
    ext = ext[1:] if ext.startswith('.') else ext

    logo_stream.seek(SEEK_SET, SEEK_END)  # Seek from beginning to end
    logo_size = logo_stream.tell()
    if logo_size > logo_max_size:
        return None

    if ext in cfg['COMMUNITIES_LOGO_EXTENSIONS']:
        key = "{0}/logo.{1}".format(community_id, ext)
        logo_stream.seek(0)  # Rewind the stream to the beginning
        ObjectVersion.create(logos_bucket, key, stream=logo_stream,
                             size=logo_size)
        return ext
    else:
        return None
829991
def get_avatar_url(self, size=2):
        
        hashbytes = self.get_ps('avatar_hash')

        if hashbytes != "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000":
            ahash = hexlify(hashbytes).decode('ascii')
        else:
            ahash = 'fef49e7fa7e1997310d705b2a6158ff8dc1cdfeb'

        sizes = {
            0: '',
            1: '_medium',
            2: '_full',
        }
        url = "http://cdn.akamai.steamstatic.com/steamcommunity/public/images/avatars/%s/%s%s.jpg"

        return url % (ahash[:2], ahash, sizes[size])
464508
def _get_image_urls(self):
        """"""

        print(colored('\nRetrieving Image URLs...', 'yellow'))

        _imageQuery = self._imageQuery.replace(' ', '+')

        self._chromeDriver.get('https://www.google.co.in/search?q=' + _imageQuery +
                               '&newwindow=1&source=lnms&tbm=isch')

        while self._imageURLsExtractedCount <= self._imageCount:
            self._extract_image_urls()
            self._page_scroll_down()

        # Slice the list of image URLs to contain the exact number of image
        # URLs that have been requested
        # self._imageURLs = self._imageURLs[:self._imageCount]

        print(colored('Image URLs retrieved.', 'green'))
96578
def getClientURL(self):
        
        request = self.getRequest()
        if request:
            client = request.getClient()
            if client:
                return client.absolute_url_path()
503007
public function get_url() {
        if ($this->other['badgetype'] == BADGE_TYPE_SITE) {
            $params = array('type' => $this->other['badgetype']);
        } else {
            $params = array('id' => $this->other['courseid'], 'type' => $this->other['badgetype']);
        }
        return new \moodle_url('/badges/view.php', $params );
    }
996703
def resource_url(self):
        """"""
        if self._iam:
            self._resource_url = self._resource_url or _get_iam_rest_api_url_from_creds(self.rest_client, self.credentials)
        else:
            self._resource_url = self._resource_url or _get_rest_api_url_from_creds(self.session, self.credentials)
        return self._resource_url
90213
def get_url(width, height, color=True):
    
    d = dict(width=width, height=height)
    return URL % d
1055021
def url(self, host):
        """"""
        path = '/'.join(str(v) for v in self._path)
        return 'coaps://{}:5684/{}'.format(host, path)
324338
def get_badge_image_url(pid, ext='svg'):
    """"""
    return url_for('invenio_formatter_badges.badge',
                   title=pid.pid_type, value=pid.pid_value, ext=ext)
642196
def url(self):
        
        if isinstance(self.result, types.BotInlineResult):
            return self.result.url
1286747
function getFavIcon() {
  if (getFavIcon.pngData) return getFavIcon.pngData

  var pngFile = path.join(__dirname, "ragents.png")

  try {
    getFavIcon.pngData = fs.readFileSync(pngFile)
  }
  catch(e) {
    utils.log("error reading '" + pngFile + "'")
    return null
  }

  return getFavIcon.pngData
}