Branch: refs/heads/working
  Home:   https://github.com/dabodev/dabo
  Commit: db06c108b68c94e6cc1a3f6aadebe74f00423ee7
      
https://github.com/dabodev/dabo/commit/db06c108b68c94e6cc1a3f6aadebe74f00423ee7
  Author: Paul McNett <[email protected]>
  Date:   2013-01-09 (Wed, 09 Jan 2013)

  Changed paths:
    M dabo/lib/reportWriter.py

  Log Message:
  -----------
  Improved reportwriter's ability to locate images.

This fixes 2 problems:

1) First try self.Application.HomeDirectory if available;
   only if that fails try self.HomeDirectory which is defined
   as the location of the rfxml file.

2) If the end-result is a path that has both windows-style and
   unix-style separators, make them consistent with whatever
   platform we are running on.

I had relative paths to image files coming from a database
field, and the paths were stored in the database using unix
slash separators, but running the app on Windows resulted in
paths like "c:\imagelibrary\frames/h_111.png" which confused
things and resulted in an expr error on the pdf instead of the
image.





--- StripMime Report -- processed MIME parts ---
multipart/mixed
  text/plain (text body -- kept)
---

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to