Changeset View
Changeset View
Standalone View
Standalone View
pykolab/cli/__init__.py
Show All 11 Lines | |||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
# GNU General Public License for more details. | # GNU General Public License for more details. | ||||
# You should have received a copy of the GNU General Public License | # You should have received a copy of the GNU General Public License | ||||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||||
# | # | ||||
import ldap | import ldap | ||||
sicherha: This blank line seems to have been added accidentally. Can you drop it?
The rest looks good to… | |||||
import ldif | import ldif | ||||
import logging | import logging | ||||
import traceback | import traceback | ||||
import shutil | import shutil | ||||
import sys | import sys | ||||
import time | import time | ||||
import codecs | import codecs | ||||
import locale | import locale | ||||
from ldap.modlist import addModlist | from ldap.modlist import addModlist | ||||
import pykolab | import pykolab | ||||
import pykolab.plugins | import pykolab.plugins | ||||
from pykolab import utils | from pykolab import utils | ||||
from pykolab import conf | from pykolab import conf | ||||
from pykolab.constants import * | from pykolab.constants import * | ||||
from pykolab.translate import _ | from pykolab.translate import _ | ||||
log = pykolab.getLogger('pykolab.cli') | log = pykolab.getLogger('pykolab.cli') | ||||
conf = pykolab.getConf() | conf = pykolab.getConf() | ||||
class Cli(object): | class Cli(object): | ||||
def __init__(self): | def __init__(self): | ||||
import commands | from . import commands | ||||
commands.__init__() | commands.__init__() | ||||
to_execute = [] | to_execute = [] | ||||
arg_num = 0 | arg_num = 0 | ||||
for arg in sys.argv[1:]: | for arg in sys.argv[1:]: | ||||
arg_num += 1 | arg_num += 1 | ||||
if not arg.startswith('-') and len(sys.argv) >= arg_num: | if not arg.startswith('-') and len(sys.argv) >= arg_num: | ||||
Show All 23 Lines |
This blank line seems to have been added accidentally. Can you drop it?
The rest looks good to me.