# Path: apps/gallery/control.py
# def can_edit(account, gallery):
# def _assert_can_edit(account, gallery):
# def delete(account, gallery):
# def remove(account, picture):
# def setprimary(account, picture):
# def add(account, image, gallery):
# def create(account, image, team):


from django import template
from django.utils.translation import ugettext as _
from apps.common.templatetags.condition_tag import condition_tag
from apps.gallery 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_edit_gallery(account, gallery):

# Path: apps/gallery/control.py
# def can_edit(account, gallery):
# def _assert_can_edit(account, gallery):
# def delete(account, gallery):
# def remove(account, picture):
# def setprimary(account, picture):
# def add(account, image, gallery):
# def create(account, image, team):


# Path: apps/gallery/templatetags/gallery_tags.py
from django import template
from django.utils.translation import ugettext as _
from apps.common.templatetags.condition_tag import condition_tag
from apps.gallery 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_edit_gallery(account, gallery):

    return control.can_edit(account, gallery) 