Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The field name is the same as Item's parameter in Item. #17

Closed
linw1995 opened this issue May 17, 2019 · 0 comments · Fixed by #18
Closed

The field name is the same as Item's parameter in Item. #17

linw1995 opened this issue May 17, 2019 · 0 comments · Fixed by #18
Labels
bug Something isn't working

Comments

@linw1995
Copy link
Owner

class Parameter(Item):
    name = Field(XPathExtractor("./span[@class='name']"))
    default = Field(XPathExtractor("./span[@class='default']"))

extractor = Parameter(XPathExtractor("./li[@class='parameter']", default=None)

the default=None parameter overwrites the Field default = Field(XPathExtractor("./span[@class='default']")) of Item.

@linw1995 linw1995 added the bug Something isn't working label May 17, 2019
@linw1995 linw1995 added this to To do in Beta 2 Stable via automation May 17, 2019
@linw1995 linw1995 moved this from To do to In progress in Beta 2 Stable May 17, 2019
Beta 2 Stable automation moved this from In progress to Done May 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Beta 2 Stable
  
Done
Development

Successfully merging a pull request may close this issue.

1 participant