From b07b71de3a4ba61ee95d7d2f5d03ea204b1d1396 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Thu, 9 Jun 2011 11:00:17 +0530 Subject: [PATCH 1/2] webnotes.conn.set also updates modified time --- cgi-bin/webnotes/db.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cgi-bin/webnotes/db.py b/cgi-bin/webnotes/db.py index 912d70437c..10939b79f9 100644 --- a/cgi-bin/webnotes/db.py +++ b/cgi-bin/webnotes/db.py @@ -246,8 +246,9 @@ class Database: return r and (len(r) > 1 and (i[0] for i in r) or r[0][0]) or None def set_value(self, dt, dn, field, val): + from webnotes.utils import now if dn and dt!=dn: - self.sql("update `tab"+dt+"` set `"+field+"`=%s where name=%s", (val, dn)) + self.sql("update `tab"+dt+"` set `"+field+"`=%s, modified=%s where name=%s", (val, dn, now())) else: if self.sql("select value from tabSingles where field=%s and doctype=%s", (field, dt)): self.sql("update tabSingles set value=%s where field=%s and doctype=%s", (val, field, dt)) From f12c8e8de7c5b3446db663e501f5283ea7165c7a Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Thu, 9 Jun 2011 11:04:06 +0530 Subject: [PATCH 2/2] added README --- README | 1 + 1 file changed, 1 insertion(+) create mode 100644 README diff --git a/README b/README new file mode 100644 index 0000000000..06857ed75a --- /dev/null +++ b/README @@ -0,0 +1 @@ +Web Notes Framework: A web application framework with client-side and server-side libraries including metadata definition, forms, virtual pages- Ideal for developing js driven database apps.