diff -r 3dc3ad02d091 -r aaed3f813ef8 devtools/devctl.py --- a/devtools/devctl.py Fri Feb 26 13:12:01 2010 +0100 +++ b/devtools/devctl.py Fri Feb 26 13:19:14 2010 +0100 @@ -13,7 +13,7 @@ # completion). So import locally in command helpers. import sys from datetime import datetime -from os import mkdir, chdir, getcwd +from os import mkdir, chdir from os.path import join, exists, abspath, basename, normpath, split, isdir from warnings import warn @@ -230,21 +230,6 @@ break -def defined_in_library(etype, rtype, tetype, role): - """return true if the given relation definition exists in cubicweb's library - """ - if libschema is None: - return False - if role == 'subject': - subjtype, objtype = etype, tetype - else: - subjtype, objtype = tetype, etype - try: - return libschema.rschema(rtype).has_rdef(subjtype, objtype) - except KeyError: - return False - - LANGS = ('en', 'fr', 'es') I18NDIR = join(BASEDIR, 'i18n') DEFAULT_POT_HEAD = r'''msgid ""