If I add the lines
if not api.Backend.rpcclient.isconnected():
api.Backend.rpcclient.connect()
before I call the api, the code works. Problem (pretty much) solved.
On 06/23/2015 04:36 PM, Drew Erny wrote:
Resurrecting this thread, because the problem is getting me again.
If I go through
Resurrecting this thread, because the problem is getting me again.
If I go through the python interpreter and import the code that calls
the ipalib, and then manually call it myself the way the webserver does,
the code works. If the same code is run in the course of the web server
process, I
Dne 17.6.2015 v 19:18 Drew Erny napsal(a):
On 06/17/2015 01:24 AM, Jan Cholasta wrote:
Dne 16.6.2015 v 20:29 Drew Erny napsal(a):
Hi, All,
...
Call
api.Backend.rpcclient.connect(ccache=krbV.default_context().default_ccache())
to make the problem go away.
This doesn't work. The Flask
On 06/17/2015 01:24 AM, Jan Cholasta wrote:
Dne 16.6.2015 v 20:29 Drew Erny napsal(a):
Hi, All,
...
Call
api.Backend.rpcclient.connect(ccache=krbV.default_context().default_ccache())
to make the problem go away.
This doesn't work. The Flask application runs (as I mentioned in a
On 17.6.2015 07:24, Jan Cholasta wrote:
Dne 16.6.2015 v 20:29 Drew Erny napsal(a):
Hi, All,
I'm using the IPA Python API to write the Community Portal. Most of the
documentation for using the IPA Python API is targeted a plugin authors,
and this isn't a plugin for (what I think are) good
On 06/16/2015 04:17 PM, Rob Crittenden wrote:
Drew Erny wrote:
On 06/16/2015 02:29 PM, Drew Erny wrote:
Hi, All,
I'm using the IPA Python API to write the Community Portal. Most of
the documentation for using the IPA Python API is targeted a plugin
authors, and this isn't a plugin for (what
On 06/16/2015 02:29 PM, Drew Erny wrote:
Hi, All,
I'm using the IPA Python API to write the Community Portal. Most of
the documentation for using the IPA Python API is targeted a plugin
authors, and this isn't a plugin for (what I think are) good reasons.
I'm doing
# in the main
Drew Erny wrote:
On 06/16/2015 02:29 PM, Drew Erny wrote:
Hi, All,
I'm using the IPA Python API to write the Community Portal. Most of
the documentation for using the IPA Python API is targeted a plugin
authors, and this isn't a plugin for (what I think are) good reasons.
I'm doing
# in
Dne 16.6.2015 v 20:29 Drew Erny napsal(a):
Hi, All,
I'm using the IPA Python API to write the Community Portal. Most of the
documentation for using the IPA Python API is targeted a plugin authors,
and this isn't a plugin for (what I think are) good reasons. I'm doing
# in the main program