Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
script to list all todo on one page, sort by todo then sort by page name/todo
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
thomasman  
View profile  
 More options Oct 20, 6:01 am
From: thomasman <acn8a...@gmail.com>
Date: Tue, 20 Oct 2009 03:01:29 -0700 (PDT)
Local: Tues, Oct 20 2009 6:01 am
Subject: script to list all todo on one page, sort by todo then sort by page name/todo
++++ tagview script
++++%4 script: list todo sorted by todo name, then list todo sorted by
pagename. Lines 1-31 are used; listing always starts at line 32
<%4
line_to_begin = 31
editor.GotoLine(line_to_begin)
editor.AddText("\n")
editor.GotoLine(line_to_begin)
#add 1 blank lines, then go to line 31

todos=pwiki.wikiData.getTodos()
todos.sort(key=lambda x:x[1])
editor.AddText("++++Listing todo by wikiname then pagename; time:
"+lib.now()+"\n"+"<< \n")

#listing by todo name
for todo in todos:
                editor.AddText(" * "+(todo[0])+",  ")
                editor.AddText((todo[1])+"\n")
editor.AddText("----------List by pagename page name\n")

#listing by page name
todos.sort()
for todo in todos:
                editor.AddText(" * "+(todo[0])+",  ")
                editor.AddText((todo[1])+"\n")
editor.AddText(">> \n"+"----End listing, Time is  "+lib.now()+"\n")
%>

----Line 31
++++ Notes on todo listing script
 * This is a script I use to list my complete todo on a page, then I
can search todo's easily
 * Allow process autogenerated area & process inserted script in
wikidpad options/security
 * create a wiki page name for each month, e.g. tagview 0910 for Oct.
2009
 * copy line 2 to line 31 to this page, i.e. from ++++%4 script: to
----Line 31
 * use ctrl-4 to operate the script
 * The todo listing will start at line 32 onwards, it is enclosed with
quotes << >> and the list can be folded
 * when several todo lists are generated, delete the old lists at
bottom of page
 * The line "todos.sort(key=lambda x:x[1])" was copied from google
searches, it means sorting by column 2, I do not know python language
at all & can not explain details.
 * This script has been tested to work with ver. 1.9 rc08 and 2.0
beta07

 * I have a question, can wikidpad compact sqlite file be named
something other than "wiki.sli" ?
 * I wish to put several wiki.sli on same flash disk directory, and
they can not have same name.
 * Hope someone will enjoy this script.
 *


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google