Warning:
Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.
| File meta.patch,
1.1 KB
(added by xaka, 2 years ago) |
|
|
-
|
old
|
new
|
|
| 80 | 80 | cls.__init__ = dct["__init__"] |
| 81 | 81 | super(MetaWidget, cls).__init__(name, bases, dct) |
| 82 | 82 | modname = "%s.%s" % (cls.__module__, name) |
| | 83 | modname = "%s-%s" % (modname, get_mod_index(modname)) |
| 83 | 84 | if cls.template: |
| 84 | 85 | (cls.template_c, |
| 85 | 86 | cls.template) = load_kid_template(cls.template, modname) |
| 86 | 87 | cls._locked = False |
| 87 | 88 | |
| | 89 | modcounter = {} |
| | 90 | def get_mod_index(modname): |
| | 91 | from itertools import count |
| | 92 | return modcounter.setdefault(modname, count(1)).next() |
| | 93 | |
| 88 | 94 | ############################################################################# |
| 89 | 95 | # Method decorators and other MetaWidget helpers # |
| 90 | 96 | ############################################################################# |
Download in other formats: