Skip to content
Snippets Groups Projects
Commit 5f488f36 authored by Seblu's avatar Seblu
Browse files

minor syntax improvment

parent 809b3847
No related branches found
No related tags found
No related merge requests found
...@@ -30,7 +30,7 @@ seblu> list a-con #list disconnected account ...@@ -30,7 +30,7 @@ seblu> list a-con #list disconnected account
- TQL is a list statement mixed by separators - TQL is a list statement mixed by separators
- TQL build his object list from left to right (left parenthesis) - TQL build his object list from left to right (left parenthesis)
- Each statement update the builded list regarding his separators - Each statement update the builded list regarding his separators
- Selecting, sorting and choosing separators are followed by tags - Selecting, sorting and showing separators are followed by tags
- Limiting separators are followed by limiting conditions - Limiting separators are followed by limiting conditions
- TQL always return id tag - TQL always return id tag
- By default separators is & - By default separators is &
...@@ -47,7 +47,7 @@ seblu> list a-con #list disconnected account ...@@ -47,7 +47,7 @@ seblu> list a-con #list disconnected account
& selection intersection & selection intersection
| selection union | selection union
^ selection limit ^ selection limit
$ tag choosing $ tag showing
% tag sorting % tag sorting
== tags operators == == tags operators ==
......
...@@ -23,10 +23,12 @@ class CliHandler(RpcHandler): ...@@ -23,10 +23,12 @@ class CliHandler(RpcHandler):
@pure @pure
def quit(self, rpc=None): def quit(self, rpc=None):
'''Call back function on server disconnect'''
Printer().fatal("Disconnected from server!") Printer().fatal("Disconnected from server!")
@pure @pure
def get_tags(self, complete=None, partial=None): def get_tags(self, complete=None, partial=None):
'''Return a dict of local tags'''
# prepare work # prepare work
taglist = [ x[8:] for x in dir(self) if x.startswith("get_tag_") ] taglist = [ x[8:] for x in dir(self) if x.startswith("get_tag_") ]
ctag = set(taglist) if complete is None else set(complete) ctag = set(taglist) if complete is None else set(complete)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment