# Path: apps/account/control.py
# def get_site_account():
# def get_email_or_404(account):
# def get_staff_emails():
# def get_superuser_emails():
# def set_passport(account, passport):
# def can_view_account(current_account, view_account):
# def edit(account, username, first_name, last_name, mobile, source, description):
# def has_fullname(account):
# def has_mobile(account):
# def has_passport(account):
# def has_required_info(account):
# def site_link_exists(account, site):
# def can_create_link(account, site, profile):
# def can_delete_link(account, link):
# def link_create(account, site, profile):
# def link_delete(account, link):


from django import template
from django.utils.translation import ugettext as _
from apps.common.templatetags.condition_tag import condition_tag
from apps.account import control
# -*- coding: utf-8 -*-
# Copyright (c) 2012 Fabian Barkhau <fabian.barkhau@gmail.com>                  
# License: MIT (see LICENSE.TXT file) 




register = template.Library()


@register.tag
@condition_tag
def if_can_view_account(current_account, view_account):
    return (current_account and view_account and 

# Path: apps/account/control.py
# def get_site_account():
# def get_email_or_404(account):
# def get_staff_emails():
# def get_superuser_emails():
# def set_passport(account, passport):
# def can_view_account(current_account, view_account):
# def edit(account, username, first_name, last_name, mobile, source, description):
# def has_fullname(account):
# def has_mobile(account):
# def has_passport(account):
# def has_required_info(account):
# def site_link_exists(account, site):
# def can_create_link(account, site, profile):
# def can_delete_link(account, link):
# def link_create(account, site, profile):
# def link_delete(account, link):


# Path: apps/account/templatetags/account_tags.py
from django import template
from django.utils.translation import ugettext as _
from apps.common.templatetags.condition_tag import condition_tag
from apps.account import control

# -*- coding: utf-8 -*-
# Copyright (c) 2012 Fabian Barkhau <fabian.barkhau@gmail.com>                  
# License: MIT (see LICENSE.TXT file) 




register = template.Library()


@register.tag
@condition_tag
def if_can_view_account(current_account, view_account):
    return (current_account and view_account and 

            control.can_view_account(current_account, view_account))