http://code.google.com/p/pycopia/source/detail?r=528
Modified:
/trunk/storage/pycopia/db/cli.py
=======================================
--- /trunk/storage/pycopia/db/cli.py Sun Nov 20 03:03:42 2011
+++ /trunk/storage/pycopia/db/cli.py Tue Jan 24 21:47:16 2012
@@ -196,6 +196,8 @@
_session.rollback()
raise CLI.CommandQuit()
+ rollback = abort
+
class SessionRowCommands(RowCommands):
@@ -250,7 +252,7 @@
class RowWithAttributesCommands(RowCommands):
def attrib(self, argv):
- """attrib get|set|del|list name [value]
+ """attrib get|set|del|show|possible name [value]
Get, set, delete an attribute. You can also list available
attributes."""
cmd = argv[1]
if cmd.startswith("get"):
@@ -267,7 +269,7 @@
elif cmd.startswith("show"):
for attr in self._obj.attributes:
self._print(attr)
- elif cmd.startswith("lis"):
+ elif cmd.startswith("pos"):
self._print("Possible attributes:")
for name, basetype in
self._obj.__class__.get_attribute_list(_session):
self._print(" %s (%s)" % (name, basetype))