Update of /cvsroot/modeling/ProjectModeling/Modeling/doc/UserGuide
In directory sc8-pr-cvs1:/tmp/cvs-serv22497/UserGuide
Modified Files:
CodeRequirements.tex
Log Message:
Fixed doc. for Validation (ticker #807763)
Index: CodeRequirements.tex
===================================================================
RCS file: /cvsroot/modeling/ProjectModeling/Modeling/doc/UserGuide/CodeRequirements.tex,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** CodeRequirements.tex 23 Aug 2003 16:53:31 -0000 1.2
--- CodeRequirements.tex 21 Sep 2003 18:50:37 -0000 1.3
***************
*** 252,256 ****
"Checks that the provided value does not begin with a 'J'"
if aValue.find('J')==0:
! raise Validation.Exception
return
\end{verbatim}
--- 252,256 ----
"Checks that the provided value does not begin with a 'J'"
if aValue.find('J')==0:
! raise Validation.ValidationException
return
\end{verbatim}
***************
*** 323,331 ****
def validateForSave(self):
"Validate "
! error=Validation.Exception()
try:
CustomObject.validateForSave(self)
! except Validation.Exception, error:
! error.aggregateException(error)
# Your custom bizness logic goes here
if self.getFirstName()=='John': # No John, except the One
--- 323,331 ----
def validateForSave(self):
"Validate "
! error=Validation.ValidationException()
try:
CustomObject.validateForSave(self)
! except Validation.ValidationException, exc:
! error.aggregateException(exc)
# Your custom bizness logic goes here
if self.getFirstName()=='John': # No John, except the One
|