Changeset 835 in products
- Timestamp:
- Apr 3, 2007 9:18:21 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
qPloneSkinDump/tags/0.7.1/skins/qploneskindump/validate_qploneskindump_form.vpy
r503 r835 11 11 12 12 from Products.CMFCore.utils import getToolByName 13 from Products.qPloneSkinDump.qPloneSkinDump import isValidProductName 14 from Products.qPloneSkinDump.qPloneSkinDump import isValidDirName 15 from Products.qPloneSkinDump.qPloneSkinDump import isValidDestinationDir 13 from Products.qPloneSkinDump.qPloneSkinDump import isValidProductName, isValidDirName 16 14 errors = state.getErrors() 17 15 … … 24 22 25 23 # Check REQUIRED fields 26 REQUIRED_FIELDS = ['ZMISkinName', 'ZMIBaseSkinName', 'FSProductName', 'FSSkinDirectory' , 'FSDestinationDirectory']24 REQUIRED_FIELDS = ['ZMISkinName', 'ZMIBaseSkinName', 'FSProductName', 'FSSkinDirectory'] 27 25 theform = {} 28 26 for f in REQUIRED_FIELDS: … … 32 30 theform[f]=fdata 33 31 34 if not( theform["FSDestinationDirectory"] and isValidDestinationDir(theform["FSDestinationDirectory"]) ): 35 update_errors(errors, {"FSDestinationDirectory": u"Not valid Destination directory"}) 36 37 if not( theform['FSProductName'] and theform["FSDestinationDirectory"] \ 38 and isValidProductName(theform['FSProductName'], theform["FSDestinationDirectory"]) ): 39 update_errors(errors, {'FSProductName': u"Not valid Product name or problem with destination directory - read help attentively."}) 32 if not( theform['FSProductName'] and isValidProductName(theform['FSProductName']) ): 33 update_errors(errors, {'FSProductName': u"Not valid Product name - read help attentively."}) 40 34 41 35 if not( theform['FSSkinDirectory'] and isValidDirName(theform['FSSkinDirectory']) ):
Note: See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/trac/chrome/common/qtrac_logo.png)