#for $subtask in $task.subtasks:
$task_template($subtask, 'subtask')
#end for
#end if
#end def
Tags Key
#for $tag in $plugin_api.get_requester().get_tag_tree().get_all_nodes():
#set $tag_obj = $plugin_api.get_requester().get_tag_tree().get_node($tag)
#if $tag_obj.is_special():
#continue
#end if
$tag.replace('@', '')
#end for
##This is just to avoid annoying characters around. If you don't believe me,
## just take it out
#import re
#def remove_html_tags($data):
##Removing subtask anchor points
#set $p = $re.compile(r'^.*[0-9]*@[0-9]*.*$',$re.MULTILINE)
#set $data = $p.sub('', $data)
##Removing tags
#set $p = $re.compile(r'@[a-z,0-9]*',$re.IGNORECASE)
#set $data = $p.sub('', $data)
##Removing and
#set $p = $re.compile(r'<.*?>')
#set $data = $p.sub('', $data)
##Removing lines only with commas (tags lines)
#set $p = $re.compile(r'^[\s,\,]*$')
#return $p.sub('', $data).strip().strip(',')
#end def
gtg-0.6/GTG/plugins/export/export_templates/template_simple.html 0000664 0000000 0000000 00000012725 14207764332 0025253 0 ustar 00root root 0000000 0000000
#from GTG.gtk.colors import get_colored_tag_markup
Things to do
#for $task in $tasks
$task_template($task)
#end for
#def task_template($task)
#if $task.has_title
$task.title
#if $task.has_tags
(#slurp
#for $tag in $task.tags:
$get_colored_tag_markup($plugin_api.get_requester(), $tag, True) #slurp
#end for
)#slurp
#end if
#end if
#if $task.has_due_date
Due: $task.due_date
#end if
#if $task.has_text
$remove_html_tags($task.text)
#end if
#if $task.has_subtasks
#for $subtask in $task.subtasks:
$task_template($subtask)
#end for
#end if
#end def
##This is just to avoid annoying characters around. If you don't believe me,
## just take it out
#import re
#def remove_html_tags($data):
#return $data
##Removing subtask anchor points
#set $p = $re.compile(r'^.*[0-9]*@[0-9]*.*$',$re.MULTILINE)
#set $data = $p.sub('', $data)
##Removing tags
#set $p = $re.compile(r'@[a-z,0-9]*',$re.IGNORECASE)
#set $data = $p.sub('', $data)
##Removing and
#set $p = $re.compile(r'<.*?>')
#set $data = $p.sub('', $data)
##Removing lines only with commas (tags lines)
#set $p = $re.compile(r'^[\s,\,]*$')
#return $p.sub('', $data)
#end def
gtg-0.6/GTG/plugins/export/export_templates/template_statusrpt.txt 0000664 0000000 0000000 00000002735 14207764332 0025706 0 ustar 00root root 0000000 0000000 ###
## -----------------------------------------------------------------------------
## Getting Things GNOME! - a personal organizer for the GNOME desktop
## Copyright (c) 2008-2013 - Lionel Dricot & Bertrand Rousseau
##
## This program is free software: you can redistribute it and/or modify it under
## the terms of the GNU General Public License as published by the Free Software
## Foundation, either version 3 of the License, or (at your option) any later
## version.
##
## This program is distributed in the hope that it will be useful, but WITHOUT
## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
## FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
## details.
##
## You should have received a copy of the GNU General Public License along with
## this program. If not, see .
## -----------------------------------------------------------------------------
##
##So you want to write your own template for Getting things GNOME?
## Read template_simple.html for a quick tutorial, this one is a bit
## harder to understand, as it cannot be indented
##
##
##
#import re
##
#def task_template($task, $space_num):
#set spaces = " " * $space_num
#if $task.has_title
$task.title#slurp
#end if
##
#if $task.has_subtasks
#for $subtask in $task.subtasks:
$spaces * $task_template($subtask, $space_num + 2)
#end for
#end if
#end def
##
##
##
Status Report:
#for $task in $tasks:
* $task_template($task, 3)
#end for
##
##
gtg-0.6/GTG/plugins/export/export_templates/template_textual.txt 0000664 0000000 0000000 00000005445 14207764332 0025324 0 ustar 00root root 0000000 0000000 ###
## -----------------------------------------------------------------------------
## Getting Things GNOME! - a personal organizer for the GNOME desktop
## Copyright (c) 2008-2013 - Lionel Dricot & Bertrand Rousseau
##
## This program is free software: you can redistribute it and/or modify it under
## the terms of the GNU General Public License as published by the Free Software
## Foundation, either version 3 of the License, or (at your option) any later
## version.
##
## This program is distributed in the hope that it will be useful, but WITHOUT
## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
## FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
## details.
##
## You should have received a copy of the GNU General Public License along with
## this program. If not, see .
## -----------------------------------------------------------------------------
##
##So you want to write your own template for Getting things GNOME?
## Read template_simple.html for a quick tutorial, this one is a bit
## harder to understand, as it cannot be indented
##
##
##
#import re
#def remove_html_tags($data):
##Removing subtask anchor points
#set $p = $re.compile(r'^.*[0-9]*@[0-9]*\n*',$re.MULTILINE)
#set $data = $p.sub('', $data)
##Removing tags
#set $p = $re.compile(r'@[a-z,0-9]*',$re.IGNORECASE)
#set $data = $p.sub('', $data)
##Removing and
#set $p = $re.compile(r'<.*?>')
#set $data = $p.sub('', $data)
##Removing lines only with commas (tags lines)
#set $p = $re.compile(r'^[\s,\,]*$')
#return $p.sub('', $data)
#end def
##
##
#import htmllib
#def html_unescape($text):
#set $p = $htmllib.HTMLParser(None)
$p.save_bgn()
$p.feed($text)
#return $p.save_end()
#end def
##
##
#def task_template($task, $space_num):
#set spaces = " " * $space_num
#if $task.has_title
$html_unescape($task.title)#slurp
#if $task.has_tags
(#slurp
#for $tag in $task.tags:
$tag #slurp
#end for
)#slurp
#if $task.has_due_date
due: $task.due_date
#end if
#end if
#end if
#if $task.has_text
#set $text =$remove_html_tags($task.text)
#set $text = $html_unescape($text)
##
## Formatting the text to be shorter than 80 chars
##
#while $len($text)>0:
#set $text = $text.lstrip('\n')
#if $len($text)<=80:
#set next_len = $len($text)
#else:
#set next_len = max([80 - $space_num,50])
#end if
#set $next_cr = $text.find('\n')
#if $next_cr < $next_len and $next_cr >0:
$spaces#slurp
$text[:$next_cr]
#set $text = $text[$next_cr:]
#else:
$spaces#slurp
$text[:$next_len]
#set $text = $text[$next_len:]
#end if
#end while
##
##
##
#end if
##
#if $task.has_subtasks
#for $subtask in $task.subtasks:
$spaces - $task_template($subtask, $space_num + 2)
#end for
#end if
#end def
##
##
##
TODO LIST:
#for $task in $tasks:
* $task_template($task, 3)
#end for
##
##
gtg-0.6/GTG/plugins/export/export_templates/thumbnail_pocketmod.png 0000664 0000000 0000000 00000022154 14207764332 0025734 0 ustar 00root root 0000000 0000000 PNG
IHDR @ | !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