Creating a virtual file system
I'm working on a project to implement a simple cross-platform file sharing protocol (using Python) that is similar to HTTP, and I have to write a GUI for Windows and Linux. But let's start with the harder one: Windows. My question is: How do I implement a virtual partition that acts like a real file-system and is compleatly transparent to other programs? Should I make a virtual file allocation table for a FAT32 partition or simulate an NTFS? Or even further: How do I create a junction (or a hard link) to it in "My network places" or in "Entire Network"? If there are tools that could help me but written in C or C++, please let me know, I'll compile them to Python modules. Thanks forward for help. -- http://mail.python.org/mailman/listinfo/python-list
Re: Replacement for keyword 'global' good idea? (e.g. 'modulescope' or 'module' better?)
I think D H is right. Or even if you'd find out that most of the people would better like 'modulescope' or 'module', (what is, i think, imposible), you'd destroy the backward-compatibility with older versions of Puthon if you implement it. But it won't be implemented. Trust me. -- http://mail.python.org/mailman/listinfo/python-list
Re: ANN : dxPython 0.3.0
In my opinion, you shoud make an (100%) English version of the site, if you want more developers to join worldwide. -- http://mail.python.org/mailman/listinfo/python-list
Re: Some newbie cgi form questions...
>for key in form.keys(): >if not form.has_key(key): # it will always be True try this: for key in form.keys(): if not form.keys()[key]: # True if it's a value is None Well, I don't exactly know the methods of the CGI module, but there are ways to access form data in Apache's mod_python module. There you have a method to access the data from the form, (and it does exactly whet the CGU module does), and you have an option flag wheter to ignore empty fields or not. -- http://mail.python.org/mailman/listinfo/python-list
Python and SMB, again...
On 1997/06/05 Peter Henning wrote: >SMB, ldap, imap4rev1 > >Is there an SMB library? I want to be able to access SMB shares >from python, or publish shares onto a network neighbourhood from >a python server. If anyone has implemented SMB in python, could >you point me to the code? Otherwise, would like Samba be a good >starting-point for implementing a python SMB module? I was wondering if there are any news on this topic... Anyway, I have a project to do, and it is about implementing a SMB server on the client machine that translates other protocols to SMB (ftp, for example). So, for example, the site ftp.openbsd.org could be viewed in \\My Network Places\FTP Networks (or whatever). There are two posible solutions: The first is to implement a SMB server on the client machine. Maybe this one is't the most effective way to do this, but anyway, in this case I'll need a smb module. If anyone could help me, I'd be glad. If I can't do this in Python, and there are other programming languages that support this option, please tell me. The second option is to create a virtual drive and map the network content into it. Even in this case, i can share it only to be visible in My Network Places, but it isn't the point. To create a virtual drive, I have to study the partition table of virtual drives, and even then, I know only one virtual drive module, in C. But I'd be happy if you coud tell me something useful on this option. Anyway, if you know a third option, that is better than these, or if you think you know, wich one of these is better, just let me know. This is the harder part of my project and I can't get out of it. It is a simple cross-platform file sharing protocol for my mature exam work. The linux-part is done, so all I need is to do the Windows stuff. I'm new in Windows programming, and I'm helpless, so any ideas are welcome... -- http://mail.python.org/mailman/listinfo/python-list
Re: Python and SMB, again...
Oops, I forgot to look at my old topic. Some of you mentioned CIFS. I was away from home for a while and now I'm on my job, again. Soth the Network Neighborhood thing isn't a problem. Now I know, that probably it would be better to use CIFS rather than a virtual filesystem. I just need to read through this CIFS thing, so I'll Google for tutorials and look at samba.org/cifs but if you have a better idea, just let me know. Sorry for being so careless and not caring obout my old topic. Now at least I have some waypoints, and know that I have nothing to do with Windows' kernel. All I have to look after is the smb module, even if not in python. -- http://mail.python.org/mailman/listinfo/python-list
Re: Python and SMB, again...
Thank you, Larry, I'm figuring out things right now. -- http://mail.python.org/mailman/listinfo/python-list
Re: Python and SMB, again...
Thank you, Larry, I'm figuring out the things right now. -- http://mail.python.org/mailman/listinfo/python-list
X/Linux mouse_event (like in win32api)
Hello everyone. I would like to be able to emit a mouse click on my xgl/compiz desktop, like I used to do in Windows: win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN, x, y, 0) win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP, x, y, 0) I installed Python and pywin32 in wine and they both work, but I cannot extend the mouse emulation to my X desktop. Is there a way to interact directly with the X server (or with the kernel?) to simulate a click? And if it can't be done in Python, where should I go? Thank you in advance for your replies. -- http://mail.python.org/mailman/listinfo/python-list
Re: Determine whether program was started by clicking icon or command line
On Nov 29, 9:51 am, Benjamin Hell <[EMAIL PROTECTED]> wrote: > Hi! > > I wonder whether there might be a way to find out how a Python > program was started (in my case in Windows): By double clicking the > file or by calling it on the "DOS" command line prompt. I think it's not possible (or very tricky) to do that. > Background: I would like to have the program run in an "interactive > mode" if double clicked, and silently in a "batch mode" when started > otherwise. > > Any hints? Why don't you just create a desktop icon that calls "myprog.py -- interactive-mode" and then check in sys.argv for the actual argument? Or, if you prefer not to use arguments, you could just change the working directory of the shortcut and then check os.getcwd()? Though it's a weird thing to do... Hope I could. aatiis -- http://mail.python.org/mailman/listinfo/python-list
Re: X/Linux mouse_event (like in win32api)
Thank you Jorgen. Your answer helped me a lot. -- http://mail.python.org/mailman/listinfo/python-list