flake8 fixes (several remain to be fixed)
This commit is contained in:
		
							parent
							
								
									88ea8e1f4f
								
							
						
					
					
						commit
						f5c86da271
					
				@ -202,7 +202,8 @@ from errno import EEXIST
 | 
				
			|||||||
from gi.repository import SugarExt
 | 
					from gi.repository import SugarExt
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def _(msg): return gettext.dgettext('sugar-toolkit-gtk3', msg)
 | 
					def _(msg):
 | 
				
			||||||
 | 
					    return gettext.dgettext('sugar-toolkit-gtk3', msg)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
SCOPE_PRIVATE = 'private'
 | 
					SCOPE_PRIVATE = 'private'
 | 
				
			||||||
@ -288,16 +289,26 @@ class Activity(Window, Gtk.Container):
 | 
				
			|||||||
    Initialise an Activity.
 | 
					    Initialise an Activity.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    Args:
 | 
					    Args:
 | 
				
			||||||
        handle (:class:`~sugar3.activity.activityhandle.ActivityHandle`): instance providing the activity id and access to the presence service which *may* provide sharing for this application
 | 
					        handle (:class:`~sugar3.activity.activityhandle.ActivityHandle`):
 | 
				
			||||||
        create_jobject (boolean): DEPRECATED: define if it should create a journal object if we are not resuming. The parameter is ignored, and always will be created a object in the Journal.
 | 
					            instance providing the activity id and access to the presence
 | 
				
			||||||
 | 
					            service which *may* provide sharing for this application
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        create_jobject (boolean):
 | 
				
			||||||
 | 
					            DEPRECATED: define if it should create a journal object if
 | 
				
			||||||
 | 
					            we are not resuming. The parameter is ignored, and always
 | 
				
			||||||
 | 
					            will be created a object in the Journal.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    **Signals:**
 | 
					    **Signals:**
 | 
				
			||||||
        * **shared** - the activity has been shared on a network in order that other users may join,
 | 
					        * **shared** - the activity has been shared on a network in
 | 
				
			||||||
        * **joined** - the activity has joined with other instances of the activity to create a shared network activity.
 | 
					            order that other users may join,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        * **joined** - the activity has joined with other instances of
 | 
				
			||||||
 | 
					            the activity to create a shared network activity.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    Side effects:
 | 
					    Side effects:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        * sets the gdk screen DPI setting (resolution) to the Sugar screen resolution.
 | 
					        * sets the gdk screen DPI setting (resolution) to the Sugar
 | 
				
			||||||
 | 
					          screen resolution.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        * connects our "destroy" message to our _destroy_cb method.
 | 
					        * connects our "destroy" message to our _destroy_cb method.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -1097,8 +1108,8 @@ class Activity(Window, Gtk.Container):
 | 
				
			|||||||
        '''
 | 
					        '''
 | 
				
			||||||
        self._invites_queue.append((account_path, contact_id))
 | 
					        self._invites_queue.append((account_path, contact_id))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (self.shared_activity is None
 | 
					        if (self.shared_activity is None or
 | 
				
			||||||
                or not self.shared_activity.props.joined):
 | 
					                not self.shared_activity.props.joined):
 | 
				
			||||||
            self.share(True)
 | 
					            self.share(True)
 | 
				
			||||||
        else:
 | 
					        else:
 | 
				
			||||||
            self._send_invites()
 | 
					            self._send_invites()
 | 
				
			||||||
@ -1498,6 +1509,7 @@ class _ClientHandler(dbus.service.Object):
 | 
				
			|||||||
        else:
 | 
					        else:
 | 
				
			||||||
            logging.debug('InvalidArgument')
 | 
					            logging.debug('InvalidArgument')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
_session = None
 | 
					_session = None
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user