#NEWLINE# def _addDefaultFolders( self , event ) : #NEWLINE# #INDENT# '\n        This callback creates "Public" and "Private" folders on a user, after\n        it is first created.\n\n        This generally should not be called or overridden directly, but it may\n        be unregistered from the `model.user.save.created` event.\n        ' #NEWLINE# if ( self . model ( 'setting' ) . get ( SettingKey . USER_DEFAULT_FOLDERS , 'public_private' ) == 'public_private' ) : #NEWLINE# #INDENT# user = event . info #NEWLINE# publicFolder = self . model ( 'folder' ) . createFolder ( user , 'Public' , parentType = 'user' , public = True , creator = user ) #NEWLINE# privateFolder = self . model ( 'folder' ) . createFolder ( user , 'Private' , parentType = 'user' , public = False , creator = user ) #NEWLINE# self . model ( 'folder' ) . setUserAccess ( publicFolder , self , AccessType . ADMIN , save = True ) #NEWLINE# self . model ( 'folder' ) . setUserAccess ( privateFolder , user , AccessType . ADMIN , save = True )