Re: Making class attributes non-case-sensitive?

2008-10-15 Thread Rafe
Thanks for the COM pointers Matt. I'll definitely look in to these. Perhaps this will become a non-issue when I use one of these COM wrappers... > Anybody who is used to developing at all is going to > accept that the software is case sensitive. Case sensitive? Yes. Letting types create hard to d

Re: Making class attributes non-case-sensitive?

2008-10-14 Thread Matimus
> So is iterating through dir() to force both the members of dir(), and > the requested attribute name, to lower case for a comparison, really > the easiest way? > > Thanks again for sticking with me. I hope I didn't add to the > confusion. What I learn I will of course pass on. > > - Rafe It stil

Re: Making class attributes non-case-sensitive?

2008-10-13 Thread Rafe
[I posted a version of the following but it contained a broken example. I deleted it through GoogleGroups, but I'm adding this message in case the old version is still visible on the list. If it isn't ignore this.] I really appreciate the replies. I hope you guys will stick with me through one mo

Re: Making class attributes non-case-sensitive?

2008-10-13 Thread Rafe
I'm not sure what went wrong with the formatting in my last post. my code is under 80 characters wide. Here is a more narrow copy and paste... class DelegationWrapper(object): """ This is a new-style base class that allows python to extend, or override attributes of a given X3DObject.

Re: Making class attributes non-case-sensitive?

2008-10-13 Thread Rafe
I really appreciate the replies. I hope you gyus will stick with me through one more round. super(C, self).__setattr__(attr.lower(), value) Unfortunately, this will not work because an attribute name such as "getObject" is legal (I'll explain the convention in a moment.) I think I would have to l

Re: Making class attributes non-case-sensitive?

2008-10-13 Thread Matimus
On Oct 13, 4:08 am, Rafe <[EMAIL PROTECTED]> wrote: > Just so I don't hijack my own thread, the issue is 'how to wrap an > object which is not case sensitive'. > > The reason I am stuck dealing with this?... The application's API is > accessed through COM, so I don't know if I can do anything but r

Re: Making class attributes non-case-sensitive?

2008-10-13 Thread Peter Pearson
On Mon, 13 Oct 2008 04:08:03 -0700 (PDT), Rafe <[EMAIL PROTECTED]> wrote: > Just so I don't hijack my own thread, the issue is 'how to wrap an > object which is not case sensitive'. > > The reason I am stuck dealing with this?... The application's API is > accessed through COM, [snip] > XSI allows

Re: Making class attributes non-case-sensitive?

2008-10-13 Thread Fuzzyman
On Oct 13, 10:11 am, Rafe <[EMAIL PROTECTED]> wrote: > Hi, > > I'm working within an application (making a lot of wrappers), but the > application is not case sensitive. For example, Typing obj.name, > obj.Name, or even object.naMe is all fine (as far as the app is > concerned). The problem is, If

Re: Making class attributes non-case-sensitive?

2008-10-13 Thread Diez B. Roggisch
Rafe wrote: > Just so I don't hijack my own thread, the issue is 'how to wrap an > object which is not case sensitive'. > > The reason I am stuck dealing with this?... The application's API is > accessed through COM, so I don't know if I can do anything but react > to what I get. The API was writ

Re: Making class attributes non-case-sensitive?

2008-10-13 Thread Rafe
Just so I don't hijack my own thread, the issue is 'how to wrap an object which is not case sensitive'. The reason I am stuck dealing with this?... The application's API is accessed through COM, so I don't know if I can do anything but react to what I get. The API was written while the app (Softim

Re: Making class attributes non-case-sensitive?

2008-10-13 Thread Diez B. Roggisch
Rafe wrote: > Hi, > > I'm working within an application (making a lot of wrappers), but the > application is not case sensitive. For example, Typing obj.name, > obj.Name, or even object.naMe is all fine (as far as the app is > concerned). The problem is, If someone makes a typo, they may get an >

Making class attributes non-case-sensitive?

2008-10-13 Thread Rafe
Hi, I'm working within an application (making a lot of wrappers), but the application is not case sensitive. For example, Typing obj.name, obj.Name, or even object.naMe is all fine (as far as the app is concerned). The problem is, If someone makes a typo, they may get an unexpected error due accid