Re: Running Inline::Python in a CGI script

2013-03-14 Thread Chris Nighswonger
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/

Re: Running Inline::Python in a CGI script

2013-03-14 Thread Stefan Seifert
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

Re: Running Inline::Python in a CGI script

2013-03-14 Thread Chris Nighswonger
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

Re: Running Inline::Python in a CGI script

2013-03-12 Thread Chris Nighswonger
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

Re: Running Inline::Python in a CGI script

2013-03-12 Thread Stefan Seifert
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

Re: Running Inline::Python in a CGI script

2013-03-12 Thread Chris Nighswonger
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

Re: Running Inline::Python in a CGI script

2013-03-12 Thread Chris Nighswonger
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

Re: Running Inline::Python in a CGI script

2013-03-11 Thread sisyphus1
-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