Changeset 712
- Timestamp:
- 09/27/05 11:34:10 (3 years ago)
- Files:
-
- django/trunk/django/conf/global_settings.py (modified) (1 diff)
- django/trunk/django/core/validators.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/conf/global_settings.py
r710 r712 110 110 SECRET_KEY = '' 111 111 112 # Path to the "jing" executable -- needed to validate XMLFields 113 JING_PATH = "/usr/bin/jng" 114 112 115 ############## 113 116 # MIDDLEWARE # django/trunk/django/core/validators.py
r671 r712 24 24 url_re = re.compile(r'^http://\S+$') 25 25 26 JING = '/usr/bin/jing' 26 from django.conf.settings import JING_PATH 27 27 28 28 class ValidationError(Exception): … … 436 436 fp.write(field_data) 437 437 fp.close() 438 if not os.path.exists(JING ):439 raise Exception, "%s not found!" % JING 440 p = os.popen('%s -c %s %s' % (JING , self.schema_path, filename))438 if not os.path.exists(JING_PATH): 439 raise Exception, "%s not found!" % JING_PATH 440 p = os.popen('%s -c %s %s' % (JING_PATH, self.schema_path, filename)) 441 441 errors = [line.strip() for line in p.readlines()] 442 442 p.close()
