On Thu, Mar 14, 2013 at 8:04 AM, Stefan Seifert wrote:
> On Tuesday 12 March 2013 11:15:40 Chris Nighswonger wrote:
> > So here's my shot at this:
> >
> > use Inline::Python qw( py_new_object );
> >
> > my $pykota_conf = py_new_object("config", "pykota.config",
> "PyKotaConfig",
> > '/etc/pykota/
On Tuesday 12 March 2013 11:15:40 Chris Nighswonger wrote:
> On Tue, Mar 12, 2013 at 9:43 AM, Stefan Seifert wrote:
> > # create a Python foo.Bar object and make it look like a Bar object in
> > Perl:
> > my $bar = py_new_object('Bar', 'foo', 'Bar', 'constructor arg 1');
> > $bar->baz();
>
> So h
On Tue, Mar 12, 2013 at 11:15 AM, Chris Nighswonger <
cnighswon...@foundations.edu> wrote:
> use Inline::Python qw( py_new_object );
>
> my $pykota_conf = py_new_object("config", "pykota.config", "PyKotaConfig",
> '/etc/pykota/');
>
> print "Admin mail for the AP400N: " . $pykota_conf->getAdminMai
On Tue, Mar 12, 2013 at 9:43 AM, Stefan Seifert wrote:
> # create a Python foo.Bar object and make it look like a Bar object in
> Perl:
> my $bar = py_new_object('Bar', 'foo', 'Bar', 'constructor arg 1');
> $bar->baz();
>
So here's my shot at this:
use Inline::Python qw( py_new_object );
my $p
On Monday 11 March 2013 11:20:36 Chris Nighswonger wrote:
> 2.The second version imports a class from a Python module. The script
> runs fine when called from the cli. However, it borks when executed as
> a cgi, complaining of calls to undefined functions/methods. Of course,
> those functions/meth
On Tue, Mar 12, 2013 at 9:25 AM, Chris Nighswonger <
cnighswon...@foundations.edu> wrote:
> I double checked and .Inline and friends have correct perms. Clearing
> everything below .Inline shows that the module is rebuilt as expected on
> the next call to the CGI.
>
> I've tried BUILD_NOISY and th
Hi Rob,
On Mon, Mar 11, 2013 at 5:21 PM, wrote:
I'm trying to use Inline::Python within a CGI script.
>>
>
>
> Is there anything of relevance in the "Inline CGI" example in
> C/C-Cookbook.pod ?
>
> (FAIK, that might be completely irrelevant where Inline::Python is
> concerned but it does s
-Original Message-
From: Chris Nighswonger
Sent: Tuesday, March 12, 2013 2:20 AM
To: inline@perl.org
Subject: Running Inline::Python in a CGI script
I'm trying to use Inline::Python within a CGI script.
Hi Chris,
Is there anything of relevance in the "Inline CGI" example in
C/C-C