示例#1
0
 def get_scheme(self):
     scheme = Scheme("NDBC Observations")
     scheme.description = "Streams observation events from NDBC stations."
     scheme.use_external_validation = True
     stations_argument = Argument("stations")
     stations_argument.title = "Station IDs"
     stations_argument.data_type = Argument.data_type_string
     stations_argument.description = "List of station IDs separated by a space"
     stations_argument.required_on_create = True
     scheme.add_argument(stations_argument)
     return scheme
示例#2
0
 def get_scheme(self):
     scheme = Scheme("NDBC Observations Search")
     scheme.description = "Streams observation events from nearby NDBC stations."
     scheme.use_external_validation = True
     latitude_argument = Argument("latitude")
     latitude_argument.title = "Latitude"
     latitude_argument.data_type = Argument.data_type_number
     latitude_argument.description = "Latitude of the center of the search area"
     latitude_argument.required_on_create = True
     scheme.add_argument(latitude_argument)
     longitude_argument = Argument("longitude")
     longitude_argument.title = "Longitude"
     longitude_argument.data_type = Argument.data_type_number
     longitude_argument.description = "Longitude of the center of the search area"
     longitude_argument.required_on_create = True
     scheme.add_argument(longitude_argument)
     radius_argument = Argument("radius")
     radius_argument.title = "Radius"
     radius_argument.data_type = Argument.data_type_number
     radius_argument.description = "Radius in miles of the search area"
     radius_argument.required_on_create = True
     scheme.add_argument(radius_argument)        
     return scheme
示例#3
0
 def get_scheme(self):
     scheme = Scheme("NDBC Observations Search")
     scheme.description = "Streams observation events from nearby NDBC stations."
     scheme.use_external_validation = True
     latitude_argument = Argument("latitude")
     latitude_argument.title = "Latitude"
     latitude_argument.data_type = Argument.data_type_number
     latitude_argument.description = "Latitude of the center of the search area"
     latitude_argument.required_on_create = True
     scheme.add_argument(latitude_argument)
     longitude_argument = Argument("longitude")
     longitude_argument.title = "Longitude"
     longitude_argument.data_type = Argument.data_type_number
     longitude_argument.description = "Longitude of the center of the search area"
     longitude_argument.required_on_create = True
     scheme.add_argument(longitude_argument)
     radius_argument = Argument("radius")
     radius_argument.title = "Radius"
     radius_argument.data_type = Argument.data_type_number
     radius_argument.description = "Radius in miles of the search area"
     radius_argument.required_on_create = True
     scheme.add_argument(radius_argument)
     return scheme
示例#4
0
            def get_scheme(self):
                scheme = Scheme("abcd")
                scheme.description = u"\uC3BC and \uC3B6 and <&> f\u00FCr"
                scheme.streaming_mode = scheme.streaming_mode_simple
                scheme.use_external_validation = False
                scheme.use_single_instance = True

                arg1 = Argument("arg1")
                scheme.add_argument(arg1)

                arg2 = Argument("arg2")
                arg2.description = u"\uC3BC and \uC3B6 and <&> f\u00FCr"
                arg2.data_type = Argument.data_type_number
                arg2.required_on_create = True
                arg2.required_on_edit = True
                arg2.validation = "is_pos_int('some_name')"
                scheme.add_argument(arg2)

                return  scheme
            def get_scheme(self):
                scheme = Scheme("abcd")
                scheme.description = u"\uC3BC and \uC3B6 and <&> f\u00FCr"
                scheme.streaming_mode = scheme.streaming_mode_simple
                scheme.use_external_validation = False
                scheme.use_single_instance = True

                arg1 = Argument("arg1")
                scheme.add_argument(arg1)

                arg2 = Argument("arg2")
                arg2.description = u"\uC3BC and \uC3B6 and <&> f\u00FCr"
                arg2.data_type = Argument.data_type_number
                arg2.required_on_create = True
                arg2.required_on_edit = True
                arg2.validation = "is_pos_int('some_name')"
                scheme.add_argument(arg2)

                return scheme