GTG

Print function to print task list

Bug #318714 reported by Bertrand Rousseau
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
GTG
Fix Released
Wishlist
Luca Invernizzi

Bug Description

We should be able to print the displayed task list. It comes handy sometimes to have a sheet of paper to work on. In order to do this we should first some kind of printing template.

This is surely not an easy functionality, but it is an important one.

Related branches

Changed in gtg:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Étienne BERSAC (bersace) wrote :

Hi,

Also printing the done list would hep when you have to report. I could help in this as i already did printing with pygtk (quite easy).

Regards,
Étienne.

Revision history for this message
chab (chab-chab) wrote :

Hello,
i developed a little plugin to do that. Basically it does :
- Exports the tasks into a text file
- Then opens this text file with gedit (or any other text editor)

With a dialog window you can choose what do you want to export :
- Upcoming tasks
- Done tasks until XXX days ago (where the choose the XXX value)
- Which text editor you want to open the text file generated

Once your tasks export and open in gedit (default text editor) you can modify them, copy/paste to another soft (openoffice, thunderbird...) or do whatever you want before printing.

I'm really not a developper (first time i use python and gtk) so surely the code is not very pretty, but it seems to work for me and that why i wanted to share it with you.

To install it :
1. you need the version 0.1.2-dev. If you don't have it install bzr (apt-get install bzr) and launch this command :
bzr branch lp:gtg
2. Go in gtg/GTG/plugins folder
3. copy printTasksToFile.gtg-plugin to this folder
4. always in the plugins folder, create a subfolder printTasksToFile
5. Go in this new folder (gtg/GTG/plugins/printTasksToFile)
6. copy the 3 other files

Revision history for this message
chab (chab-chab) wrote :

sorry i just posted 1 file... here are the 3 other files

Revision history for this message
Bertrand Rousseau (bertrand-rousseau) wrote : Re: [Bug 318714] Re: Print function to print task list

chab > Thanks for this plugin. However I think that the print function
should be included in GTG, and not be a plugin, so I cannot close this
bug. Maybe you could refer to this plug-in on the GTG plugin page on
GNOME live wiki: http://live.gnome.org/gtg/plugins

On Wed, Sep 2, 2009 at 5:33 PM, chab<email address hidden> wrote:
> sorry i just posted 1 file... here are the 3 other files
>
> ** Attachment added: "printTasksToFile.tar.bz2"
>   http://launchpadlibrarian.net/31247396/printTasksToFile.tar.bz2
>
> --
> Print function to print task list
> https://bugs.launchpad.net/bugs/318714
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
Bertrand Rousseau
Place communale 1, 1450 Chastre, Belgium
e-mail : <email address hidden>
tel : +32 485 96 69 86

Revision history for this message
chab (chab-chab) wrote :

Sure it doesn't implement the print feature, but at least give a posibility to export the tasks list and then to copy/paste or print it.
As suggested, I ll add it to the plugins page

Revision history for this message
Luca Invernizzi (invernizzi) wrote :

Hi chab, I tested your plugin. It works nicely: it is something we can expand on.
I've uploaded your work to gtg contributions, you can check it out by doing
"bzr branch lp:~gtg-user/gtg/printToFile"
I encourage you to keep working on it, as your python skills will improve dramatically if you work on some real-world code.
If you keep on writing code, work in the directory created by the previous command. Make sure that when you finish working you issue this command
"bzr commit"
that saves your work into bazaar (you will need to write a brief comment on what you have done).
When you feel ready, issue
"bzr push lp:~gtg-user/gtg/printToFile"
to upload your modifications to gtg.

Revision history for this message
Luca Invernizzi (invernizzi) wrote :

Just to be clear: I agree with Bertrand that this function should not be provided by a plugin. However, it should not be too hard to integrate that in the core of gtg.

Changed in gtg:
assignee: nobody → Luca Invernizzi (invernizzi)
status: Confirmed → Won't Fix
status: Won't Fix → In Progress
milestone: none → 0.2
Revision history for this message
Luca Invernizzi (invernizzi) wrote :

I wrote down a proposition for the export/print function. It's in branch lp:~gtg-user/gtg/export, please test it and tell me what you think.
You can find it in the "tasks" menu.

list of features:
 * lets you chose between exporting a tag or all tasks (I'm thinking about extending it to some kind of boolean expression on tags (@TODO OR @URGENT AND NOT @LONDON)
 * lets you chose an export template from a list. Writing a template is easy, and a user can put a template in its xdg directory if he wants
 * template can be any type of plain text files (txt, html, tex -- of course, you'll have to compile it)
 * templates are opened via xdg open

Revision history for this message
Luca Invernizzi (invernizzi) wrote :

I forgot. I have a bug on reopening the export window after having closed it. Anyone with GTK experience, care to help? Thanks

Revision history for this message
Luca Invernizzi (invernizzi) wrote :

in trunk

Changed in gtg:
status: In Progress → Fix Committed
Changed in gtg:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.