flaxsearch / flaxcode

Automatically exported from code.google.com/p/flaxcode
4 stars 1 forks source link

Path browser in collection spec should show network paths #176

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
We should let the user see the network resources on the computer running
Flax: for Windows, use this method:
http://www.koders.com/python/fid74D0C5D5DEAB6CF9882358B43CB892D19AB981D0.aspx
(uses WNetOpenEnum).

Original issue reported on code.google.com by charliej...@gmail.com on 18 Jan 2008 at 5:16

GoogleCodeExporter commented 9 years ago
I don't understand why it does'nt work :

http://localhost:8090/admin/listfiles returns:
[['C:/', 'C:\\', 1, 1], ['D:/', 'D:\\', 1, 1]]

but using the current SVN code (rev 969) in /src/cpserver.py with python 2.52 
give me:
>>> drives = win32api.GetLogicalDriveStrings()
>>> drives = string.splitfields(drives,'\000')
>>> drives = [[d.replace('\\', '/'), d, 1, 1] for d in drives
                          if d and d not in ('A:\\', 'B:\\')]
>>> drives
[['C:/', 'C:\\', 1, 1], ['D:/', 'D:\\', 1, 1], ['X:/', 'X:\\', 1, 1]]

Has cpserver.py changed ?

Original comment by mahe.y...@gmail.com on 7 May 2008 at 9:36

GoogleCodeExporter commented 9 years ago
After reading issue 167 and changed local account to privileged account, I have 
the
local drives only again :(

Original comment by mahe.y...@gmail.com on 7 May 2008 at 10:11

GoogleCodeExporter commented 9 years ago

Original comment by charliej...@gmail.com on 27 Aug 2009 at 1:21