I have solved these problems on my own and I am posting the solutions
to help anyone else who might encounter the problems.

> #1) I started the process of putting my app into a production
> environment using .egg for delivery.  When I install the egg it get
> installed in the /usr/lib/python2.5/site-packages/app.egg directory.
> However /static/images is not there.  css and javascript is.  If I
> copy my dev version of /images over then the images display fine. What
> could I have miss in configuration?

I had an __init__.py in the images folder.  Probable copied in there
at some point for some unknown reason.  After many attempts of trial
and error, (clearing out the folder, adding a few files, building,
checking, etc), it all came down to this file.  Maybe other .py files
would cause the issue but I did not test it.  Now that the __init__.py
is gone, no more trouble... except...

empty directories are not created.  I have 2 work directories that I
use for graphs and other dynamic images, /scadaGraphs and /tmp.  If
these directories are empty then they are not created in the egg.  By
putting in an empty file in those directories they were created in the
egg.  Since they are expected to be there in production it could be a
show stopper if they are not there.

> #2) Using ChartDirector in dev mode works fines when writing files out
> to the /images folder, but now that I am in production mode I can no
> longer do that.  What is the method I use to not only create files but
> to be able to access them with <img>?

I solved this issue by creating the file in /tmp and using os.system()
to move it where I could access it as an image file.

Hope these solutions help someone else out.

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

Reply via email to