Changeset 632
- Timestamp:
- 02/20/07 22:33:13 (2 years ago)
- Files:
-
- PleiadesEntity/trunk/AppConfig.py (modified) (1 diff)
- PleiadesEntity/trunk/Extensions/loader.py (modified) (1 diff)
- PleiadesEntity/trunk/content/PlaceContainer.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
PleiadesEntity/trunk/AppConfig.py
r625 r632 2 2 from Products.CMFCore.utils import getToolByName 3 3 4 BA_MAP_IDS = ['1', '1a'] + [str(n) for n in range(2, 103)] 5 BA_TABLE_COUNT = 13 6 BA_ROW_COUNT = 755 7 BA_ID_MAX = len(BA_MAP_IDS) * BA_TABLE_COUNT * BA_ROW_COUNT 8 PleiadesEntity/trunk/Extensions/loader.py
r617 r632 40 40 from Products.PleiadesEntity.Extensions.cooking import * 41 41 42 BA_MAP_IDS = ['1', '1a'] + [str(n) for n in range(2, 103)] 43 BA_TABLE_COUNT = 13 44 BA_ROW_COUNT = 755 45 BA_ID_MAX = len(BA_MAP_IDS) * BA_TABLE_COUNT * BA_ROW_COUNT 42 from Products.PleiadesEntity.config import * 46 43 47 44 batlas_pattern = re.compile(r'batlas-(\w+)-(\w+)-(\w+)') PleiadesEntity/trunk/content/PlaceContainer.py
r626 r632 105 105 obid = str(id) 106 106 else: 107 obid = self.generateId(prefix='') 107 # prevent ids in the reserved range 108 obid = -1 109 while int(obid) <= BA_ID_MAX: 110 obid = self.generateId(prefix='') 108 111 args = ('Place', self, obid, RESPONSE) 109 112 new_id = pt.constructContent(*args, **kw)
