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

[Design error] IPFBlock type member duplicate __name__ member. #2

Open
anton-golubkov opened this issue Oct 12, 2011 · 0 comments
Open
Assignees
Labels

Comments

@anton-golubkov
Copy link
Owner

class IPFBlock(object):
type = "IPFBlock"

type member duplicate IPFBlock.name

In type member used in GUI and save/load functions and used as class name in some cases
Change type string to some other text instead class name will produce bugs in code.

Possible solution: change type member to block_name and don`t use it as class name.

@ghost ghost assigned anton-golubkov Oct 12, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant