Nick,

If I'm not mistaken:
AttributeError: 'str' object has no attribute 'contains'Should be:
os.environ['SERVER_SOFTWARE'].find('Development') >= 0

your comment was helpful, though

Jaap

On Fri, Jul 24, 2009 at 7:25 PM, Mark Jones <[email protected]> wrote:

>
> I also discovered this today:
>
> http://code.google.com/p/app-engine-patch/wiki/RagendjaOther
>
> On Jul 22, 11:49 am, "Nick Johnson (Google)" <[email protected]>
> wrote:
> > Hi Mark,
> >
> > Just check if os.environ['SERVER_SOFTWARE'].contains('Development')
> >
> > -Nick Johnson
> >
> > On Wed, Jul 22, 2009 at 5:42 PM, Mark Jones<[email protected]> wrote:
> >
> > > I need code to behave one way on mydevserverand another on the real
> > > GAE.  How can I detect thedevserver.
> >
> > > Specifically I need to NOT replace imp.find_module so that WingIDE
> > > debugging will work, but I need it to be replaced when the code is
> > > pushed to GAE
> >
> > --
> > Nick Johnson, App Engine Developer Programs Engineer
> > Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
> > Number: 368047
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to