![]() 'Failed to start API listener on port %s', port) """A SimpleXMLRPCServer that honours state.shutdown"""ĭef serve_forever( self, poll_interval = None): FIXME not found a better solution.Ĭlass StoppableRPCServer( RPCServerBase): 'jsonrpclib not available, failing back to XML-RPC') 'bitmessagesettings', 'apivariant') = 'json':įrom jsonrpclib. :class:`jsonrpclib.SimpleJSONRPCServer` is created and started here The instance of `SimpleXMLRPCServer.SimpleXMLRPCServer` or get( 'bitmessagesettings', 'apiinterface'),Ĭonfig. # This thread, of which there is only one, runs the API. # beware: the formatting is adjusted for list-table Cannot send.',ġ6: 'You are already subscribed to that address.',ġ9: 'The length of hash should be 32 bytes (encoded in hex'Ģ5: 'Specified address is not a chan address.'ĭef _new_( mcs, name, bases, namespace): Others aren \'t supported.'ġ3: 'Could not find this address in your keys.dat file.',ġ4: 'Your fromAddress is disabled. Check the address.',ġ2: 'The stream number must be 1. ![]() ![]() ' the check or you can do it yourself by searching the source'ġ0: 'Address version number too high (or zero)',ġ1: 'The address version number currently must be 2, 3 or 4.' ' this, contact the Bitmessage developers and we can modify' ' mischief if you really want to create more addresses than' Others aren \'t supported.',Ĥ: 'Why would you ask me to generate 0 addresses for you?',ĥ: 'You have (accidentally?) specified too many addresses to' ![]() """Metaclass for :class:`APIError` documenting error codes."""Ģ: 'The address version number currently must be 3, 4, or 0'ģ: 'The stream number must be 1 (or 0 which means' 'defusedxml not available, only use API on a secure, closed network.') Try: # TODO: write tests for XML vulnerabilitiesįrom defusedxml. Helper_startup.loadConfig() # find and load local config fileĬonf.safeGet('bitmessagesettings', 'apiusername'),Ĭonf.safeGet('bitmessagesettings', 'apipassword')įor further examples please reference `.tests.test_api`.įrom SimpleXMLRPCServer import SimpleXMLRPCRequestHandler, SimpleXMLRPCServerįrom helper_sql import SqlBulkExecute, sqlExecute, sqlQuery, sqlStoredProcedure, sql_readyįrom network. To use the API concider such simple example:įrom pybitmessage import bmconfigparser, helper_startup not really the API setting, this sets a path for the executable to be ran current default for backward compatibility, 'json' is recommended the API listens apiinterface:apiport if apiport is not used, list-table:: All config settings related to API: Special value ``apivariant=legacy`` is to mimic the old pre 0.6.3īehaviour when any results are returned as strings of json. ![]() It's selected according to 'apivariant' setting in config file. The PyBitmessage API is provided either as This is not what you run to start the Bitmessage API. # Copyright (c) 2012-2022 The Bitmessage developers # Copyright (c) 2012-2016 Jonathan Warren ErrorCodes Class _new_ Function APIError Class _str_ Function singleAPI Class stopThread Function run Function StoppableRPCServer Class serve_forever Function CommandHandler Class _new_ Function testmode Class _init_ Function _call_ Function command Class _init_ Function _call_ Function wrapper Function BMXMLRPCRequestHandler Class do_POST Function APIAuthenticateClient Function BMRPCDispatcher Class _decode Function _verifyAddress Function _dump_inbox_message Function _dump_sent_message Function HandleDecodeAddress Function HandleListAddresses Function HandleListAddressBookEntries Function HandleAddAddressBookEntry Function HandleDeleteAddressBookEntry Function HandleCreateRandomAddress Function HandleCreateDeterministicAddresses Function HandleGetDeterministicAddress Function HandleCreateChan Function HandleJoinChan Function HandleLeaveChan Function HandleDeleteAddress Function HandleEnableAddress Function HandleGetAllInboxMessages Function HandleGetAllInboxMessageIds Function HandleGetInboxMessageById Function HandleGetAllSentMessages Function HandleGetAllSentMessageIds Function HandleInboxMessagesByReceiver Function HandleGetSentMessageById Function HandleGetSentMessagesByAddress Function HandleGetSentMessagesByAckData Function HandleTrashMessage Function HandleTrashInboxMessage Function HandleTrashSentMessage Function HandleSendMessage Function HandleSendBroadcast Function HandleGetStatus Function HandleAddSubscription Function HandleDeleteSubscription Function ListSubscriptions Function HandleDisseminatePreEncryptedMsg Function HandleTrashSentMessageByAckDAta Function HandleDissimatePubKey Function HandleGetMessageDataByDestinationHash Function HandleClientStatus Function HandleHelloWorld Function HandleAdd Function HandleclearUISignalQueue Function HandleStatusBar Function HandleGetStatusBar Function HandleUndeleteMessage Function HandleDeleteAndVacuum Function HandleShutdown Function _handle_request Function _dispatch Function _listMethods Function _methodHelp Function ![]()
0 Comments
![]() Thematic analysis revealed three themes in the data: (1) individuals have a part to address in the opioid epidemic, (2) communities have many needs related to the opioid crisis, and (3) structural forces create pathways and barriers to opioid overdose response and rescue. The three most prevalent emotions elucidated from these interviews with service industry workers were trust, anticipation, and joy with 20.4%, 16.2%, and 14.7% across all statements, respectively labeled as each emotion. Once having identified statements that fit into each of these eight codes, qualitative thematic analysis was conducted. ![]() Using a corpus algorithm, each line of interview text was characterized as one of the eight following sentiments, anger, anticipation, disgust, fear, joy, sadness, surprise, or trust. First, using R version 4.2.1, a data-science based textual analytic approach was applied to the interview data. To provide additional insights into >300 pages of interview data collected from service industry workers that have responded to an opioid overdose while at work, we utilized a mixed-methods approach to conduct this sentiment analysis. For example, in the commercial district of Little 5 Points, Atlanta, GA, many service industry workers have become de facto responders to opioid overdoses when a person experiences an opioid-involved overdose in their place of employment. ![]() The epidemic not only impacts persons who use drugs, but also those around them, including people who do not expect to witness an overdose. The opioid epidemic has increasingly been recognized as a public health issue and has challenged our current legal, social, and ethical beliefs regarding drug use. ![]() ![]() Below is a small script example that changes the link upon click on the logo of your site to redirect to the Google site instead of going to your home page: #Toweb agreement page code#if your JavaScript requires to be called only when the page is fully loaded (eg for JQuery functions if you use this library) then you need to declare a function named onTOWebPageLoaded in which you will copy / paste your code (the name of this function is case sensitive).if your script (PHP and/or JavaScript) has to be added inside the page content and before the tag then just add your TOWeb script field inside the last paragraph of your topic (or inside the page footer if you want your script to be applied to all pages of your site).) has to be placed into the section of your page, you can do that from the "head" button located in the SEO properties of your topic (or from TOWeb step "Options > Security & HTML > HEAD" if you want that your script to be applied to all pages of your site) If you need to use additional files in the topic for your script (like for instance images, videos or applets) you can add them to the list of additional files. You may create or copy/paste more complex scripts containing HTML, JavaScript, PHP, applets, etc. ![]() This simple script is just a small example of a JavaScript code displaying the current date. Rename it to DATEĤ) In the Script Field Content replace the default script with a copy/paste of the following lines of JavaScript source code :ĥ) Inside one of your topic add the following text :Ħ) Generate and you should see, instead of %DATE% the current date displayed on your web page. The example of %DATE% for the current date in JavaScript.ġ) From the Fields' Editor create a new field by clicking on the Add the new fieldĢ) Its default name is NEW_FIELD. ![]() |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |