# Path: elevator/constants.py
# SUCCESS_STATUS = 1
# 
# FAILURE_STATUS = -1


from elevator.constants import SUCCESS_STATUS, FAILURE_STATUS
# -*- coding:utf-8 -*-

# Copyright (c) 2012 theo crevon
#
# See the file LICENSE for copying permission.



def fail(type, msg):
    return FAILURE_STATUS, "Error : " + ', '.join([type.upper(), msg])


def success(datas):

# Path: elevator/constants.py
# SUCCESS_STATUS = 1
# 
# FAILURE_STATUS = -1


# Path: elevator_cli/helpers.py
from elevator.constants import SUCCESS_STATUS, FAILURE_STATUS

# -*- coding:utf-8 -*-

# Copyright (c) 2012 theo crevon
#
# See the file LICENSE for copying permission.



def fail(type, msg):
    return FAILURE_STATUS, "Error : " + ', '.join([type.upper(), msg])


def success(datas):

    return SUCCESS_STATUS, datas