- Timestamp:
- Mar 13, 2017, 2:54:01 PM (3 years ago)
- Location:
- lliurex-gdrive/trunk/fuentes/lliurex-gdrive-gui.install/usr/share/lliurex-gdrive
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
lliurex-gdrive/trunk/fuentes/lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/LliurexGoogleDriveManager.py
r3911 r3914 174 174 175 175 for profile in self.profiles_config: 176 print profile 177 print self.profiles_config 176 178 automount=self.profiles_config[profile]["automount"] 177 179 178 180 if automount: 179 181 mountpoint=self.profiles_config[profile]["mountpoint"] 182 print mountpoint 180 183 self.mount_drive(profile,mountpoint) 181 184 … … 321 324 322 325 result=True 326 dismount=True 323 327 324 328 #profile=str(profile) … … 328 332 329 333 if os.path.exists(GDRIVE_CONFIG_DIR+profile): 330 334 print "Existe perfil" 331 335 is_mountpoint_mounted=self.check_mountpoint_status(mountpoint) 332 336 print is_mountpoint_mounted 337 333 338 if is_mountpoint_mounted["status"]: 334 339 dismount=self.dismount_mountpoint(mountpoint) 335 340 336 if dismount: 337 if profile!="": 338 shutil.rmtree(os.path.join(GDRIVE_CONFIG_DIR+profile)) 339 self.dprint("Delete profile: '%s' profile has been delete"%profile) 340 341 if dismount: 342 if profile!="": 343 shutil.rmtree(os.path.join(GDRIVE_CONFIG_DIR+profile)) 344 self.dprint("Delete profile: '%s' profile has been delete"%profile) 341 345 self.save_profiles(info) 342 346 return dismount -
lliurex-gdrive/trunk/fuentes/lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py
r3911 r3914 177 177 self.email_entry.set_editable(False) 178 178 #self.mountpoint_entry.set_state(Gtk.STATE.INSENSITIVE) 179 #self.automount_entry.set_ editable(False)179 #self.automount_entry.set_active(False) 180 180 181 181 #def disable_entry_profile_dialog … … 207 207 #self.email_entry.set_editable(True) 208 208 self.mountpoint_entry.set_filename(os.environ["HOME"]) 209 self.automount_entry.set_ state(False)209 self.automount_entry.set_active(False) 210 210 self.profile_msg.set_text("") 211 211 self.edition=False … … 256 256 257 257 if status_mod["result"]: 258 print status_mod 258 259 259 260 if status_mod["action"]=="Mount": … … 290 291 self.mountpoint_entry.set_filename(mountpoint) 291 292 automount=self.profiles_info[profile.decode("utf-8")]["automount"] 292 self.automount_entry.set_ state(automount)293 self.automount_entry.set_active(automount) 293 294 self.edition=True 294 295
Note: See TracChangeset
for help on using the changeset viewer.