Re: [webmin-devel] Using Inline in a Webmin module

Chris Nighswonger <[email protected]> Fri, 8 Mar 2013 13:35:41 -0500
Newsgroups gmane.comp.web.webmin.devel
Message-ID <CAP3yOonPfeg7XPusi5BsZOAkNv7G3Cd-HXkRE_xf3zAWxb+Q=g@mail.gmail.com>
On Fri, Mar 8, 2013 at 1:07 PM, Jamie Cameron <[email protected]> wrote:
> On 08/Mar/2013 07:21 Chris Nighswonger <[email protected]> wrote ..
>>
>> Things appear to go bad with the eval block here:
>>
>> https://github.com/webmin/webmin/blob/master/miniserv.pl#L2337
>>
>> So I'm guessing that its a problem with the environment in which the
>> eval is executed. Though what it is, I am unsure.
>
> Perhaps forcing a change of package (as happens in that block) is the
> cause of the problem?

I thought the same thing. So I ran a one-liner from the cli doing and
eval and forcing a package change. Sure enough: it threw the same
error. Sadly, though, when I commented out the package change in
miniserv, it still borked.

Also, when using the very simple script in which the actual Python was
embedded, forcing a package change made no difference. The simple
script worked either way.

Kind Regards,
Chris

------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
-
Forwarded by the Webmin development list at [email protected]
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-devel