Ignore:
Timestamp:
28 Sep 2007, 08:54:17 (17 years ago)
Author:
joachim
Message:

use WAeUPId Widget for Ids

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/WAeUPTool.py

    r2288 r2289  
    10321032        res = self.portal_catalog(id=course_id)
    10331033        if not res:
    1034             return '', "No Course with ID: %s" % did
     1034            return '', "No Course with ID: %s" % course_id
    10351035        c = res[0].getObject()
    10361036        c.getContent().edit(mapping=mapping)
     
    13681368            validators[widget] = layout[widget].validate
    13691369        #import pdb;pdb.set_trace()
     1370        mode = "create"
    13701371        if edit:
    1371             importer_name = "mass_edit_%s" % name
    1372         else:
    1373             importer_name = "mass_create_%s" % name
     1372            mode = "edit"
     1373        importer_name = "mass_%(mode)s_%(name)s" % vars()
    13741374        importer = getattr(self, '%s' % importer_name,None)
    13751375        if importer is None:
     
    14101410            for k in import_keys:
    14111411                #import pdb;pdb.set_trace()
    1412                 if not validators[k](ds):
     1412                if not validators[k](ds,mode=mode):
    14131413                    error_string += " %s : %s" % (k,
    14141414                                                  self.translation_service(ds.getError(k),
Note: See TracChangeset for help on using the changeset viewer.