Changeset 3897 for WAeUP_SRP/trunk


Ignore:
Timestamp:
31 Jan 2009, 07:46:11 (16 years ago)
Author:
Henrik Bettermann
Message:

resolve ticket FUTMinna #41

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Widgets.py

    r3858 r3897  
    745745        #from Products.zdb import set_trace
    746746        #set_trace()
    747 ##        valid = CPSStringWidget.validate(self, datastructure, **kw)
    748 ##        if not valid:
    749 ##            return 0
     747        valid = CPSStringWidget.validate(self, datastructure, **kw)
     748        if not valid:
     749            return 0
    750750        widget_id = self.getWidgetId()
    751751        #value = makeCertificateCode(datastructure[widget_id]).upper()
    752752        value = datastructure[widget_id].upper()
    753         id_pat_str = r"\S"
    754         inv_id_pat = re.compile(r"^%s$" % id_pat_str)
     753        #id_pat_str = r"\S"
     754        #inv_id_pat = re.compile(r"^%s$" % id_pat_str)
    755755        err = 0
    756756        if len(value.split()) > 1:
Note: See TracChangeset for help on using the changeset viewer.