Revision 3bd0f3d8 lib/rapi/baserlib.py
b/lib/rapi/baserlib.py | ||
---|---|---|
1 | 1 |
# |
2 | 2 |
# |
3 | 3 |
|
4 |
# Copyright (C) 2006, 2007, 2008 Google Inc. |
|
4 |
# Copyright (C) 2006, 2007, 2008, 2012 Google Inc.
|
|
5 | 5 |
# |
6 | 6 |
# This program is free software; you can redistribute it and/or modify |
7 | 7 |
# it under the terms of the GNU General Public License as published by |
... | ... | |
469 | 469 |
is defined at class level. Subclasses can define a C{Get$Method$OpInput} |
470 | 470 |
method to do their own opcode input processing (e.g. for static values). The |
471 | 471 |
C{$METHOD$_RENAME} variable defines which values are renamed (see |
472 |
L{FillOpcode}). |
|
472 |
L{baserlib.FillOpcode}).
|
|
473 | 473 |
|
474 | 474 |
@cvar GET_OPCODE: Set this to a class derived from L{opcodes.OpCode} to |
475 | 475 |
automatically generate a GET handler submitting the opcode |
476 | 476 |
@cvar GET_RENAME: Set this to rename parameters in the GET handler (see |
477 |
L{FillOpcode}) |
|
477 |
L{baserlib.FillOpcode})
|
|
478 | 478 |
@ivar GetGetOpInput: Define this to override the default method for |
479 | 479 |
getting opcode parameters (see L{baserlib.OpcodeResource._GetDefaultData}) |
480 | 480 |
|
481 | 481 |
@cvar PUT_OPCODE: Set this to a class derived from L{opcodes.OpCode} to |
482 | 482 |
automatically generate a PUT handler submitting the opcode |
483 | 483 |
@cvar PUT_RENAME: Set this to rename parameters in the PUT handler (see |
484 |
L{FillOpcode}) |
|
484 |
L{baserlib.FillOpcode})
|
|
485 | 485 |
@ivar GetPutOpInput: Define this to override the default method for |
486 | 486 |
getting opcode parameters (see L{baserlib.OpcodeResource._GetDefaultData}) |
487 | 487 |
|
488 | 488 |
@cvar POST_OPCODE: Set this to a class derived from L{opcodes.OpCode} to |
489 | 489 |
automatically generate a POST handler submitting the opcode |
490 | 490 |
@cvar POST_RENAME: Set this to rename parameters in the DELETE handler (see |
491 |
L{FillOpcode}) |
|
491 |
L{baserlib.FillOpcode})
|
|
492 | 492 |
@ivar GetPostOpInput: Define this to override the default method for |
493 | 493 |
getting opcode parameters (see L{baserlib.OpcodeResource._GetDefaultData}) |
494 | 494 |
|
495 | 495 |
@cvar DELETE_OPCODE: Set this to a class derived from L{opcodes.OpCode} to |
496 | 496 |
automatically generate a GET handler submitting the opcode |
497 | 497 |
@cvar DELETE_RENAME: Set this to rename parameters in the DELETE handler (see |
498 |
L{FillOpcode}) |
|
498 |
L{baserlib.FillOpcode})
|
|
499 | 499 |
@ivar GetDeleteOpInput: Define this to override the default method for |
500 | 500 |
getting opcode parameters (see L{baserlib.OpcodeResource._GetDefaultData}) |
501 | 501 |
|
Also available in: Unified diff