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

Add support for StorageBoxes #38

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

pajowu
Copy link

@pajowu pajowu commented Aug 25, 2020

Copy link
Owner

@aszlig aszlig left a comment

Choose a reason for hiding this comment

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

Thanks a lot and nice work :-)

As commented already, I've been very strict in adhering to PEP-8, including the line length limit of 79 characters. Adding code that doesn't adhere to that would make the code base inconsistent.

Other than that and the mentioned comments, it looks good to me.

hetzner/storagebox.py Outdated Show resolved Hide resolved
class SubAccount(object):
def __init__(self, conn, box_id_, result):
self.conn = conn
self.box_id_ = box_id_
Copy link
Owner

Choose a reason for hiding this comment

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

Why did you call this box_id_ instead of just box_id?

Copy link
Author

Choose a reason for hiding this comment

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

I think it was to keep consistent with the StorageBox object, which uses self.id_. I could change id to box_id

hetznerctl Outdated Show resolved Hide resolved
hetznerctl Outdated Show resolved Hide resolved
infolist = [u"{0}: {1}".format(key, val)
for key, val in info.items()]

self.putline(u"{0} ({1})".format(storagebox.login, u", ".join(infolist)))
Copy link
Owner

Choose a reason for hiding this comment

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

Just was about to merge this pull request and did a small final review and now wondering why you use Unicode literals here: Do you still use Python 2.x and if yes, what's the reason? I'm asking because I wanted to get rid of Python 2 support, but I might re-evaluate if there are still Python 2 users out there.

Copy link
Author

Choose a reason for hiding this comment

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

No, I just use python3. Not sure why I used them, maybe because they were used somewhere else?

@torsina
Copy link

torsina commented Apr 14, 2024

It's been ready for a year, @aszlig Merge the review already So I don't have to use your robots api dirrectly and it'd be a pain

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.

3 participants