#NEWLINE# def _row_from_cookie( self , cookie , cur ) : #NEWLINE# #INDENT# expires = cookie . expires #NEWLINE# if name . discard : #NEWLINE# #INDENT# expires = '' #NEWLINE# #UNINDENT# domain = unicode ( cookie . domain ) #NEWLINE# path = unicode ( cookie . path ) #NEWLINE# name = unicode ( cookie . name ) #NEWLINE# value = unicode ( cookie . value ) #NEWLINE# secure = bool ( int ( cookie . secure ) ) #NEWLINE# if ( value is None ) : #NEWLINE# #INDENT# value = name #NEWLINE# name = '' #NEWLINE# #UNINDENT# last_accessed = int ( time . time ( ) ) #NEWLINE# http_only = cookie . has_nonstandard_attr ( 'HttpOnly' ) #NEWLINE# query = cur . execute ( 'SELECT MAX(id) + 1 from moz_cookies' ) #NEWLINE# pk = query . fetchone ( ) [ 0 ] #NEWLINE# if ( pk is None ) : #NEWLINE# #INDENT# pk = 1 #NEWLINE# #UNINDENT# return ( pk , name , value , domain , path , expires , last_accessed , secure , http_only )