Re: [Modeling-users] patch : Entity.externalNameForInternalName()
Status: Abandoned
Brought to you by:
sbigaret
|
From: Sebastien B. <sbi...@us...> - 2003-06-10 16:32:55
|
You're absolutely right. I applied your patch on the main trunk, it will
be in next release. Thanks for reporting!
-- S=E9bastien.
Yannick Gingras <yan...@sa...> wrote:
> Hi,=20
> I use Entity.externalNameForInternalName() and
> Entity.nameForExternalName() extensivly to reload phpMyAdmin XML dumps of=
my=20
> database. Both should be 100% reversible so I submit this patch :=20
>=20
>=20
> --- Entity.py.orig 2003-06-09 15:11:57.000000000 -0400
> +++ Entity.py 2003-06-09 15:12:16.000000000 -0400
> @@ -70,7 +70,7 @@
> #If 'returnCaps' is set to '0', the returned string consists of lower =
case
> #letters, instead of upper case ones.
> #if useCaps:
> _regexp=3Dre.compile('([a-z])([A-Z])')
> + _regexp=3Dre.compile('([a-z0-9])([A-Z])')
> _results=3D_regexp.sub('\\1'+separatorString+'\\2', aName)
> #else:
> # _results=3DaName
>=20
>=20
> In short, when the word is broken after a number, the '_' is not restored=
by=20
> externalNameForInternalName().
>=20
> ex :=20
> db2_id -> db2Id -> db2id
>=20
> --=20
> Yannick Gingras
> Byte Gardener, Savoir-faire Linux inc.
> (514) 276-5468
>=20
>=20
>=20
>=20
> -------------------------------------------------------
> This SF.net email is sponsored by: Etnus, makers of TotalView, The best
> thread debugger on the planet. Designed with thread debugging features
> you've never dreamed of, try TotalView 6 free at www.etnus.com.
> _______________________________________________
> Modeling-users mailing list
> Mod...@li...
> https://lists.sourceforge.net/lists/listinfo/modeling-users
|