On Fri, Aug 22, 2008 at 3:17 PM, Olive <[EMAIL PROTECTED]> wrote:
>
> OK here are my directives:
>
> WSGIProcessGroup %{GLOBAL}
> WSGIApplicationGroup %{GLOBAL}
> WSGIImportScript /data/search/modwsgi/loaddb.py process-group=%
> {GLOBAL} application-group=%{GLOBAL}
> WSGIScriptAlias /search/modwsgi /data/search/modwsgi/ipcsearch.wsgi
> <Directory /data/search/modwsgi>
>    Order allow,deny
>    Allow from all
> </Directory>
>
> loaddb.py:
> import cPickle
> ipcindex = cPickle.load(open('/data/search/20080401.db'))
>
> Know what do I need to add to my wsgi app to make it use of the
> ipcindex variable ?
>
> I get this:
> NameError: global name 'ipcindex' is not defined

Assuming you have ipcindex inside your loaddb.py file, have you tried
loaddb.ipcindex instead of just ipcindex?
-- 
Best Regards,
Nimrod A. Abing

W http://arsenic.ph/
W http://preownedcar.com/
W http://preownedbike.com/
W http://abing.gotdns.com/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"modwsgi" 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/modwsgi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to