1
2
3
4 """
5 Simple processing for russian strings
6 """
7
8 __id__ = __revision__ = "$Id: __init__.py 35 2006-10-28 17:30:17Z the.pythy $"
9 __url__ = "$URL: https://pythy.googlecode.com/svn/trunk/pytils/pytils/__init__.py $"
10 __all__ = ["numeral", "dt", "translit", "test", "utils"]
11
12
13 VERSION_MAJOR = 0
14 VERSION_MINOR = 2
15 VERSION_TINY = 0
16
17 VERSION = "%d.%d.%d" % (VERSION_MAJOR, VERSION_MINOR, VERSION_TINY)
18
19 REL_DATE = '20061029'
20
22 """Returns date of last update (extract from __id__)"""
23 if id_string.replace('$', '') == "Id":
24 return REL_DATE
25 else:
26 return id_string.split()[3].replace('-', '')
27
28
29 _module_dates = [_get_svn_date_from_id(__id__), ]
30
31
32 for _module_name in __all__:
33 _imported_module = __import__("pytils."+_module_name,
34 globals(),
35 locals(),
36 ["pytils"])
37 _module_dates.append(_get_svn_date_from_id(_imported_module.__id__))
38
39 SVN_DATE = max(_module_dates)
40
41
42
43
44
45
46
47
48 if SVN_DATE > REL_DATE:
49 VERSION = "%s-svn%s" % (VERSION, SVN_DATE)
50