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

[FIX][report_xls] Protect import. #64

Merged
merged 2 commits into from
Aug 13, 2016

Conversation

yajo
Copy link
Member

@yajo yajo commented Aug 3, 2016

Even after merging 2bf93a1, import still breaks when trying to use module's stuff at class definition time when module is not imported.

I move xsl types to a failure-safe scope.

I checked that no other modules use these variables.

@Tecnativa

Even after merging 2bf93a1, import still breaks when trying to use module's stuff at class definition time when module is not imported.

I move xsl types to a failure-safe scope.
_logger = logging.getLogger(__name__)

xls_types_default = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not needed to be moved

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its purpose is to have a default in xls_types. You need to declare it before for that.

@pedrobaeza
Copy link
Member

I prefer that you mock the types this way instead: https://github.com/OCA/account-financial-tools/blob/8.0/account_move_batch_validate/account.py#L38

@yajo
Copy link
Member Author

yajo commented Aug 4, 2016

Types are a dict, while in that module job is a decorator. These are different cases I think.

@pedrobaeza
Copy link
Member

OK, as this is only for avoiding problems if the module is not used, then 👍

@lasley
Copy link

lasley commented Aug 12, 2016

👍

@lasley
Copy link

lasley commented Aug 12, 2016

Wow this merge button is new and intriguing! Ok so per the rules it's a 5 day wait if two thumbs, but is that 5 days from the initial thumb or 5 days from the second?

@lasley
Copy link

lasley commented Aug 12, 2016

Also, is there any insight into what's up with Runbot in this repo? Seems all the PR builds are broken 😦 #66

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants