slidge.core.config
#
Module Contents#
Classes#
Represent the difference between two datetime objects. |
Attributes#
- class slidge.core.config._TimedeltaSeconds[source]#
Bases:
datetime.timedelta
Represent the difference between two datetime objects.
Supported operators:
add, subtract timedelta
unary plus, minus, abs
compare to timedelta
multiply, divide by int
In addition, datetime supports subtraction of two datetime objects returning a timedelta, and addition or subtraction of a datetime and a timedelta giving a datetime.
Representation: (days, seconds, microseconds). Why? Because I felt like it.
- slidge.core.config.LEGACY_MODULE__DOC = 'Importable python module containing (at least) a BaseGateway and a LegacySession subclass'[source]#
- slidge.core.config.SERVER__DOC = "The XMPP server's host name. Defaults to localhost, which is the standard way of running slidge,..."[source]#
- slidge.core.config.SECRET__DOC = "The gateway component's secret (required to connect to the XMPP server)"[source]#
- slidge.core.config.HOME_DIR: pathlib.Path[source]#
- slidge.core.config.HOME_DIR__DOC = 'Shelve file used to store persistent user data. Defaults to /var/lib/slidge/${SLIDGE_JID}. '[source]#
- slidge.core.config.USER_JID_VALIDATOR__DOC = 'Regular expression to restrict users that can register to the gateway, by JID. Defaults to...'[source]#
- slidge.core.config.UPLOAD_SERVICE__DOC = 'JID of an HTTP upload service the gateway can use. This is optional, as it should be...'[source]#
- slidge.core.config.NO_ROSTER_PUSH__DOC = "Do not fill users' rosters with legacy contacts automatically"[source]#
- slidge.core.config.ROSTER_PUSH_PRESENCE_SUBSCRIPTION_REQUEST_FALLBACK__DOC = 'If True, legacy contacts will send a presence request subscription when privileged roster push...'[source]#
- slidge.core.config.AVATAR_SIZE__DOC = 'Maximum image size (width and height), image ratio will be preserved'[source]#
- slidge.core.config.USE_ATTACHMENT_ORIGINAL_URLS__DOC = 'For legacy plugins in which attachments are publicly downloadable URLs, let XMPP clients...'[source]#
- slidge.core.config.UPLOAD_REQUESTER__DOC = 'Set which JID should request the upload slots. Defaults to the component JID.'[source]#
- slidge.core.config.NO_UPLOAD_PATH__DOC = "Instead of using the XMPP server's HTTP upload component, copy files to this dir. You need to..."[source]#
- slidge.core.config.NO_UPLOAD_URL_PREFIX__DOC = 'Base URL that servers files in the dir set in the no-upload-path option, eg...'[source]#
- slidge.core.config.NO_UPLOAD_METHOD__DOC = "Whether to 'copy', 'move', 'hardlink' or 'symlink' the files in no-upload-path."[source]#
- slidge.core.config.NO_UPLOAD_FILE_READ_OTHERS__DOC = "After writing a file in NO_UPLOAD_PATH, change its permission so that 'others' can read it."[source]#
- slidge.core.config.IGNORE_DELAY_THRESHOLD__DOC = 'Threshold, in seconds, below which the <delay> information is stripped out of emitted stanzas.'[source]#
- slidge.core.config.PARTIAL_REGISTRATION_TIMEOUT__DOC = 'Timeout before registration and login. Only useful for legacy networks where a single step...'[source]#
- slidge.core.config.LAST_SEEN_FALLBACK__DOC = 'When using XEP-0319 (Last User Interaction in Presence), use the presence status to display the...'[source]#
- slidge.core.config.DOWNLOAD_CHUNK_SIZE__DOC = 'Chunk size when slidge needs to download files using HTTP.'[source]#
- slidge.core.config.LAST_MESSAGE_CORRECTION_RETRACTION_WORKAROUND__DOC = 'If the legacy service does not support last message correction but supports message retractions,...'[source]#
- slidge.core.config.FIX_FILENAME_SUFFIX_MIME_TYPE__DOC = 'Fix the Filename suffix based on the Mime Type of the file. Some clients (eg Conversations) may...'[source]#
- slidge.core.config.LOG_FILE: pathlib.Path | None[source]#
- slidge.core.config.MAM_MAX_DAYS__DOC = 'Maximum number of days for group archive retention. Since all text content stored in RAM right now, '[source]#