Re: [python-win32] Recycle bin deletion date - mixing shell and winshell?

2018-01-11 Thread Tim Roberts
Durumdara wrote:
>
> The winshell module
> (https://winshell.readthedocs.io/en/latest/recycle-bin.html) retreives
> recycle bin files for me, I can see the deletion date, but not the
> real filename in filesystem (to I can delete the older ones).

The documentation does not describe it, but if you look in the source
code (which should always be your fallback for True Answers), you'll see
that the ShellRecycledItem object has a real_filename() method that
returns the information you want.

The documentation is on github, if you want to submit a fix.

-- 
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.

___
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32


Re: [python-win32] Python - connexion to serial port

2018-01-11 Thread Preston Landers
You could have a worker thread or process that keeps the serial port open
and listens for jobs on some kind of task queue.

However it's not clear to me how keeping the serial port open between
requests provides assurance of data integrity.


On Thu, Jan 11, 2018 at 9:27 AM Schoeni, Yann 
wrote:

> Hey there !
>
>
>
> I’ve a web application which needs to send data to a serial port. The
> webserver uses ajax to send data to a python script.
>
>
>
> The Python script uses the serial module to open, send data, and close the
> serial port.
>
>
>
> *Is there a way to keep the serial port open ? *
>
>
>
> Because for now, I open/close it between each transaction and I need to be
> 100% sure the data package will be send .. which is not the case with my
> actual python script.
>
>
>
> Thank you in advance for your answer.
>
>
>
> Best wishes
>
>
>
> *Yann Schoeni*
>
> *Municipalité de Moutier *
>
> Apprenti informaticien
>
> Tél. +41 (0)32 494 11 69 <+41%2032%20494%2011%2069>
>
> Mob. +41 (0)79 827 30 86 <+41%2079%20827%2030%2086>
>
> E-mail yann.scho...@moutier.ch
>
>
> ___
> python-win32 mailing list
> python-win32@python.org
> https://mail.python.org/mailman/listinfo/python-win32
>
___
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32


[python-win32] Python - connexion to serial port

2018-01-11 Thread Schoeni, Yann
Hey there !

I've a web application which needs to send data to a serial port. The webserver 
uses ajax to send data to a python script.

The Python script uses the serial module to open, send data, and close the 
serial port.

Is there a way to keep the serial port open ?

Because for now, I open/close it between each transaction and I need to be 100% 
sure the data package will be send .. which is not the case with my actual 
python script.

Thank you in advance for your answer.

Best wishes

Yann Schoeni
Municipalité de Moutier
Apprenti informaticien
Tél. +41 (0)32 494 11 69
Mob. +41 (0)79 827 30 86
E-mail yann.scho...@moutier.ch

___
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32


[python-win32] Recycle bin deletion date - mixing shell and winshell?

2018-01-11 Thread Durumdara
Dear Members!

I tried to find a way to get the file deletion date from recycle bin files.

As I see the IShellFolder's GetDisplayNameOf don't give me data about it,
only original and real filename.

The winshell module (
https://winshell.readthedocs.io/en/latest/recycle-bin.html) retreives
recycle bin files for me, I can see the deletion date, but not the real
filename in filesystem (to I can delete the older ones).

Now I may mix the two modes with a dict which full of the uppercased
original filenames, and I may look up all real filenames, but it would be
better if I could handle whole thing in one module.

Does PyWin supports the get "deletion date" from a Recycle Bin file?

As I read somewhere it needs IShellFolder2 interface, but I may remember
wrong.

Thank you

Best Regards
dd
___
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32