This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 6a11e821214616994e6eff5da7451eeccd58496b Mon Sep 17 00:00:00 2001 | |
From: Sathyanarayanan Gunasekaran <[email protected]> | |
Date: Sat, 24 Mar 2012 11:20:04 +0530 | |
Subject: [PATCH] Add keywords to tasks | |
Support associating keywords (text strings) with tasks | |
--- | |
modules/eden/cms.py | 42 ++++++++++++++++++++++++++++++++++++++++++ | |
1 files changed, 42 insertions(+), 0 deletions(-) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From d31badd2632d8f96ba1a71ca208c1b4498f6d5da Mon Sep 17 00:00:00 2001 | |
From: Sathyanarayanan Gunasekaran <[email protected]> | |
Date: Sat, 24 Mar 2012 11:20:04 +0530 | |
Subject: [PATCH] Add keywords to tasks | |
Support associating keywords (text strings) with tasks | |
--- | |
modules/eden/cms.py | 44 ++++++++++++++++++++++++++++++++++++++++++++ | |
1 files changed, 44 insertions(+), 0 deletions(-) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 199ce7b8f86c815500c0621610daaa2b4fac04ba Mon Sep 17 00:00:00 2001 | |
From: Sathyanarayanan Gunasekaran <[email protected]> | |
Date: Sat, 24 Mar 2012 11:55:39 +0530 | |
Subject: [PATCH] Move foreign key to cms_resource_keywords | |
--- | |
modules/eden/cms.py | 7 ++----- | |
1 files changed, 2 insertions(+), 5 deletions(-) | |
diff --git a/modules/eden/cms.py b/modules/eden/cms.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 899259984355efc37fbd4f322267c7b13167866b Mon Sep 17 00:00:00 2001 | |
From: Sathyanarayanan Gunasekaran <[email protected]> | |
Date: Sat, 24 Mar 2012 11:44:45 +0530 | |
Subject: [PATCH 2/2] Fix message_id() and add foreign key | |
--- | |
modules/eden/cms.py | 8 +++++++- | |
1 files changed, 7 insertions(+), 1 deletions(-) | |
diff --git a/modules/eden/cms.py b/modules/eden/cms.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 899259984355efc37fbd4f322267c7b13167866b Mon Sep 17 00:00:00 2001 | |
From: Sathyanarayanan Gunasekaran <[email protected]> | |
Date: Sat, 24 Mar 2012 11:44:45 +0530 | |
Subject: [PATCH 2/2] Fix message_id() and add foreign key | |
--- | |
modules/eden/cms.py | 8 +++++++- | |
1 files changed, 7 insertions(+), 1 deletions(-) | |
diff --git a/modules/eden/cms.py b/modules/eden/cms.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From e0a670f99818ceda88c29a35aa9aee361b3dc8a0 Mon Sep 17 00:00:00 2001 | |
From: Sathyanarayanan Gunasekaran <[email protected]> | |
Date: Sat, 24 Mar 2012 11:20:04 +0530 | |
Subject: [PATCH] Add keywords to tasks | |
Support associating keywords (text strings) with tasks | |
--- | |
modules/eden/cms.py | 41 +++++++++++++++++++++++++++++++++++++++++ | |
1 files changed, 41 insertions(+), 0 deletions(-) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From b92e68277fb207d9aad2482718235ee355d7a3ba Mon Sep 17 00:00:00 2001 | |
From: Sathyanarayanan Gunasekaran <[email protected]> | |
Date: Sat, 24 Mar 2012 09:04:41 +0530 | |
Subject: [PATCH] Add tag table | |
Add a tag table with link table to project_task table | |
--- | |
modules/eden/msg.py | 43 +++++++++++++++++++++++++++---------------- | |
1 files changed, 27 insertions(+), 16 deletions(-) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 3abd7fff210f2382f493517dc52aa2843277a230 Mon Sep 17 00:00:00 2001 | |
From: Sathyanarayanan Gunasekaran <[email protected]> | |
Date: Fri, 23 Mar 2012 23:29:18 +0530 | |
Subject: [PATCH] Add name_nice and name_nice_plural | |
All DB tables now have a "nice name" CRUD string setting to | |
simplify the construction of headers and other text elements. | |
This CRUD string supports both singular and plurals. | |
--- | |
models/00_tables.py | 4 +++- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def change_base(n, b): | |
rem = '' | |
while n > 0: | |
rem += str((n % b)) | |
n /= b | |
return rem[::-1] | |
def pal_base(n): | |
base = 2 | |
while 1: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def tail(filename, n=10): | |
'Return the last n lines of a file' | |
return deque(open(filename), n) |