diff options
Diffstat (limited to 'webapps/qooxdoo-0.6.5-sdk/frontend/framework/tool/modules/mapper.py')
-rwxr-xr-x | webapps/qooxdoo-0.6.5-sdk/frontend/framework/tool/modules/mapper.py | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/webapps/qooxdoo-0.6.5-sdk/frontend/framework/tool/modules/mapper.py b/webapps/qooxdoo-0.6.5-sdk/frontend/framework/tool/modules/mapper.py deleted file mode 100755 index 58fb4f442f..0000000000 --- a/webapps/qooxdoo-0.6.5-sdk/frontend/framework/tool/modules/mapper.py +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/env python -################################################################################ -# -# qooxdoo - the new era of web development -# -# http://qooxdoo.org -# -# Copyright: -# 2006-2007 1&1 Internet AG, Germany, http://www.1and1.org -# -# License: -# LGPL: http://www.gnu.org/licenses/lgpl.html -# EPL: http://www.eclipse.org/org/documents/epl-v10.php -# See the LICENSE file in the project's top-level directory for details. -# -# Authors: -# * Sebastian Werner (wpbasti) -# -################################################################################ - -table = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" - -def convert(current): - # Possibilities with each character - # 1: 36 = 36 - # 2: 36*36 = 1296 - # 3: 36*36*36 = 46656 - - res = "" - length = len(table) - 1 - - if current / length > 0: - res += convert(current / length) - - res += table[current % length] - - return res |