I think the methods outlined in this docs section (as below) is may be missing from the API reference
GoogleMap.InfoWindow
Display a popup on the map at a particular position.
Properties
position:GoogleMap.LatLng - Specifies the position of the popup. Not required if this popup is anchored to a component (see the open method, below).
content:anvil.Component | string - The content of the popup. Can be a string, or an Anvil Component.
Methods
open(map, [anchor]) - Display this InfoWindow on the specified map. If anchor is specified, the InfoWindow does not need to have its own position property set.
close() - Hide this InfoWindow. The user can also cause this to happen by clicking the close button in the top-right of the popup.
Also please could I request this thread be pinned so it can be found easily (and yes I also now have it as a bookmark )
@anvil.server.callable
def login_with_password(username, password):
user = app_tables.users.get(username=username)
if user is not None and \
bcrypt.hashpw(password, user['password_hash']).decode() == user['password_hash']:
anvil.users.force_login(user)
return user
Shouldn’t it be something like:
import bcrypt
@anvil.server.callable
def login_with_password(username, password):
user = app_tables.users.get(email=username)
if (user is not None) and \
bcrypt.checkpw(password.encode('utf-8'), user['password_hash'].encode('utf-8')):
anvil.users.force_login(user)
return user
else:
return None
I was looking to reduce the pdf size generated by PDFRenderer and went to the docs! The quality optional argument looks like the worker for the job, but I am sure what the acceptable options are, based off of the docs. I found a couple of post showing different quality options I am trying, but having it explained clearly in the docs would be great!
The other options would be great to get the explanations as well.
It would have helped me if the anvil.server Globals section specified their type: that context is an instance of anvil.server.CallContext (and likewise for request).
A coupleusers have recently thought they needed to purchase their own SSL certificate to use a custom domain, so it might be good to add something to the publish interface or docs explicitly saying that that is not necessary.
Please clarify which code and which database gets cloned. Based on my testing just now, it’s the master branch and the Debug database, but it would be helpful to have that spelled out.
When saving an older app to GitHub, I happened to have a feature branch checked out in the IDE. I was surprised to find that that branch was thus set to be the default branch in GitHub, rather than master. (It’s not a huge inconvenience to change that in GitHub, assuming doing so isn’t going to mess up the Anvil integration, but still.) It would be helpful to add a heads-up to that effect to the docs, if I’m understanding correctly how it worked: that the currently checked-out branch when saving to GitHub is set to the default in the GitHub repo.