4418
Part of @thedevs General Rules: @rulesforthedevs Only related to group topic (Python + Python Frameworks) Other @thedevs groups: https://thedevs.network
This comment here suggests that what I try is possible:
https://github.com/pallets-eco/flask-security/blob/c12fe92b34ec80b3a56f5cbc706372740eb63a17/flask_security/babel.py#L37-L40
Hi guys! I have an issue I can't figure out myself.
I'm using flask-security in my project which ships it's own traslations (using pybabel)
Now, I don't really like the tone of the translation for a specific language in flask-security, so I would like to override the translation strings.
Is it possible to do from the top level project which is importing flask-security?
Flask-Security translations folder for reference: https://github.com/pallets-eco/flask-security/tree/main/flask_security/translations
It looks to me they use a different domain, that's why they have the fsdomain helper: https://flask-security-too.readthedocs.io/en/stable/customizing.html#localization But I'm not very familiar with how these domains work...
I tried copying their .po file to my project, but pybabel won't automatically compile it which suggests me that I'm doing it wrong...
You can avoid using with but it will end up looking like a c program
Читать полностью…
Why would you want to manage resources manually, anyways?
Читать полностью…
answer = await app.ask(
chat_id, text="Send me your Api key: ", parse_mode=enums.ParseMode.MARKDOWN
)
in pyrogram i am using this module
from pyroaddon import listen
but its not working for python 3.14 because of updated asyncio any alternative for this?
Elaborate. Do you mean to ask if something other than a context manager can be used with the "with" statement, too?
Читать полностью…
Do we still need to use context managers while using 'with' statement?
Читать полностью…
i usally take my projects from my own network, they simply call me for it
(note i dont use linkedin)
Do you ever make classes that just have methods like next() or step() or iter() or tick() or something like that?
Читать полностью…
by that I mean this structure. I put their .po file next to mine... (I assume the file name is the domain name) but
pybabel compile -d translations
-D flask_security ... but the app still does not pick up the tranlsations.
Читать полностью…
What's your actual question. What are you trying to do?
Читать полностью…
i mean do we still need context mangers to be used with 'with' statement?
Читать полностью…
i think it is nepotism
cause it kinda meets the definition of nepotism
i agree these Referrals do skip the interview and resume sending for me, they straightly put me in the place i must be
Читать полностью…
Because you're getting them from your network I guessed it was through family and friends :'3
Читать полностью…
I mean website design projects and projects in software-related fields.
Читать полностью…
except this one, its the first time hearing about it
Читать полностью…