Changeset 1718


Ignore:
Timestamp:
27 Apr 2007, 08:24:42 (18 years ago)
Author:
joachim
Message:

BETTER ERRORMESSAGE FOR w
better errormessage for WAeUPIdWidgeteupIdWidget

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Widgets.py

    r1573 r1718  
    229229                err = 'Invalid Id, Id contains space(s).'
    230230            elif self.portal_catalog(portal_type=portal_type_query,id=value):
    231                 err = 'An object with the Id %s already exists in the Academic Section.' % (value)
     231                brain = self.portal_catalog(portal_type=portal_type_query,id=value)[0]
     232                err = 'An %s object with the Id %s already exists at %s'\
     233                      % (brain.portal_type,value,brain.getPath())
    232234            if err:
    233235                datastructure.setError(widget_id, err)
Note: See TracChangeset for help on using the changeset viewer.