Changeset 835 in products


Ignore:
Timestamp:
Apr 3, 2007 9:18:21 AM (19 years ago)
Author:
mylan
Message:

validate_qploneskindump_form.vpy typo fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • qPloneSkinDump/tags/0.7.1/skins/qploneskindump/validate_qploneskindump_form.vpy

    r503 r835  
    1111 
    1212from 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 
     13from Products.qPloneSkinDump.qPloneSkinDump import isValidProductName, isValidDirName 
    1614errors = state.getErrors() 
    1715 
     
    2422 
    2523# Check REQUIRED fields 
    26 REQUIRED_FIELDS = ['ZMISkinName', 'ZMIBaseSkinName', 'FSProductName', 'FSSkinDirectory', 'FSDestinationDirectory'] 
     24REQUIRED_FIELDS = ['ZMISkinName', 'ZMIBaseSkinName', 'FSProductName', 'FSSkinDirectory'] 
    2725theform = {} 
    2826for f in REQUIRED_FIELDS: 
     
    3230    theform[f]=fdata 
    3331 
    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."}) 
     32if not( theform['FSProductName'] and isValidProductName(theform['FSProductName']) ): 
     33    update_errors(errors, {'FSProductName': u"Not valid Product name - read help attentively."}) 
    4034 
    4135if not( theform['FSSkinDirectory'] and isValidDirName(theform['FSSkinDirectory']) ): 
Note: See TracChangeset for help on using the changeset viewer.