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

v2.10.1 #1525

Merged
merged 33 commits into from Sep 15, 2022
Merged

v2.10.1 #1525

merged 33 commits into from Sep 15, 2022

Conversation

anjakefala
Copy link
Collaborator

No description provided.

anjakefala and others added 30 commits August 28, 2022 21:06
…1514)

* [pyobj] rename open-row/open-cell to open-row-pyobj/open-cell-pyobj

* [open-cell] add 'zo' to open file or url from path in current cell

Closes #1512

* [tests] clean up load-zip.vd
The original currency conversion API data.fixer.io redirects already to apilayer.com and I couldn't find
a way to create API keys for the former data.fixer.io API, so I updated the url and passing of parameters. Especially the api key is passed now as header instead as a url param what's certainly reasonable for security.

apilayer blocks urllib requests as bot requests (for at least for the free account).  apilayers blocks urllib requests even with different user-agents.  So, the solution is to add more headers like described in
https://stackoverflow.com/questions/13303449/urllib2-httperror-http-error-403-forbidden
(i don't know what I am doing, just following the instruction)
Potentially tests/ will not exist in a context, better to save in
current folder.

Closes #1499
IMHO a guarding of a sheet should be reverseable,
so added this simple command.

Not sure if we should show a status,
when guarded it's obviously we show,
but I decided against showing a status,
as unguarded is the normal behaviour and see no reason to differentiate
in the status between never guarded or once guarded and then unguarded.
There was a File > Guard menu item so far.
Didn't want to add a 2nd File > Unguard item for a probably very seldom
used functionality.

So changed it to an on/off selection as
File > Guard > on
               off
what I think is still convenient and very self explainary.
Now you can do:

@VisiData.before
def run(vd, *args, **kwargs):
    ABC()

to execute ABC() before the rest of vd.run().  Similarly @after will run
after (but return the value from the original function).
Copy link
Owner

@saulpw saulpw left a comment

Choose a reason for hiding this comment

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

Everything looks good to me!

@anjakefala anjakefala merged commit 3cf3ef6 into stable Sep 15, 2022
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

4 participants