Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ResourceAttributeType Int cannot accept a negative value #865

@simonLeary42

Description

@simonLeary42

allocation uses literal_eval (accepts negative values):

if not isinstance(literal_eval(self.value), int):

project uses formencode.validators.Int() (accepts negative values):

validate = validators.Int()

and resource uses str.isdigit():

if expected_value_type == "Int" and not self.value.isdigit():

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions