keywords.py (pymol-v1.8.6.0.tar.bz2) | : | keywords.py (pymol-v2.1.0.tar.bz2) | ||
---|---|---|---|---|
from . import parsing | from . import parsing | |||
cmd = __import__("sys").modules["pymol.cmd"] | cmd = __import__("sys").modules["pymol.cmd"] | |||
def get_command_keywords(self_cmd=cmd): | def get_command_keywords(self_cmd=cmd): | |||
import pymol.diagnosing | ||||
return { | return { | |||
# keyword : [ command, # min_arg, max_arg, separator, mode ] | # keyword : [ command, # min_arg, max_arg, separator, mode ] | |||
# NOTE: min_arg, max_arg, and separator, are hold-overs from the | # NOTE: min_arg, max_arg, and separator, are hold-overs from the | |||
# original PyMOL parser which will eventually be removed. | # original PyMOL parser which will eventually be removed. | |||
# all new commands should use NO_CHECK or STRICT modes | # all new commands should use NO_CHECK or STRICT modes | |||
# which make much better use of built-in python features. | # which make much better use of built-in python features. | |||
'abort' : [ self_cmd.abort , 0 , 0 , '' , parsing.A BORT ], | 'abort' : [ self_cmd.abort , 0 , 0 , '' , parsing.A BORT ], | |||
'accept' : [ self_cmd.accept , 0 , 0 , '' , parsing.S TRICT ], | 'accept' : [ self_cmd.accept , 0 , 0 , '' , parsing.S TRICT ], | |||
'alias' : [ self_cmd.alias , 0 , 0 , '' , parsing.L ITERAL1 ], # insecure | 'alias' : [ self_cmd.alias , 0 , 0 , '' , parsing.L ITERAL1 ], # insecure | |||
skipping to change at line 49 | skipping to change at line 50 | |||
'check' : [ self_cmd.check , 0 , 0 , '' , parsing.S TRICT ], | 'check' : [ self_cmd.check , 0 , 0 , '' , parsing.S TRICT ], | |||
'clean' : [ self_cmd.clean , 0 , 0 , '' , parsing.S TRICT ], | 'clean' : [ self_cmd.clean , 0 , 0 , '' , parsing.S TRICT ], | |||
'class' : [ self_cmd.python_help , 0 , 0 , '' , parsing.P YTHON ], | 'class' : [ self_cmd.python_help , 0 , 0 , '' , parsing.P YTHON ], | |||
'clip' : [ self_cmd.clip , 0 , 0 , '' , parsing.S TRICT ], | 'clip' : [ self_cmd.clip , 0 , 0 , '' , parsing.S TRICT ], | |||
'cls' : [ self_cmd.cls , 0 , 0 , '' , parsing.S TRICT ], | 'cls' : [ self_cmd.cls , 0 , 0 , '' , parsing.S TRICT ], | |||
'_ctrl' : [ self_cmd._ctrl , 0 , 0 , '' , parsing.S TRICT ], | '_ctrl' : [ self_cmd._ctrl , 0 , 0 , '' , parsing.S TRICT ], | |||
'_ctsh' : [ self_cmd._ctsh , 0 , 0 , '' , parsing.S TRICT ], | '_ctsh' : [ self_cmd._ctsh , 0 , 0 , '' , parsing.S TRICT ], | |||
'color' : [ self_cmd.color , 0 , 0 , '' , parsing.S TRICT ], | 'color' : [ self_cmd.color , 0 , 0 , '' , parsing.S TRICT ], | |||
'config_mouse' : [ self_cmd.config_mouse , 0 , 0 , '' , parsing.S TRICT ], | 'config_mouse' : [ self_cmd.config_mouse , 0 , 0 , '' , parsing.S TRICT ], | |||
'copy' : [ self_cmd.copy , 0 , 0 , '' , parsing.L EGACY ], | 'copy' : [ self_cmd.copy , 0 , 0 , '' , parsing.L EGACY ], | |||
'copy_to' : [ self_cmd.copy_to , 0 , 0 , '' , parsing.S TRICT ], | ||||
'count_atoms' : [ self_cmd.count_atoms , 0 , 0 , '' , parsing.S TRICT ], | 'count_atoms' : [ self_cmd.count_atoms , 0 , 0 , '' , parsing.S TRICT ], | |||
'count_frames' : [ self_cmd.count_frames , 0 , 0 , '' , parsing.S TRICT ], | 'count_frames' : [ self_cmd.count_frames , 0 , 0 , '' , parsing.S TRICT ], | |||
'count_states' : [ self_cmd.count_states , 0 , 0 , '' , parsing.S TRICT ], | 'count_states' : [ self_cmd.count_states , 0 , 0 , '' , parsing.S TRICT ], | |||
'count_discrete': [ self_cmd.count_discrete , 0 , 0 , '' , parsing.S TRICT ], | 'count_discrete': [ self_cmd.count_discrete , 0 , 0 , '' , parsing.S TRICT ], | |||
'cycle_valence' : [ self_cmd.cycle_valence , 0 , 0 , '' , parsing.S TRICT ], | 'cycle_valence' : [ self_cmd.cycle_valence , 0 , 0 , '' , parsing.S TRICT ], | |||
'create' : [ self_cmd.create , 0 , 0 , '' , parsing.L EGACY ], | 'create' : [ self_cmd.create , 0 , 0 , '' , parsing.L EGACY ], | |||
'decline' : [ self_cmd.decline , 0 , 0 , '' , parsing.S TRICT ], | 'decline' : [ self_cmd.decline , 0 , 0 , '' , parsing.S TRICT ], | |||
'delete' : [ self_cmd.delete , 0 , 0 , '' , parsing.S TRICT ], | 'delete' : [ self_cmd.delete , 0 , 0 , '' , parsing.S TRICT ], | |||
'def' : [ self_cmd.python_help , 0 , 0 , '' , parsing.P YTHON ], | 'def' : [ self_cmd.python_help , 0 , 0 , '' , parsing.P YTHON ], | |||
'del' : [ self_cmd.python_help , 0 , 0 , '' , parsing.P YTHON ], | 'del' : [ self_cmd.python_help , 0 , 0 , '' , parsing.P YTHON ], | |||
'deprotect' : [ self_cmd.deprotect , 0 , 0 , '' , parsing.S TRICT ], | 'deprotect' : [ self_cmd.deprotect , 0 , 0 , '' , parsing.S TRICT ], | |||
'desaturate' : [ self_cmd.desaturate , 0 , 0 , '' , parsing.S TRICT ], | 'desaturate' : [ self_cmd.desaturate , 0 , 0 , '' , parsing.S TRICT ], | |||
'deselect' : [ self_cmd.deselect , 0 , 0 , '' , parsing.S TRICT ], | 'deselect' : [ self_cmd.deselect , 0 , 0 , '' , parsing.S TRICT ], | |||
'diagnostics' : [ pymol.diagnosing.diagnostics,0 , 0 , '' , parsing.S TRICT ], | ||||
'dihedral' : [ self_cmd.dihedral , 0 , 0 , '' , parsing.S TRICT ], | 'dihedral' : [ self_cmd.dihedral , 0 , 0 , '' , parsing.S TRICT ], | |||
'dir' : [ self_cmd.ls , 0 , 0 , '' , parsing.S TRICT ], | 'dir' : [ self_cmd.ls , 0 , 0 , '' , parsing.S TRICT ], | |||
'disable' : [ self_cmd.disable , 0 , 0 , '' , parsing.S TRICT ], | 'disable' : [ self_cmd.disable , 0 , 0 , '' , parsing.S TRICT ], | |||
'distance' : [ self_cmd.distance , 0 , 0 , '' , parsing.L EGACY ], | 'distance' : [ self_cmd.distance , 0 , 0 , '' , parsing.L EGACY ], | |||
'drag' : [ self_cmd.drag , 0 , 0 , '' , parsing.S TRICT ], | 'drag' : [ self_cmd.drag , 0 , 0 , '' , parsing.S TRICT ], | |||
'draw' : [ self_cmd.draw , 0 , 0 , '' , parsing.S TRICT ], | 'draw' : [ self_cmd.draw , 0 , 0 , '' , parsing.S TRICT ], | |||
'dss' : [ self_cmd.dss , 0 , 0 , '' , parsing.S TRICT ], | 'dss' : [ self_cmd.dss , 0 , 0 , '' , parsing.S TRICT ], | |||
'dump' : [ self_cmd.dump , 0 , 0 , '' , parsing.S TRICT ], | 'dump' : [ self_cmd.dump , 0 , 0 , '' , parsing.S TRICT ], | |||
'edit' : [ self_cmd.edit , 0 , 0 , '' , parsing.S TRICT ], | 'edit' : [ self_cmd.edit , 0 , 0 , '' , parsing.S TRICT ], | |||
'edit_mode' : [ self_cmd.edit_mode , 0 , 0 , '' , parsing.S TRICT ], | 'edit_mode' : [ self_cmd.edit_mode , 0 , 0 , '' , parsing.S TRICT ], | |||
skipping to change at line 180 | skipping to change at line 183 | |||
'mpng' : [ self_cmd.mpng , 0 , 0 , '' , parsing.S ECURE ], | 'mpng' : [ self_cmd.mpng , 0 , 0 , '' , parsing.S ECURE ], | |||
'mplay' : [ self_cmd.mplay , 0 , 0 , '' , parsing.S TRICT ], | 'mplay' : [ self_cmd.mplay , 0 , 0 , '' , parsing.S TRICT ], | |||
'mtoggle' : [ self_cmd.mtoggle , 0 , 0 , '' , parsing.S TRICT ], | 'mtoggle' : [ self_cmd.mtoggle , 0 , 0 , '' , parsing.S TRICT ], | |||
'mstop' : [ self_cmd.mstop , 0 , 0 , '' , parsing.S TRICT ], | 'mstop' : [ self_cmd.mstop , 0 , 0 , '' , parsing.S TRICT ], | |||
'mclear' : [ self_cmd.mclear , 0 , 0 , '' , parsing.S TRICT ], | 'mclear' : [ self_cmd.mclear , 0 , 0 , '' , parsing.S TRICT ], | |||
'middle' : [ self_cmd.middle , 0 , 0 , '' , parsing.S TRICT ], | 'middle' : [ self_cmd.middle , 0 , 0 , '' , parsing.S TRICT ], | |||
'mmatrix' : [ self_cmd.mmatrix , 0 , 0 , '' , parsing.S TRICT ], | 'mmatrix' : [ self_cmd.mmatrix , 0 , 0 , '' , parsing.S TRICT ], | |||
'mouse' : [ self_cmd.mouse , 0 , 0 , '' , parsing.S TRICT ], | 'mouse' : [ self_cmd.mouse , 0 , 0 , '' , parsing.S TRICT ], | |||
'morph' : [ self_cmd.morph , 0 , 0 , '' , parsing.S TRICT ], | 'morph' : [ self_cmd.morph , 0 , 0 , '' , parsing.S TRICT ], | |||
'multisave' : [ self_cmd.multisave , 0 , 0 , '' , parsing.S TRICT ], | 'multisave' : [ self_cmd.multisave , 0 , 0 , '' , parsing.S TRICT ], | |||
'multifilesave' : [ self_cmd.multifilesave , 0 , 0 , '' , parsing.S TRICT ], | ||||
'mview' : [ self_cmd.mview , 0 , 0 , '' , parsing.S TRICT ], | 'mview' : [ self_cmd.mview , 0 , 0 , '' , parsing.S TRICT ], | |||
'order' : [ self_cmd.order , 0 , 0 , '' , parsing.S TRICT ], | 'order' : [ self_cmd.order , 0 , 0 , '' , parsing.S TRICT ], | |||
'origin' : [ self_cmd.origin , 0 , 0 , '' , parsing.S TRICT ], | 'origin' : [ self_cmd.origin , 0 , 0 , '' , parsing.S TRICT ], | |||
'orient' : [ self_cmd.orient , 0 , 0 , '' , parsing.S TRICT ], | 'orient' : [ self_cmd.orient , 0 , 0 , '' , parsing.S TRICT ], | |||
'overlap' : [ self_cmd.overlap , 0 , 0 , '' , parsing.S TRICT ], | 'overlap' : [ self_cmd.overlap , 0 , 0 , '' , parsing.S TRICT ], | |||
'pair_fit' : [ self_cmd.pair_fit , 0 , 0 , '' , parsing.S TRICT ], | 'pair_fit' : [ self_cmd.pair_fit , 0 , 0 , '' , parsing.S TRICT ], | |||
'pass' : [ self_cmd.python_help , 0 , 0 , '' , parsing.P YTHON ], | 'pass' : [ self_cmd.python_help , 0 , 0 , '' , parsing.P YTHON ], | |||
'phi_psi' : [ self_cmd.phi_psi , 0 , 0 , '' , parsing.S TRICT ], | 'phi_psi' : [ self_cmd.phi_psi , 0 , 0 , '' , parsing.S TRICT ], | |||
'pop' : [ self_cmd.pop , 0 , 0 , '' , parsing.S TRICT ], | 'pop' : [ self_cmd.pop , 0 , 0 , '' , parsing.S TRICT ], | |||
'protect' : [ self_cmd.protect , 0 , 0 , '' , parsing.S TRICT ], | 'protect' : [ self_cmd.protect , 0 , 0 , '' , parsing.S TRICT ], | |||
skipping to change at line 268 | skipping to change at line 272 | |||
'translate' : [ self_cmd.translate , 0 , 0 , '' , parsing.S TRICT ], | 'translate' : [ self_cmd.translate , 0 , 0 , '' , parsing.S TRICT ], | |||
'try' : [ self_cmd.python_help , 0 , 0 , '' , parsing.P YTHON ], | 'try' : [ self_cmd.python_help , 0 , 0 , '' , parsing.P YTHON ], | |||
'turn' : [ self_cmd.turn , 0 , 0 , '' , parsing.S TRICT ], | 'turn' : [ self_cmd.turn , 0 , 0 , '' , parsing.S TRICT ], | |||
'quit' : [ self_cmd.quit , 0 , 0 , '' , parsing.S TRICT ], | 'quit' : [ self_cmd.quit , 0 , 0 , '' , parsing.S TRICT ], | |||
'_quit' : [ self_cmd._quit , 0 , 0 , '' , parsing.S TRICT ], | '_quit' : [ self_cmd._quit , 0 , 0 , '' , parsing.S TRICT ], | |||
'png' : [ self_cmd.png , 0 , 0 , '' , parsing.S ECURE ], | 'png' : [ self_cmd.png , 0 , 0 , '' , parsing.S ECURE ], | |||
'unbond' : [ self_cmd.unbond , 0 , 0 , '' , parsing.S TRICT ], | 'unbond' : [ self_cmd.unbond , 0 , 0 , '' , parsing.S TRICT ], | |||
'unpick' : [ self_cmd.unpick , 0 , 0 , '' , parsing.S TRICT ], | 'unpick' : [ self_cmd.unpick , 0 , 0 , '' , parsing.S TRICT ], | |||
'undo' : [ self_cmd.undo , 0 , 0 , '' , parsing.S TRICT ], | 'undo' : [ self_cmd.undo , 0 , 0 , '' , parsing.S TRICT ], | |||
'ungroup' : [ self_cmd.ungroup , 0 , 0 , '' , parsing.S TRICT ], | 'ungroup' : [ self_cmd.ungroup , 0 , 0 , '' , parsing.S TRICT ], | |||
'uniquify' : [ self_cmd.uniquify , 0 , 0 , '' , parsing.S TRICT ], | ||||
'unmask' : [ self_cmd.unmask , 0 , 0 , '' , parsing.S TRICT ], | 'unmask' : [ self_cmd.unmask , 0 , 0 , '' , parsing.S TRICT ], | |||
'unset' : [ self_cmd.unset , 0 , 0 , '' , parsing.S TRICT ], | 'unset' : [ self_cmd.unset , 0 , 0 , '' , parsing.S TRICT ], | |||
'unset_bond' : [ self_cmd.unset_bond , 0 , 0 , '' , parsing.S TRICT ], | 'unset_bond' : [ self_cmd.unset_bond , 0 , 0 , '' , parsing.S TRICT ], | |||
'unset_deep' : [ self_cmd.unset_deep , 0 , 0 , '' , parsing.S TRICT ], | 'unset_deep' : [ self_cmd.unset_deep , 0 , 0 , '' , parsing.S TRICT ], | |||
'update' : [ self_cmd.update , 0 , 0 , '' , parsing.S TRICT ], | 'update' : [ self_cmd.update , 0 , 0 , '' , parsing.S TRICT ], | |||
'valence' : [ self_cmd.valence , 0 , 0 , '' , parsing.S TRICT ], | 'valence' : [ self_cmd.valence , 0 , 0 , '' , parsing.S TRICT ], | |||
'vdw_fit' : [ self_cmd.vdw_fit , 0 , 0 , '' , parsing.S TRICT ], | 'vdw_fit' : [ self_cmd.vdw_fit , 0 , 0 , '' , parsing.S TRICT ], | |||
'view' : [ self_cmd.view , 0 , 0 , '' , parsing.S TRICT ], | 'view' : [ self_cmd.view , 0 , 0 , '' , parsing.S TRICT ], | |||
'viewport' : [ self_cmd.viewport , 0 , 0 , '' , parsing.S TRICT ], | 'viewport' : [ self_cmd.viewport , 0 , 0 , '' , parsing.S TRICT ], | |||
'volume' : [ self_cmd.volume , 0 , 0 , '' , parsing.S TRICT ], | 'volume' : [ self_cmd.volume , 0 , 0 , '' , parsing.S TRICT ], | |||
End of changes. 5 change blocks. | ||||
0 lines changed or deleted | 5 lines changed or added |