Quantcast

What are these files ?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

What are these files ?

Robby
I have found quite a few files of the form *init.jpg in my narrated website folder/images.
These files are not referenced in the website report and contain garbage - so can be deleted to save space (10% of my website folder).

The question is - What are these files and why aren't they automatically deleted after use and/or stored elsewhere ?

GRAMPS Portable 3.4.5-1
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: What are these files ?

Robby
To fix the issue -

Find the following code in NarrativeWeb.py (abt line 4586)
Add comment tags (#) as shown and the *_init.jpg files won't be saved.

                        if self.report.archive:
                                    filed, dest = tempfile.mkstemp()
                                    os.write(filed, initial_image_data)
                                    os.close(filed)
                                    self.report.archive.add(dest, initial_image_path)
                            #    else:
                            #        filed = open(os.path.join(self.html_dir, initial_image_path), 'w')
                            #        filed.write(initial_image_data)
                            #        filed.close()
                                                       

Can see no differences before and after doing this.
These files serve no purpose that I can see but I stand to be corrected.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: What are these files ?

jerome

Robby,


Good catch!

Is it related to #bug 7414 ?

https://gramps-project.org/bugs/view.php?id=7414

Otherwise, maybe you can fill a bug report.

Thanks!


Le ven. 31 janv. 2014 at 9:34,Robby <[hidden email]> a écrit :

> To fix the issue -
>
> Find the following code in NarrativeWeb.py (abt line 4586)
> Add comment tags (#) as shown and the *_init.jpg files won't be saved.
>
> if self.report.archive:
>                                     filed, dest = tempfile.mkstemp()
>                                     os.write(filed,
> initial_image_data)
>                                     os.close(filed)
>                                     self.report.archive.add(dest,
> initial_image_path)
>                             #    else:
>                             #        filed =
> open(os.path.join(self.html_dir, initial_image_path), 'w')
>                             #        filed.write(initial_image_data)
>                             #        filed.close()
>
>
> Can see no differences before and after doing this.
> These files serve no purpose that I can see but I stand to be
> corrected.
>
>
>
> --
> View this message in context:
> http://gramps.1791082.n4.nabble.com/What-are-these-files-tp4664489p4664554.html
> Sent from the GRAMPS - User mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> WatchGuard Dimension instantly turns raw network data into actionable
> security intelligence. It gives you real-time visual feedback on key
> security issues and trends.  Skip the complicated setup - simply
> import
> a virtual appliance and go from zero to informed in seconds.
> http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
> _______________________________________________
> Gramps-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gramps-users
>


------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: What are these files ?

Robby
jerome,


You may have given the wrong reference - #bug 7414 is something else and isn't a bug as far as I can see as it works OK on GRAMPS 3.4.6

As suggested I have created a new bug report:  https://gramps-project.org/bugs/view.php?id=7426


Robby

Loading...