pygtk help!

Contribute code & patches
Forum rules
No support questions here please

pygtk help!

Postby emorrp1 on Fri Feb 27, 2009 4:36 pm

I didn't like the way mintUpload uses saved plain-text passwords in its service config files, so I've implemented a fix to prompt for passwords, but the dialog box isn't drawn with a border in my new version. I've tried to understand the glade/pygtk setup, but I can't seem to enable the window border. Can anyone help?

mintUpload v2.1 is in the community repository (implemented ssh/sftp/scp support) now, and works fine as far as I've tested it.
my edited version for the passwords is available from: http://www.srcf.ucam.org/~pem34/mintupload-2.1.tar.gz
NB you'll need to edit line 437 of mintUpload.py to point to your download location.
If you have a question that has been answered and solved, then please edit your original post and put a [SOLVED] at the end of your subject header
Hint - use a google search including the search term site:forums.linuxmint.com
emorrp1
Level 8
Level 8
 
Posts: 2322
Joined: Thu Feb 26, 2009 8:58 pm

Linux Mint is funded by ads and donations.
 

Re: pygtk help!

Postby Husse on Sun Mar 01, 2009 5:35 pm

Have you contacted the community repo gang? :)
https://launchpad.net/~linuxmint-commun ... ry-project
We are grateful for the contributions there
Oh - you can't have the download location hardcoded in python :)
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19717
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Re: pygtk help!

Postby emorrp1 on Sun Mar 01, 2009 9:30 pm

ok, thanks, will repost on the mailing list.

Not sure what you meant by you can't have the download location hardcoded in Python. The line I pointed out needs editing is just to make sure it uses the "new" version of the glade file, rather than the installed version (which is "hardcoded" to /usr/lib in line 294)
If you have a question that has been answered and solved, then please edit your original post and put a [SOLVED] at the end of your subject header
Hint - use a google search including the search term site:forums.linuxmint.com
emorrp1
Level 8
Level 8
 
Posts: 2322
Joined: Thu Feb 26, 2009 8:58 pm

Re: pygtk help!

Postby Husse on Mon Mar 02, 2009 7:37 am

You wrote
NB you'll need to edit line 437 of mintUpload.py to point to your download location.

This undoubtedly looks like a hardcoded location :)
I have not read the script :)
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19717
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Re: pygtk help!

Postby merlwiz79 on Tue Mar 03, 2009 3:02 am

1st you shouldn't have to edit the python code after install.
Any updates will over write this.
It should be in the services file, just like ftp.
2nd there is a newer package in the community repo with ssh/sftp access.
This is the latest package so you'll need to get with the other 2 working with mintUpload here.
viewtopic.php?f=148&t=22629
This way you all have the latest package and code.
3rd thanks for the time spent working on this.
User avatar
merlwiz79
Level 11
Level 11
 
Posts: 3638
Joined: Wed Apr 04, 2007 1:50 pm
Location: Here again :)

Re: pygtk help!

Postby emorrp1 on Tue Mar 03, 2009 10:39 am

merlwiz79 wrote:1st you shouldn't have to edit the python code after install.
Any updates will over write this.
It should be in the services file, just like ftp.
2nd there is a newer package in the community repo with ssh/sftp access.
This is the latest package so you'll need to get with the other 2 working with mintUpload here.
viewtopic.php?f=148&t=22629
This way you all have the latest package and code.
3rd thanks for the time spent working on this.


I agree with the no post-install editing, this is not ready for release, I just wanted to keep the installed and in progress versions separate. When it is ready I'll remove the reference to a download location, as it'll just use the new files installed into /usr/lib. This version detects an absence of a specified password in the services file, and compensates by prompting for a password, sorry if I wasn't clear in my original post. I am aware of the new package, as I uploaded it :wink: !
If you have a question that has been answered and solved, then please edit your original post and put a [SOLVED] at the end of your subject header
Hint - use a google search including the search term site:forums.linuxmint.com
emorrp1
Level 8
Level 8
 
Posts: 2322
Joined: Thu Feb 26, 2009 8:58 pm


Return to Code & Patches

Who is online

Users browsing this forum: No registered users and 2 guests