Changeset 4451 for syncer/trunk
- Timestamp:
- Apr 26, 2017, 12:33:52 PM (4 years ago)
- Location:
- syncer/trunk/fuentes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
syncer/trunk/fuentes/debian/changelog
r4428 r4451 1 syncer (1.3) xenial; urgency=medium 2 3 * Fix processing errors with wrong filenames 4 5 -- M.Angel Juan <m.angel.juan@gmail.com> Wed, 26 Apr 2017 12:32:44 +0200 6 1 7 syncer (1.2) xenial; urgency=medium 2 8 -
syncer/trunk/fuentes/syncer.install/usr/lib/syncer/plugins/plank.py
r4039 r4451 41 41 else: 42 42 filelist.append(os.path.join(root,file)) 43 return filelist 43 if filelist == []: 44 return None 45 else: 46 return filelist 44 47 45 48 except: … … 70 73 where='skel' 71 74 file_name = self.search_item(where, params['option']) 72 if file_name == None:75 if not file_name: 73 76 return True,'Not found '+params['option'] 77 74 78 # check if already added 75 79 if self.search_item('plank',params['option']): 76 80 return True,'Already added' 81 77 82 # create element 78 83 if where == 'applications': … … 84 89 with open(os.path.expanduser('~')+'/.config/plank/dock1/launchers/'+params['option']+'.dockitem','w') as f: 85 90 f.writelines(entry) 91 86 92 return True,'Added {}'.format(file_name) 87 93 except Exception as e: 88 return False,str(e)94 return True,'Not added, error is: {}'.format(str(e)) 89 95 elif params['action'] == 'remove': 90 96 try:
Note: See TracChangeset
for help on using the changeset viewer.