[pycopia] r528 committed - Small improvement to docs and more consistent command names.

2 views
Skip to first unread message

pyc...@googlecode.com

unread,
Jan 25, 2012, 12:48:12 AM1/25/12
to pyc...@googlegroups.com
Revision: 528
Author: keith.dart
Date: Tue Jan 24 21:47:16 2012
Log: Small improvement to docs and more consistent command names.

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))

Reply all
Reply to author
Forward
0 new messages