#!/usr/bin/python

import glob
import matedb as db
import config
import privacy

def get_profile_picture(user):
    if not privacy.permitted (user, 'profile_picture'):
        return ''

    name = db.get_data(user, 'profile_picture')
    if name:
        return '<img src="' + config.data_dir + name + '">'
    return ''
   
def get_all_pictures(user):
    images = db.get_all_pictures(user)
    for i, image in enumerate(images):
        images[i] = config.data_dir + image
    return images

a0e46573d145f6d4cb7ed07103230d0d91adb647
<mask token>

<mask token>


def get_profile_picture(user):
    if not privacy.permitted(user, 'profile_picture'):
        return ''
    name = db.get_data(user, 'profile_picture')
    if name:
        return '<img src="' + config.data_dir + name + '">'
    return ''


<mask token>

<mask token>


def get_profile_picture(user):
    if not privacy.permitted(user, 'profile_picture'):
        return ''
    name = db.get_data(user, 'profile_picture')
    if name:
        return '<img src="' + config.data_dir + name + '">'
    return ''


def get_all_pictures(user):
    images = db.get_all_pictures(user)
    for i, image in enumerate(images):
        images[i] = config.data_dir + image
    return images

import glob
import matedb as db
import config
import privacy


def get_profile_picture(user):
    if not privacy.permitted(user, 'profile_picture'):
        return ''
    name = db.get_data(user, 'profile_picture')
    if name:
        return '<img src="' + config.data_dir + name + '">'
    return ''


def get_all_pictures(user):
    images = db.get_all_pictures(user)
    for i, image in enumerate(images):
        images[i] = config.data_dir + image
    return images

#!/usr/bin/python

import glob
import matedb as db
import config
import privacy

def get_profile_picture(user):
    if not privacy.permitted (user, 'profile_picture'):
        return ''

    name = db.get_data(user, 'profile_picture')
    if name:
        return '<img src="' + config.data_dir + name + '">'
    return ''
   
def get_all_pictures(user):
    images = db.get_all_pictures(user)
    for i, image in enumerate(images):
        images[i] = config.data_dir + image
    return images
