Re: [Modeling-users] Stability of Modeling
Status: Abandoned
Brought to you by:
sbigaret
|
From: Sebastien B. <sbi...@us...> - 2003-05-31 08:44:07
|
Edmund Lian <el...@in...> wrote:
> BTW, I know you're a bit "touchy" about the name, but it is an important
> issue. When I was trying to find more info about Modeling, searching on t=
he
> name was useless since it is such a widely used verb!
Alas, the problem is known and the name should be changed. My fault here
--some people here keep picking on me on a regular basis. I'll gather
the name proposals in a forthcoming mail and we'll try to make it happen
for 0.9 (that's one of the few remaining prerequisites to leave the
long-standing pre-0.9 serie).
> >> Does it scale well, etc.
> > Could you be more specific about which kind of informations you'd
> > like to get?
>=20
> I was after the kinds of numbers that you provided, thank you. I'll
> experiment with it soon to get a better feel for it.
Fine. I guess these figures should be put somewhere on the website.
> One thing that I'm concerned about is the use of very long method and
> parameter names, like:
>=20
> qualifier=3DqualifierWithQualifierFormat('lastName caseInsensitiveLike "h=
u?o"')
>=20
> My wrists started to hurt as soon as I saw this (I have RSI)! :-)
Ouch! This is another known issue that should be addressed for 0.9 as
well. As Yannick said, auto-completion is your friend, however this is
not a definitive answer. I'll post soon a API-renaming proposal,
dedicated to the most useful methods --and fetching should be made
simpler.
It should have been addressed for long --be sure it's not
unwillingness, rather a matter of time. As usual...
As far as caseInsensitiveLike is concerned: I once made 'ilike' an
alternate for 'caseInsensitiveLike', but it seems to have
disappeared. Back again on cvs, and attached is the corresponding
patch. This will be in next release.
-- S=E9bastien.
----------8<---------------8<---------------8<---------------8<---------
Index: Modeling/Qualifier.py
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/modeling/ProjectModeling/Modeling/Qualifier.py,v
retrieving revision 1.5
diff -u -r1.5 Qualifier.py
--- Modeling/Qualifier.py 27 Jan 2003 22:41:59 -0000 1.5
+++ Modeling/Qualifier.py 31 May 2003 08:39:40 -0000
@@ -78,7 +78,7 @@
=20
# Module
def allQualifierOperators():
- return ('=3D=3D', '!=3D', '<', '<=3D', '>', '>=3D', 'like', 'caseInsensi=
tiveLike')
+ return ('=3D=3D', '!=3D', '<', '<=3D', '>', '>=3D', 'like', 'caseInsensi=
tiveLike', 'ili
ke')
=20
def filteredArrayWithQualifier(objects, qualifier):
result=3D[]
@@ -96,7 +96,7 @@
if op =3D=3D '>': return QualifierOperatorGreaterThan
if op =3D=3D '>=3D': return QualifierOperatorGreaterThanOrEqualTo
if op =3D=3D 'like': return QualifierOperatorLike
- if op in ('caseInsensitiveLike', 'iLike'):
+ if op in ('caseInsensitiveLike', 'ilike'):
return QualifierOperatorCaseInsensitiveLike
raise ValueError, aString
=20
Index: Modeling/QualifierParser.py
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/modeling/ProjectModeling/Modeling/QualifierParser.py,v
retrieving revision 1.7
diff -u -r1.7 QualifierParser.py
--- Modeling/QualifierParser.py 10 Feb 2003 11:27:10 -0000 1.7
+++ Modeling/QualifierParser.py 31 May 2003 08:39:43 -0000
@@ -175,7 +175,7 @@
self.rv.append(Token(type=3Ds))
=20=20=20=20=20=20=20
def t_comp_op(self, s):
- r' \+ | \* | =3D=3D | >=3D | > | <=3D | < | \!=3D | like | caseInsensi=
tiveLike '
+ r' \+ | \* | =3D=3D | >=3D | > | <=3D | < | \!=3D | like | caseInsensi=
tiveLike | ilik
e'
trace('Token COMP_OP: %s'%s)
self.rv.append(Token(type=3Ds))
=20=20=20=20=20=20=20
@@ -326,6 +326,7 @@
comp_op ::=3D !=3D
comp_op ::=3D like
comp_op ::=3D caseInsensitiveLike
+ comp_op ::=3D ilike
'''
trace('comp_op: %s'%args[0])
return AST(type=3Dargs[0])
Index: Modeling/tests/test_Qualifier.py
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/modeling/ProjectModeling/Modeling/tests/test_Qualifier.p=
y,v
retrieving revision 1.7
diff -u -r1.7 test_Qualifier.py
--- Modeling/tests/test_Qualifier.py 10 Feb 2003 11:51:43 -0000 1.7
+++ Modeling/tests/test_Qualifier.py 31 May 2003 08:39:54 -0000
@@ -271,6 +271,9 @@
m_s=3DqualifierWithQualifierFormat('book.title caseInsensitiveLike "*m=
?s*"')
res=3DfilteredArrayWithQualifier(self.authors, m_s)
self.failUnless(len(res)=3D=3D2 and self.jean in res and self.victor i=
n res)
+ m_s=3DqualifierWithQualifierFormat('book.title ilike "*m?s*"')
+ res=3DfilteredArrayWithQualifier(self.authors, m_s)
+ self.failUnless(len(res)=3D=3D2 and self.jean in res and self.victor i=
n res)
=20
# invalid expression
self.failUnlessRaises(ValueError, qualifierWithQualifierFormat,
----------8<---------------8<---------------8<---------------8<---------
|