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

Item.folder is broken when no explicit parent is provided #31

Open
hoffie opened this issue Sep 28, 2015 · 0 comments
Open

Item.folder is broken when no explicit parent is provided #31

hoffie opened this issue Sep 28, 2015 · 0 comments

Comments

@hoffie
Copy link

hoffie commented Sep 28, 2015

When using folder.items(), the resulting Item instances' folder attributes are not accessible as Item._folder is not even created (it would be ok if it was None).

python-zarafa from 7.2.x does not seem to have this problem.

I will submit a pull request in a minute.

hoffie pushed a commit to hoffie/python-zarafa that referenced this issue Sep 28, 2015
The internal attribute Item._folder should always be initialized,
at least with None.
If possible, _folder should be pre-populated with parent data from
the outside as this should be better performing than doing a repeated lookup.

Fixes zarafagroupware#31.
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

No branches or pull requests

1 participant