Mercurial > libervia-backend
comparison frontends/quick_frontend/quick_app.py @ 68:9b842086d915
multiple profiles update
- Wix: new profile managed, it appear at launch in place of the contact list, and disappear once the profile is choosen
- SàT: default profile is now saved, first one is choosed is no default profile
- Bridge: new delete profile method
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 25 Feb 2010 17:09:18 +1100 |
parents | 8147b4f40809 |
children | 8f2ed279784b |
comparison
equal
deleted
inserted
replaced
67:0e50dd3a234a | 68:9b842086d915 |
---|---|
60 error('There is already one profile plugged (we are in single profile mode) !') | 60 error('There is already one profile plugged (we are in single profile mode) !') |
61 return | 61 return |
62 profile = self.bridge.getProfileName(profile_key) | 62 profile = self.bridge.getProfileName(profile_key) |
63 if not profile: | 63 if not profile: |
64 error("The profile asked doesn't exist") | 64 error("The profile asked doesn't exist") |
65 return | |
65 if self.profiles.has_key(profile): | 66 if self.profiles.has_key(profile): |
66 warning("The profile is already plugged") | 67 warning("The profile is already plugged") |
67 return | 68 return |
68 self.profiles[profile]={} | 69 self.profiles[profile]={} |
69 if self.single_profile: | 70 if self.single_profile: |