Sindbad~EG File Manager
3
�<�e� � @ s� d dl Z d dlZd dlZd dlZddlmZ d dlZd dlj Z d dl
mZ d dlZd dl
Z
d dlZejj� ZG dd� dej�ZdS )� N� )�
interfaces)�ismethodc @ s� e Zd ZdZejejejejej fdd�Z
dd� Zdd� Zdd � Z
d
d� Zdd
� Zdd� Zdd� Zdd� Zdd� Zd$dd�Zd%dd�Zdd� Zdd� Zd d!� Zd"d#� ZdS )&�UnixSocketExportera9
Export method calls through Unix Domain Socket Interface.
We take a method to be exported and create a simple wrapper function
to call it. This is required as we need the original function to be
bound to the original object instance. While the wrapper will be bound
to an object we dynamically construct.
c C s || _ d | _|rtjd|�ng | _g | _dd g| _|r�|j� }x�t|d d� �D ]�\}}yt|�| j|<