# Path: ldaptor/apps/webui/i18n.py
# def render():
# 
# Path: ldaptor/apps/webui/i18n.py
# def render():


from zope.interface import implements
from nevow import rend, loaders, guard, url
from webut.skin import iskin
from ldaptor.apps.webui import i18n
from ldaptor.apps.webui.i18n import _
import os

def getActionURL(current, history):
    action = current
    if len(history) == 1:
        action = action.here()
    else:
        for element in history[1:]:
            action = action.parentdir()

    action = action.child(guard.LOGIN_AVATAR)
    for element in history:
        action = action.child(element)

# Path: ldaptor/apps/webui/i18n.py
# def render():
# 
# Path: ldaptor/apps/webui/i18n.py
# def render():


# Path: ldaptor/apps/webui/login.py
from zope.interface import implements
from nevow import rend, loaders, guard, url
from webut.skin import iskin
from ldaptor.apps.webui import i18n
from ldaptor.apps.webui.i18n import _
import os


def getActionURL(current, history):
    action = current
    if len(history) == 1:
        action = action.here()
    else:
        for element in history[1:]:
            action = action.parentdir()

    action = action.child(guard.LOGIN_AVATAR)
    for element in history:
        action = action.child(element)

    return action