Пример #1
0
 def update(ctx=annotate.Context(),
            id=annotate.Integer(),
            oldstate=annotate.Integer()):
     pass
Пример #2
0
        class FormPage(rend.Page):
            bind_test1 = defer.succeed(([('foo', annotate.Integer())]))

            def test1(self, foo):
                return foo
Пример #3
0
 def delete(ctx=annotate.Context(), id=annotate.Integer()):
     pass
Пример #4
0
 def bind_test4(self, ctx):
     return defer.succeed([('foo', annotate.String()),
                           ('bar', annotate.Integer())])
Пример #5
0
 def bind_test5(self, ctx):
     return defer.succeed(annotate.MethodBinding('test5', annotate.Method(
         arguments=[annotate.Argument('foo', annotate.String()),
                    annotate.Argument('bar', annotate.Integer())])))
Пример #6
0
 def bar(baz=annotate.Integer(), 
     slam=newChoicesWay, ham=deferChoicesWay, radio=radioChoices, custom=customValueToKey):
     pass
Пример #7
0
class IMyForm(annotate.TypedInterface):
    foo = annotate.Integer()
Пример #8
0
 def bind_speed(self, ctx):
     return [('speed', annotate.Integer())]