This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import streamlit as st | |
import requests | |
from annotated_text import annotated_text | |
st.set_page_config( | |
page_title="Haystack - Ask me something and get an answer!", | |
page_icon=":crown:", | |
layout="centered", | |
initial_sidebar_state="auto", | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying my Blockstack ID is secured with the address 1GnQPuVgqwt8Gh2jCiv27YhNU5sEtF3XMn https://explorer.blockstack.org/address/1GnQPuVgqwt8Gh2jCiv27YhNU5sEtF3XMn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def bulkUpdateRoleMappings(self,brains=None, transaction_size=20): | |
""" Update permissions for objects from brains in transactions | |
""" | |
context = self | |
if brains is None: | |
brains = [] | |
totobs = len(brains) | |
info('starting update role mappings for %s objects' % str(totobs)) | |
counter = 0 | |
portal_workflow = getToolByName(context, 'portal_workflow', None) |