Displaying 3 results from an estimated 3 matches for "new_attr".
Did you mean:
new_attrs
2006 Apr 17
5
Finding out updated fields
Hi,
When we update a record via an update form, is there an easy way to find
out the fields that have been changed. If the update is successful, i
want to display:
The following fields have been changed:
field-name = new-value
...
Thanks,
Lantis.
--
Posted via http://www.ruby-forum.com/.
2010 Feb 11
1
[PATCH] Provides a reference implementation management server.
...""Function called by nose after all tests in this module ran"""
+ teardown_db()
+
+class ModelTest(object):
+ """Base unit test case for the models."""
+
+ klass = None
+ attrs = {}
+
+ def setup(self):
+ try:
+ new_attrs = {}
+ new_attrs.update(self.attrs)
+ new_attrs.update(self.do_get_dependencies())
+ self.obj = self.klass(**new_attrs)
+ DBSession.add(self.obj)
+ DBSession.flush()
+ return self.obj
+ except:
+ DBSession.rollback...
2010 Feb 17
0
[PATCH] Provides the new node lifecycle events.
...""Function called by nose after all tests in this module ran"""
- teardown_db()
-
-class ModelTest(object):
- """Base unit test case for the models."""
-
- klass = None
- attrs = {}
-
- def setup(self):
- try:
- new_attrs = {}
- new_attrs.update(self.attrs)
- new_attrs.update(self.do_get_dependencies())
- self.obj = self.klass(**new_attrs)
- DBSession.add(self.obj)
- DBSession.flush()
- return self.obj
- except:
- DBSession.rollback...