Changeset 125
- Timestamp:
- 04/12/07 15:23:23 (2 years ago)
- Files:
-
- trunk/bin/domainmodel-test (modified) (1 diff)
- trunk/src/dm/view/base.py (modified) (1 diff)
- trunk/src/dm/view/manipulator.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/bin/domainmodel-test
r65 r125 3 3 # Run all dm tests. 4 4 # 5 # NB: Set environment the variables to same as a working KForge:6 # PYTHONPATH7 # DJANGO_SETTINGS_MODULE8 # DOMAINMODELHOME (=KFORGEHOME)9 5 10 6 import os trunk/src/dm/view/base.py
r123 r125 713 713 domainObject = self.getManipulatedDomainObject() 714 714 fieldNames = self.getManipulatedFieldNames() 715 msg = "Building manipulator %s with fields names %sfor position %s" % (715 msg = "Building manipulator %s for position %s" % ( 716 716 manipulatorClass.__name__, 717 fieldNames,718 717 self.getViewPosition() 719 718 ) trunk/src/dm/view/manipulator.py
r123 r125 59 59 self.fieldNames = fieldNames 60 60 self.fields = [] 61 self.buildFields() 62 if not fieldNames: 63 for field in self.fields: 64 self.fieldNames.append(field.field_name) 65 66 def buildFields(self): 67 msg = "Building manipulator fields for %s manipulator." % ( 61 msg = "Building manipulator fields for %s..." % ( 68 62 self.__class__.__name__ 69 63 ) 70 64 self.logger.debug(msg) 65 self.buildFields() 66 67 self.fieldNames = [] 68 for field in self.fields: 69 self.fieldNames.append(field.field_name) 70 msg = "Built %s manipulator with fields: %s" % ( 71 self.__class__.__name__, self.fieldNames 72 ) 73 self.logger.debug(msg) 74 75 def buildFields(self): 71 76 if self.fieldNames: 72 77 msg = "Manipulator building field objects from fieldNames..."
