original_docstring: Helper to convert an operation object into a list of fields and a URL
docstring: Helper to convert an operation object into a list of fields and a URL
docstring_tokens: Helper to convert an operation object into a list of fields and a URL
code: def _fields(self, operation):
          """Helper to convert an operation object into a list of fields and a URL"""
          fields = []
          cs_fields = operation.fields()
          editable_fields = cs_fields["unsigned_field_names"].split(",")
          for key, value in cs_fields.items():
              fields.append(
                  {
                      "key": key,
                      "value": value if isinstance(value, str) else value.decode(),
                      "editable": (key in editable_fields),
                  }
              )
  
          return operation.url, fields
code_tokens: def _fields ( self , operation ) : fields = [ ] cs_fields = operation . fields ( ) editable_fields = cs_fields [ "unsigned_field_names" ] . split ( "," ) for key , value in cs_fields . items ( ) : fields . append ( { "key" : key , "value" : value if isinstance ( value , str ) else value . decode ( ) , "editable" : ( key in editable_fields ) , } ) return operation . url , fields
short_docstring: Helper to convert an operation object into a list of fields and a URL
short_docstring_tokens: Helper to convert an operation object into a list of fields and a URL
comment: """Helper to convert an operation object into a list of fields and a URL"""