Python file-manager

Discussion about user contributed plugins

Moderator: Moderator

How to Delete files in FileManager ? (more details here)

Poll ended at Tue Dec 09, 2008 8:58 am

Add a trashcan-dir to filemanager
0
No votes
Add a global delete_list (global to MMS)
0
No votes
Add a delete button directly to filemanager
6
100%
 
Total votes: 6

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Postby Uatschitchun » Thu Feb 21, 2008 8:44 am

filemanager-sources.conf ;)
Lg
Roman

User avatar
acmelabs
Overlord
Posts: 2365
Joined: Mon Feb 20, 2006 9:18 pm
Location: Germany
Contact:

Postby acmelabs » Thu Feb 21, 2008 9:26 am

Uatschitchun wrote:filemanager-sources.conf ;)

sounds good.
Would be also nice if Pyglets save their config in a defined place.
Roman, what would the place be? I'm asking, because I know it can't be /etc/mms.

Regards,
Andreas

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Postby Uatschitchun » Thu Feb 21, 2008 11:00 am

acmelabs wrote:
Uatschitchun wrote:filemanager-sources.conf ;)

sounds good.
Would be also nice if Pyglets save their config in a defined place.
Roman, what would the place be? I'm asking, because I know it can't be /etc/mms.

Why not /etc/mms/pyglets/ if they should be system-wide ... if only on a per user base, it should be ~/.mms/pyglets/ (like we have it with MMS' Configs).

If these configs change at runtime, they better be placed in /var/lib/mms/. But that shouldn't be needed as these configs probably are static!

If variable state-information is needed that remains between runs, /var/lib/mms is the place to go ...

The scripts themselves may not reside in /etc/mms/scripts (as they are right now)! That better should be /usr/share/mms/scripts (system-wide) or ~/.mms/scripts/ (per user).

I'm no fan of spreading files around ... but that's how I understand Linux' FHS ;)
Spreading seems irritating and confusing, but gets a logic if FHS is understood! We should keep as close as possible to FHS for to make packaging as easy as possible ;)

All in all ... I recommend: http://www.pathname.com/fhs/
Lg

Roman

User avatar
acmelabs
Overlord
Posts: 2365
Joined: Mon Feb 20, 2006 9:18 pm
Location: Germany
Contact:

Postby acmelabs » Thu Feb 21, 2008 1:06 pm

Uatschitchun wrote:All in all ... I recommend: http://www.pathname.com/fhs/

Word!

esprit
master
Posts: 503
Joined: Tue Dec 06, 2005 5:50 pm
Location: France
Contact:

Re: Blacklisting or Whitelisting

Postby esprit » Thu Feb 21, 2008 7:08 pm

hendrik wrote:Hi,

I have a small Feature Request for this great plugin:

A black or whitelist feature (some kind of fakeroot would also work) so that I can only see a subset of the filesystem, for example only my media directories and the mount points for dvd/usb stick/mp3 player/etc.

That would also solve the security concerns.

Nice Idea.
I have done a quick hack :
http://eesprit.free.fr/mms/python/filemanager-0.3.tgz

Just edit the top of the script and add what should be allowed to be seen in it (fakeroot=['/path1', '/path/path2'])
If you want everything, just put '/'.

I'll do the config file stuff later, cause I don't have a lot of time at the moment.

And I second the request to have scripts in /usr/share/mms/scripts

User avatar
acmelabs
Overlord
Posts: 2365
Joined: Mon Feb 20, 2006 9:18 pm
Location: Germany
Contact:

Postby acmelabs » Sat Feb 23, 2008 7:18 pm

filemanager 0.3 cores, if I try to navigate onto "messages"

Regards,
Andreas

User avatar
acmelabs
Overlord
Posts: 2365
Joined: Mon Feb 20, 2006 9:18 pm
Location: Germany
Contact:

Postby acmelabs » Sat Feb 23, 2008 7:26 pm

Code: Select all

fakeroot = ['/media', '/data/mnt/sda1/Video-Joox' , '/tmp']


Code: Select all

root@pulsar:/etc/mms/scripts/filemanager# ll /data/mnt/sda1/Video-Joox
total 0
drwxr-xr-x 2 root root 0 2008-02-23 13:18 Comedy
drwxr-xr-x 2 root root 0 2008-02-23 13:19 Documentaries
drwxr-xr-x 2 root root 0 2008-02-23 13:18 Download
drwxr-xr-x 2 root root 0 2008-02-23 13:19 Movies
drwxr-xr-x 2 root root 0 2008-02-23 13:18 Music
drwxr-xr-x 2 root root 0 2008-02-23 13:20 TV_Shows


/data is an Samba-Share

Code: Select all

//192.168.1.2/data$   146G   27G  114G  19% /data

    Image


Where is /data/mnt/sda1/Video-Joox?

Regards,
Andreas

esprit
master
Posts: 503
Joined: Tue Dec 06, 2005 5:50 pm
Location: France
Contact:

Postby esprit » Sun Feb 24, 2008 9:43 am

acmelabs wrote:filemanager 0.3 cores, if I try to navigate onto "messages"

Regards,
Andreas

Sorry, but I don't understand "navigate onto messages", what do you mean ?

acmelabs wrote:

Code: Select all

fakeroot = ['/media', '/data/mnt/sda1/Video-Joox' , '/tmp']


Code: Select all

root@pulsar:/etc/mms/scripts/filemanager# ll /data/mnt/sda1/Video-Joox
total 0
drwxr-xr-x 2 root root 0 2008-02-23 13:18 Comedy
drwxr-xr-x 2 root root 0 2008-02-23 13:19 Documentaries
drwxr-xr-x 2 root root 0 2008-02-23 13:18 Download
drwxr-xr-x 2 root root 0 2008-02-23 13:19 Movies
drwxr-xr-x 2 root root 0 2008-02-23 13:18 Music
drwxr-xr-x 2 root root 0 2008-02-23 13:20 TV_Shows


/data is an Samba-Share

Code: Select all

//192.168.1.2/data$   146G   27G  114G  19% /data

    Image

Where is /data/mnt/sda1/Video-Joox?

Regards,
Andreas

Yep, as said it was a quick hack, it was only working with folders which have a depth of one.

Fixed in 0.4 http://eesprit.free.fr/mms/python/filemanager-0.4.tgz :)

User avatar
acmelabs
Overlord
Posts: 2365
Joined: Mon Feb 20, 2006 9:18 pm
Location: Germany
Contact:

Postby acmelabs » Sun Feb 24, 2008 12:49 pm

esprit wrote:Sorry, but I don't understand "navigate onto messages", what do you mean ?
hm - dunno either, sorry. Does "messages" exists in the Joox plugin? If yes - then I'm sorry

Great! Thanks.

Regards,
Andreas

User avatar
JackyOH
Posts: 25
Joined: Wed Sep 05, 2007 6:17 pm

Postby JackyOH » Sat Jun 21, 2008 1:28 am

what about any remove and rename option?

esprit
master
Posts: 503
Joined: Tue Dec 06, 2005 5:50 pm
Location: France
Contact:

Postby esprit » Thu Jun 26, 2008 10:21 am

remove option should be easy to add.
renaming is another thing, I don't know if the python plugin provide some input widget ?

User avatar
acmelabs
Overlord
Posts: 2365
Joined: Mon Feb 20, 2006 9:18 pm
Location: Germany
Contact:

Postby acmelabs » Thu Jun 26, 2008 10:56 am

esprit wrote:... if the python plugin provide some input widget ?

It does. Have a look into the YouTube Pyglet.

I'm glad you're back :D

Regards,
Andreas

esprit
master
Posts: 503
Joined: Tue Dec 06, 2005 5:50 pm
Location: France
Contact:

Postby esprit » Thu Jun 26, 2008 12:26 pm

I was not gone :lol:

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Postby Uatschitchun » Wed Jul 23, 2008 7:10 am

filemanager needs update! (pythin-plugin changes)

Would be nice to have new version asap, so I can package mms-addon-python-pyglets ... pls :twisted:
Lg

Roman

esprit
master
Posts: 503
Joined: Tue Dec 06, 2005 5:50 pm
Location: France
Contact:

Postby esprit » Wed Jul 23, 2008 7:49 am

I'll take a look this WE or before if I can.


Return to “user plugins”

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest