Package sabayon :: Package sources :: Module mozillasource
[hide private]
[frames] | no frames]

Module mozillasource

source code

Classes [hide private]
  file_state
  MozillaChange
  MozillaDelegate
  FileNotFoundError
  BadIniFileError
  FirefoxProfileFile
  JavascriptPreference
  JavascriptPrefsFile
  FirefoxProfile
  FirefoxProfilesIni
  BookmarkChange
  BookmarksFile

Functions [hide private]
  dprint(mask, fmt, *args)
  filter_attr(attr, exclude)
  get_files_delegate(source)
  get_type_from_path(rel_path)
  cat_file(path)
  run_unit_tests()

Variables [hide private]
  firefox_rel_path = ".mozilla/firefox"
  profiles_ini_rel_path = os.path.join(firefox_rel_path, "profiles.ini")
  sabayon_pref_rel_path = os.path.join(firefox_rel_path, "sabayon-prefs.js")
  sabayon_mandatory_pref_rel_path = os.path.join(firefox_rel_path, "sabayon-mandatory-pr...
  sabayon_bookmark_rel_path = os.path.join(firefox_rel_path, "sabayon-bookmarks.ht...
  sabayon_mandatory_bookmark_rel_path = os.path.join(firefox_rel_path, "sabayon-mandatory-bo...
  LOG_OPERATION = 0x00001
  LOG_CHANGE = 0x00002
  LOG_IGNORED_CHANGE = 0x00004
  LOG_APPLY = 0x00008
  LOG_SYNC = 0x00010
  LOG_PARSE = 0x00020
  LOG_PREF = 0x00040
  LOG_FILE_CONTENTS = 0x00080
  LOG_DATA = 0x00100
  LOG_VERBOSE = 0x10000
  bookmark_exclude_attrs = [re.compile("^id$"), re.compile("^last_"), re.compil...
  pref_re = re.compile("(pref|user_pref|lock_pref)\s*\(\s*\"([^,...

Function Details [hide private]

dprint(mask, fmt, *args)

source code 
None

filter_attr(attr, exclude)

source code 
None

get_files_delegate(source)

source code 
None

get_type_from_path(rel_path)

source code 
None

cat_file(path)

source code 
None

run_unit_tests()

source code 
None

Variables Details [hide private]

firefox_rel_path

None
Value:
".mozilla/firefox"                                                     
      

profiles_ini_rel_path

None
Value:
os.path.join(firefox_rel_path, "profiles.ini")                         
      

sabayon_pref_rel_path

None
Value:
os.path.join(firefox_rel_path, "sabayon-prefs.js")                     
      

sabayon_mandatory_pref_rel_path

None
Value:
os.path.join(firefox_rel_path, "sabayon-mandatory-prefs.js")           
      

sabayon_bookmark_rel_path

None
Value:
os.path.join(firefox_rel_path, "sabayon-bookmarks.html")               
      

sabayon_mandatory_bookmark_rel_path

None
Value:
os.path.join(firefox_rel_path, "sabayon-mandatory-bookmarks.html")     
      

LOG_OPERATION

None
Value:
0x00001                                                                
      

LOG_CHANGE

None
Value:
0x00002                                                                
      

LOG_IGNORED_CHANGE

None
Value:
0x00004                                                                
      

LOG_APPLY

None
Value:
0x00008                                                                
      

LOG_SYNC

None
Value:
0x00010                                                                
      

LOG_PARSE

None
Value:
0x00020                                                                
      

LOG_PREF

None
Value:
0x00040                                                                
      

LOG_FILE_CONTENTS

None
Value:
0x00080                                                                
      

LOG_DATA

None
Value:
0x00100                                                                
      

LOG_VERBOSE

None
Value:
0x10000                                                                
      

bookmark_exclude_attrs

None
Value:
[re.compile("^id$"), re.compile("^last_"), re.compile("^add_"),]       
      

pref_re

None
Value:
re.compile("(pref|user_pref|lock_pref)\s*\(\s*\"([^,\"]+)\s*\"\s*,\s*(
.+?)\)\s*;\s*$", re.MULTILINE)