GTG

Drag'n'drop of nautilus could export task into a file

Bug #783831 reported by Izidor Matušov
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GTG
Won't Fix
Undecided
Unassigned

Bug Description

When I drag a task from my GTG and drop it into nautilus or other filemanagers, it creates a file with description of the task there. It could work as a way how to export a task into file system.

The format could be something simple like:
<file>
TASK: Make a sandwich for the trip
TAGS: @errands

Use the receipt from your aunt.
</file>

Izidor Matušov (izidor)
Changed in gtg:
assignee: nobody → Izidor Matušov (izidor)
Izidor Matušov (izidor)
Changed in gtg:
assignee: Izidor Matušov (izidor) → nobody
milestone: 0.4 → 0.3
Revision history for this message
Izidor Matušov (izidor) wrote :

This can be done using XDS - X Window Direct Save protocol

Information:
http://www.freedesktop.org/wiki/Specifications/XDS
http://en.wikipedia.org/wiki/Direct_Save_Protocol

An example of such an implementation is in Phonetooth http://code.google.com/p/phonetooth/,

Right there: http://code.google.com/p/phonetooth/source/browse/trunk/phonetooth/phonebrowserhandler.py

(Look for XdndDirectSave0)

Revision history for this message
Wolter HV (wolterh) wrote :

I think this should be done with a JSON document

Revision history for this message
Izidor Matušov (izidor) wrote :

Wolter> Why do you think it should be a JSON doument? I find a pseudo text document better:

<file>
Conquer the world
Start date: 2012-01-01
Due date: 2012-12-21
@work

We should finally get the world before its end!
- Make a plan
- Do it
</file>

If you want to export data in JSON format, you are able to do that using our DBus interface:
<code>
import dbus
import json

bus = dbus.SessionBus()
gtg_obj = bus.get_object('org.gnome.GTG', '/org/gnome/GTG')
gtg = dbus.Interface(gtg_obj, 'org.gnome.GTG')
print json.dumps(gtg.GetTasks(), indent=4)
</code>

I think it will be more intuitive to just dump a text version of a task...

Izidor Matušov (izidor)
Changed in gtg:
status: New → Confirmed
Izidor Matušov (izidor)
Changed in gtg:
milestone: 0.3 → 0.3.2
Izidor Matušov (izidor)
Changed in gtg:
milestone: 0.3.2 → 0.4
Izidor Matušov (izidor)
Changed in gtg:
milestone: 0.4 → none
importance: Wishlist → Undecided
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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