Re: How to read file content and send email on Debian Bullseye

2023-02-04 Thread Thomas Passin
On 2/4/2023 10:13 PM, 2qdxy4rzwzuui...@potatochowder.com wrote: On 2023-02-04 at 17:59:11 -0500, Thomas Passin wrote: On 2/4/2023 10:05 AM, ^Bart wrote: Hi guys, On a Debian Bullseye server I have a lftp upload and after it I should send an email. [...] [...] you could run a shell script

Re: How to read file content and send email on Debian Bullseye

2023-02-04 Thread 2QdxY4RzWzUUiLuE
On 2023-02-04 at 17:59:11 -0500, Thomas Passin wrote: > On 2/4/2023 10:05 AM, ^Bart wrote: > > Hi guys, > > > > On a Debian Bullseye server I have a lftp upload and after it I should > > send an email. [...] > [...] you could run a shell script that sends the file with lftp, and > depending on

Typing Number, PyCharm

2023-02-04 Thread dn via Python-list
Do we have a typing type-hint for numbers yet? Often wanting to combine int and float, discovered that an application was doing a walk-through with/for uses three numeric types. Was intrigued to note variance, in that the code-set features two different methods for typing, in this situation:

Re: Organizing modules and their code

2023-02-04 Thread transreductionist
Thank you for all the helpful replies and consideration. I do hope for other opinions I would rather say it is more like engineering than art. Whether it is a matter of overthinking, or under thinking, is another matter. I enjoyed Dijkstra's letter to his colleagues on the role of scientific th

Re: Organizing modules and their code

2023-02-04 Thread Greg Ewing via Python-list
On 5/02/23 11:18 am, transreductionist wrote: This analogy came to me the other day. For me, I would rather walk into a grocery store where the bananas, apples, and oranges are separated in to their own bins, instead of one common crate. On the other hand, if the store has an entire aisle dev

Re: How to read file content and send email on Debian Bullseye

2023-02-04 Thread Thomas Passin
On 2/4/2023 10:05 AM, ^Bart wrote: Hi guys, On a Debian Bullseye server I have a lftp upload and after it I should send an email. I thought to read the lftp log file where I have these lines: 2023-01-30 18:30:02 /home/my_user/local_folder/upload/my_file_30-01-2023_18-30.txt -> sftp://ftp_u

RE: How to read file content and send email on Debian Bullseye

2023-02-04 Thread avi.e.gross
Bart, you may want to narrow down your request to something quite specific. For example, try to do whatever parts you know how to do and when some part fails or is missing, ask. I might have replied to you directly if your email email address did not look like you want no SPAM, LOL! The cron stuf

Re: DeprecationWarning but replacement doesn't work

2023-02-04 Thread Roel Schroeven
Chris Green schreef op 4/02/2023 om 16:17: I am using Image from PIL and I'm getting a deprecation warning as follows:- /home/chris/bin/picShrink.py:80: DeprecationWarning: ANTIALIAS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead. But if I change l

Re: DeprecationWarning but replacement doesn't work

2023-02-04 Thread Chris Angelico
On Sun, 5 Feb 2023 at 07:52, Chris Green wrote: > > I am using Image from PIL and I'm getting a deprecation warning as > follows:- > > /home/chris/bin/picShrink.py:80: DeprecationWarning: ANTIALIAS is deprecated > and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead. > >

DeprecationWarning but replacement doesn't work

2023-02-04 Thread Chris Green
I am using Image from PIL and I'm getting a deprecation warning as follows:- /home/chris/bin/picShrink.py:80: DeprecationWarning: ANTIALIAS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead. The code is very simple:- ... ... from PIL import

Re: Organizing modules and their code

2023-02-04 Thread transreductionist
On Friday, February 3, 2023 at 5:31:56 PM UTC-5, Thomas Passin wrote: > On 2/3/2023 4:18 PM, transreductionist wrote: > > Here is the situation. There is a top-level module (see designs below) > > containing code, that as the name suggests, manages an ETL pipeline. A > > directory is created cal

How to read file content and send email on Debian Bullseye

2023-02-04 Thread ^Bart
Hi guys, On a Debian Bullseye server I have a lftp upload and after it I should send an email. I thought to read the lftp log file where I have these lines: 2023-01-30 18:30:02 /home/my_user/local_folder/upload/my_file_30-01-2023_18-30.txt -> sftp://ftp_user@ftpserver_ip:2201/remote_ftp_fol

Re: tkinter ttk.Treeview: changing background colour of single item when selected

2023-02-04 Thread Thomas Passin
I haven't worked specifically with a Treeview, but I think you need to detect the onClick event (or an onSelect event if there is one) and have that trigger the flashing. Otherwise the selection probably overwrites styling that you added. That's what I do for classic Tk buttons to make them fl

Re: Organizing modules and their code

2023-02-04 Thread Weatherby,Gerard
You’re overthinking it. It doesn’t really matter. Having small chunks of codes in separate files can be hassle when trying to find out what the program does. Having one file with 2,000 lines in it can be a hassle. This is art / opinion, not science. From: Python-list on behalf of transreduct

tkinter ttk.Treeview: changing background colour of single item when selected

2023-02-04 Thread John O'Hagan
Hi list I'm using a ttk Treeview to display a hierarchical data structure. When an error condition arises in a node, I want the corresponding item in the Treeview to flash its background color.  Using a tag to flash the item background works, except when the item is selected, when the tag has no