Skip to content

Instantly share code, notes, and snippets.

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(-)
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(-)
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
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
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
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(-)
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(-)
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 +++-
@gsathya
gsathya / k2.py
Created January 23, 2012 09:48 — forked from j605/k2.py
simple coding question
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:
@gsathya
gsathya / tail.py
Created January 18, 2012 15:32
Similar to tail
def tail(filename, n=10):
'Return the last n lines of a file'
return deque(open(filename), n)