rem
stringlengths
1
322k
add
stringlengths
0
2.05M
context
stringlengths
4
228k
meta
stringlengths
156
215
'access_acl': "%s,g:%s:r-x,g:www-data:--x,%s" % (acl_base,
'access_acl': "%s,g:%s:r-x,g:www-data:--x,%s" % ( acl_base,
def check_user(user, minimal = minimal, batch = batch, auto_answer = auto_answer):
2d1ecedf1a4d5090557df25efcb2a065c17595e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/2d1ecedf1a4d5090557df25efcb2a065c17595e0/users.py
logging.progress("Checking user home dir %s contents, this can take a while..." % styles.stylize(
logging.progress("Checking user home dir %s contents," " this can take a while..." % styles.stylize(
def check_user(user, minimal = minimal, batch = batch, auto_answer = auto_answer):
2d1ecedf1a4d5090557df25efcb2a065c17595e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/2d1ecedf1a4d5090557df25efcb2a065c17595e0/users.py
[ home_dir_info ], batch, auto_answer, UsersController.groups, self)
[ home_dir_info ], batch, auto_answer, UsersController.groups, self)
def check_user(user, minimal = minimal, batch = batch, auto_answer = auto_answer):
2d1ecedf1a4d5090557df25efcb2a065c17595e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/2d1ecedf1a4d5090557df25efcb2a065c17595e0/users.py
logging.warning("User home dir %s is missing, please repair this first." % styles.stylize(
logging.warning("User home dir %s is missing," " please repair this first." % styles.stylize(
def check_user(user, minimal = minimal, batch = batch, auto_answer = auto_answer):
2d1ecedf1a4d5090557df25efcb2a065c17595e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/2d1ecedf1a4d5090557df25efcb2a065c17595e0/users.py
special_dirs, batch, auto_answer, UsersController.groups, self)
special_dirs, batch, auto_answer, UsersController.groups, self)
def check_user(user, minimal = minimal, batch = batch, auto_answer = auto_answer):
2d1ecedf1a4d5090557df25efcb2a065c17595e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/2d1ecedf1a4d5090557df25efcb2a065c17595e0/users.py
logging.warning("Extended checks are not yet implemented for users.")
logging.warning( "Extended checks are not yet implemented for users.")
def check_user(user, minimal = minimal, batch = batch, auto_answer = auto_answer):
2d1ecedf1a4d5090557df25efcb2a065c17595e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/2d1ecedf1a4d5090557df25efcb2a065c17595e0/users.py
raise exceptions.LicornCheckError("Some user(s) check(s) didn't pass, or weren't corrected.")
raise exceptions.LicornCheckError( "Some user(s) check(s) didn't pass, or weren't corrected.")
def check_user(user, minimal = minimal, batch = batch, auto_answer = auto_answer):
2d1ecedf1a4d5090557df25efcb2a065c17595e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/2d1ecedf1a4d5090557df25efcb2a065c17595e0/users.py
raise exceptions.BadArgumentError("You must specify an UID or a login to test existence of.")
raise exceptions.BadArgumentError( "You must specify an UID or a login to test existence of.")
def user_exists(uid = None, login = None): if uid: return UsersController.users.has_key(uid) if login: return UsersController.login_cache.has_key(login)
2d1ecedf1a4d5090557df25efcb2a065c17595e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/2d1ecedf1a4d5090557df25efcb2a065c17595e0/users.py
logging.warning("You passed an uid to login_to_uid(): %d (guess its login is « %s » )." % (login, UsersController.users[login]['login']))
logging.warning("You passed an uid to login_to_uid():" " %d (guess its login is « %s » )." % ( login, UsersController.users[login]['login']))
def login_to_uid(login): """ Return the uid of the user 'login' """ try: # use the cache, Luke ! return UsersController.login_cache[login] except KeyError: try: int(login) logging.warning("You passed an uid to login_to_uid(): %d (guess its login is « %s » )." % (login, UsersController.users[login]['login'])) except Val...
2d1ecedf1a4d5090557df25efcb2a065c17595e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/2d1ecedf1a4d5090557df25efcb2a065c17595e0/users.py
raise exceptions.LicornRuntimeException(logging.SYSU_USER_DOESNT_EXIST % login)
raise exceptions.LicornRuntimeException( logging.SYSU_USER_DOESNT_EXIST % login)
def login_to_uid(login): """ Return the uid of the user 'login' """ try: # use the cache, Luke ! return UsersController.login_cache[login] except KeyError: try: int(login) logging.warning("You passed an uid to login_to_uid(): %d (guess its login is « %s » )." % (login, UsersController.users[login]['login'])) except Val...
2d1ecedf1a4d5090557df25efcb2a065c17595e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/2d1ecedf1a4d5090557df25efcb2a065c17595e0/users.py
return uid < UsersController.configuration.users.uid_min or uid > UsersController.configuration.users.uid_max
return uid < UsersController.configuration.users.uid_min or \ uid > UsersController.configuration.users.uid_max
def is_system_uid(uid): """ Return true if uid is system.""" return uid < UsersController.configuration.users.uid_min or uid > UsersController.configuration.users.uid_max
2d1ecedf1a4d5090557df25efcb2a065c17595e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/2d1ecedf1a4d5090557df25efcb2a065c17595e0/users.py
return UsersController.is_system_uid(UsersController.login_cache[login])
return UsersController.is_system_uid( UsersController.login_cache[login])
def is_system_login(login): """ return true if login is system. """ try: return UsersController.is_system_uid(UsersController.login_cache[login]) except KeyError: raise exceptions.LicornRuntimeException(logging.SYSU_USER_DOESNT_EXIST % login)
2d1ecedf1a4d5090557df25efcb2a065c17595e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/2d1ecedf1a4d5090557df25efcb2a065c17595e0/users.py
raise exceptions.LicornRuntimeException(logging.SYSU_USER_DOESNT_EXIST % login)
raise exceptions.LicornRuntimeException( logging.SYSU_USER_DOESNT_EXIST % login)
def is_system_login(login): """ return true if login is system. """ try: return UsersController.is_system_uid(UsersController.login_cache[login]) except KeyError: raise exceptions.LicornRuntimeException(logging.SYSU_USER_DOESNT_EXIST % login)
2d1ecedf1a4d5090557df25efcb2a065c17595e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/2d1ecedf1a4d5090557df25efcb2a065c17595e0/users.py
login = hlstr.validate_name(str(firstname + '.' + lastname), maxlenght = UsersController.configuration.users.login_maxlenght)
login = hlstr.validate_name(str(firstname + '.' + lastname), maxlenght = UsersController.configuration.users.login_maxlenght)
def make_login(lastname = "", firstname = "", inputlogin = ""): """ Make a valid login from user's firstname and lastname."""
2d1ecedf1a4d5090557df25efcb2a065c17595e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/2d1ecedf1a4d5090557df25efcb2a065c17595e0/users.py
login = hlstr.validate_name(str(inputlogin), maxlenght = UsersController.configuration.users.login_maxlenght)
login = hlstr.validate_name(str(inputlogin), maxlenght = UsersController.configuration.users.login_maxlenght)
def make_login(lastname = "", firstname = "", inputlogin = ""): """ Make a valid login from user's firstname and lastname."""
2d1ecedf1a4d5090557df25efcb2a065c17595e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/2d1ecedf1a4d5090557df25efcb2a065c17595e0/users.py
raise exceptions.LicornRuntimeError("Can't build a valid login (got %s, which doesn't verify %s) with the firstname/lastname you provided (%s %s)." % (login, hlstr.regex['login'], firstname, lastname) )
raise exceptions.LicornRuntimeError( "Can't build a valid login (got %s, which doesn't verify %s)" " with the firstname/lastname you provided (%s %s)." % ( login, hlstr.regex['login'], firstname, lastname) )
def make_login(lastname = "", firstname = "", inputlogin = ""): """ Make a valid login from user's firstname and lastname."""
2d1ecedf1a4d5090557df25efcb2a065c17595e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/2d1ecedf1a4d5090557df25efcb2a065c17595e0/users.py
raise exceptions.BadArgumentError("You must specify an UID or a login to get primary_group of.")
raise exceptions.BadArgumentError( "You must specify an UID or a login to get primary_group of.")
def primary_group(login = None, uid = None): if login: return UsersController.users[UsersController.login_cache[login]]['primary_group'] if uid: return UsersController.users[uid]['primary_group']
2d1ecedf1a4d5090557df25efcb2a065c17595e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/2d1ecedf1a4d5090557df25efcb2a065c17595e0/users.py
socket.gethostbyaddr(self.server.server_address[0])[0], wmi_port, retdata))
hostaddr, wmi_port, retdata))
def serve_virtual_uri(self): """ Serve dynamic URIs with our own code, and create pages on the fly. """
8a7aea775d17319b66b0ba784a15b1460a34e424 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/8a7aea775d17319b66b0ba784a15b1460a34e424/wmi.py
def strip_dates(str):
def strip_moving_data(str):
def strip_dates(str): """ strip dates from warnings and traces, else outputs and references always compare false .""" return re.sub(r'(\.\d\d\d\d\d\d\d\d-\d\d\d\d\d\d|\s\[\d\d\d\d/\d\d/\d\d\s\d\d:\d\d:\d\d\.\d\d\d\d\]\s)', r' [D/T] ', str)
df7f2fc19ff24093cc1abc91e8666ec3ecb2090a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/df7f2fc19ff24093cc1abc91e8666ec3ecb2090a/core.py
r' [D/T] ', str)
r' [D/T] ',re.sub(r'Autogenerated\spassword\sfor\suser\s(.*):\s.*', r'Autogenerated password for user \1: [Password]', str))
def strip_dates(str): """ strip dates from warnings and traces, else outputs and references always compare false .""" return re.sub(r'(\.\d\d\d\d\d\d\d\d-\d\d\d\d\d\d|\s\[\d\d\d\d/\d\d/\d\d\s\d\d:\d\d:\d\d\.\d\d\d\d\]\s)', r' [D/T] ', str)
df7f2fc19ff24093cc1abc91e8666ec3ecb2090a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/df7f2fc19ff24093cc1abc91e8666ec3ecb2090a/core.py
strip_dates(output))
strip_moving_data(output))
def SaveOutput(self, cmdnum, output, code):
df7f2fc19ff24093cc1abc91e8666ec3ecb2090a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/df7f2fc19ff24093cc1abc91e8666ec3ecb2090a/core.py
output = strip_dates(output)
output = strip_moving_data(output)
def RunCommand(self, cmdnum, batch=False):
df7f2fc19ff24093cc1abc91e8666ec3ecb2090a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/df7f2fc19ff24093cc1abc91e8666ec3ecb2090a/core.py
def RunCommand(self, cmdnum, batch=False):
df7f2fc19ff24093cc1abc91e8666ec3ecb2090a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/df7f2fc19ff24093cc1abc91e8666ec3ecb2090a/core.py
strip_dates(output),
strip_moving_data(output),
def RunCommand(self, cmdnum, batch=False):
df7f2fc19ff24093cc1abc91e8666ec3ecb2090a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/df7f2fc19ff24093cc1abc91e8666ec3ecb2090a/core.py
return (strip_dates(output), retcode)
return (strip_moving_data(output), retcode)
def RunCommand(self, cmdnum, batch=False):
df7f2fc19ff24093cc1abc91e8666ec3ecb2090a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/df7f2fc19ff24093cc1abc91e8666ec3ecb2090a/core.py
file = gzip.GzipFile( filename='%s/%s/out.txt.gz' % (self.base_path, cmdnum), mode='wb', compresslevel=9)
try: os.unlink(filename_txt) except (OSError, IOError), e: if e.errno != 2: raise e file = gzip.GzipFile(filename=filename_gz, mode='wb', compresslevel=9)
def SaveOutput(self, cmdnum, output, code):
4a39be2a839d5859b17f80ac690543414526444a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/4a39be2a839d5859b17f80ac690543414526444a/core.py
file = open('%s/%s/out.txt' % (self.base_path, cmdnum), 'w')
try: os.unlink(filename_gz) except (OSError, IOError), e: if e.errno != 2: raise e file = open(filename_txt, 'w')
def SaveOutput(self, cmdnum, output, code):
4a39be2a839d5859b17f80ac690543414526444a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/4a39be2a839d5859b17f80ac690543414526444a/core.py
ref_code = int(open( '%s/%s/code.txt' % (self.base_path, cmdnum)).read())
ref_code = int( open('%s/%s/code.txt' % (self.base_path, cmdnum)).read() )
def RunCommand(self, cmdnum, batch=False):
4a39be2a839d5859b17f80ac690543414526444a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/4a39be2a839d5859b17f80ac690543414526444a/core.py
for login in opts.login.split(','):
for login in opts.login.split(',') if opts.login != None else [ None ]:
def add_user(opts, args): """ Add a user account on the system. """ configuration = LicornConfiguration() users = UsersController(configuration) groups = GroupsController(configuration, users) if opts.profile: profiles = ProfilesController(configuration, groups, users) if opts.firstname is None: firstname = None els...
3e4d205ddfa5f4faf024d55a5c42576b7c58e75e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/3e4d205ddfa5f4faf024d55a5c42576b7c58e75e/add.py
shutil.rmtree(home)
try: shutil.rmtree(home) except (IOError, OSError), e: if e.errno == 2: logging.notice("Can't remove %s, it doesn't exist !" % \ styles.stylize(styles.ST_PATH, home)) else: raise e
def DeleteGroup(self, name, del_users, no_archive, bygid=None, batch=False): """ Delete an Licorn group """ if name is None and bygid is None: raise exceptions.BadArgumentError( "You must specify a name or a GID.")
fd3cbc8883536ea8f55f3aeb7eb396e5089fbcc4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/fd3cbc8883536ea8f55f3aeb7eb396e5089fbcc4/groups.py
logging.warning("Can't archive %s, it doesn't exist !" % \
logging.notice("Can't archive %s, it doesn't exist !" % \
def DeleteGroup(self, name, del_users, no_archive, bygid=None, batch=False): """ Delete an Licorn group """ if name is None and bygid is None: raise exceptions.BadArgumentError( "You must specify a name or a GID.")
fd3cbc8883536ea8f55f3aeb7eb396e5089fbcc4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/fd3cbc8883536ea8f55f3aeb7eb396e5089fbcc4/groups.py
(opts.gid, groups.confirm_gid) ])
(opts.gid, groups.confirm_gid), ], selection )
def del_group(opts, args): """ delete an Licorn group. """ configuration = LicornConfiguration() users = UsersController(configuration) groups = GroupsController(configuration, users, warnings=False) profiles = ProfilesController(configuration, groups, users) gids_to_del = cli_select(groups, 'group', args, [ (opts.na...
ed27e6b1e7125829b2896234c4c3746b508dda28 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/ed27e6b1e7125829b2896234c4c3746b508dda28/del.py
if users.user_exists(login = authorization[0]) \ and users.check_password(authorization[0], authorization[1]): if groups.group_exists(wmi_group): if authorization[0] in \ groups.auxilliary_members(wmi_group):
try : if users.user_exists(login = authorization[0]) \ and users.check_password(authorization[0], authorization[1]): if groups.group_exists(wmi_group): if authorization[0] in \ groups.auxilliary_members(wmi_group): self.http_user = authorization[0] return True else:
def user_authorized(self): """ Return True if authorization exists AND user is authorized."""
cb6c58a714751c7c15db22610596234f47738d42 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/cb6c58a714751c7c15db22610596234f47738d42/wmi.py
else: self.http_user = authorization[0] return True
except exceptions.BadArgumentError: logging.warning('empty username or password sent as authentification string into WMI.') return False
def user_authorized(self): """ Return True if authorization exists AND user is authorized."""
cb6c58a714751c7c15db22610596234f47738d42 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/cb6c58a714751c7c15db22610596234f47738d42/wmi.py
<title>%s WMI: %s</title>
<title>%s %s</title>
def head(title = _("administration %s") % configuration.app_name): """Build the HTML Page header. Bubble Tooltips come from: http://www.dustindiaz.com/sweet-titles Rounded Divs comme from : http://www.html.it/articoli/niftycube/index.html """ return """<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://w...
00a7c63aee2a4aa090cfef3676b7f9fe6fe8c0d5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/00a7c63aee2a4aa090cfef3676b7f9fe6fe8c0d5/utils.py
""" % (configuration.app_name, title)
""" % (_("%s WMI:") %configuration.app_name, title)
def head(title = _("administration %s") % configuration.app_name): """Build the HTML Page header. Bubble Tooltips come from: http://www.dustindiaz.com/sweet-titles Rounded Divs comme from : http://www.html.it/articoli/niftycube/index.html """ return """<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://w...
00a7c63aee2a4aa090cfef3676b7f9fe6fe8c0d5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/00a7c63aee2a4aa090cfef3676b7f9fe6fe8c0d5/utils.py
def test_profiles(context): """Test the applying feature of profiles.""" pname = 'profil_test' gname = 'group_test' #fix #271 ScenarioTest([ ADD + [ 'profile', '--name=%s' % pname, '-v' ], GET + [ 'profiles' ], ADD + [ 'group', '--name=%s' % gname, '--system', '-v' ], ADD + [ 'group', '--name=%s2' % gname, '--system'...
6f39ea46ad8784a0de6d5e432b3dd989d632dfa6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/6f39ea46ad8784a0de6d5e432b3dd989d632dfa6/core.py
descr='''scenario for ticket
descr='''scenario for ticket ''' --add-group and --del-groups & fix
def test_profiles(context): """Test the applying feature of profiles.""" pname = 'profil_test' gname = 'group_test' #fix #271 ScenarioTest([ ADD + [ 'profile', '--name=%s' % pname, '-v' ], GET + [ 'profiles' ], ADD + [ 'group', '--name=%s' % gname, '--system', '-v' ], ADD + [ 'group', '--name=%s2' % gname, '--system'...
6f39ea46ad8784a0de6d5e432b3dd989d632dfa6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/6f39ea46ad8784a0de6d5e432b3dd989d632dfa6/core.py
if opts.profile and opts.profile not in LMC.profiles: opts.profile = LMC.profiles.name_to_group(opts.profile)
if opts.profile: opts.profile = LMC.profiles.guess_identifier(opts.profile)
def add_user(self, opts, args): """ Add a user account on the system. """
ea1260748abd9311f9ea79803fd656aeb1a6f2ae /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/ea1260748abd9311f9ea79803fd656aeb1a6f2ae/rwi.py
def __init__(self, configuration, users=None, groups=None):
def __init__(self, configuration, users=None, groups=None, warnings=True):
def __init__(self, configuration, users=None, groups=None): """ Init the LDAP backend instance. """
b1159a5813ef33a6f84c221cee0bd138269a9ead /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/b1159a5813ef33a6f84c221cee0bd138269a9ead/ldap_backend.py
except herror: hostaddr = self.server.server_address
except socket.herror: hostaddr = self.server.server_address[0]
def serve_virtual_uri(self): """ Serve dynamic URIs with our own code, and create pages on the fly. """
af9d2fddfd652e6d06f47693834f54a72046cb4a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/af9d2fddfd652e6d06f47693834f54a72046cb4a/wmi.py
return __pyc_primitive__(__pyc_symbol__("index_object"), self, key)
return __pyc_primitive__(__pyc_symbol__("index_object"), self, __pyc_clone_constants__(key))
def __getitem__(self, key): return __pyc_primitive__(__pyc_symbol__("index_object"), self, key)
4300d8f5867fd3ff66f0f6069ebd9a691a0a4244 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6222/4300d8f5867fd3ff66f0f6069ebd9a691a0a4244/__pyc__.py
return __pyc_primitive__(__pyc_symbol__("set_index_object"), self, key, value)
return __pyc_primitive__(__pyc_symbol__("set_index_object"), self, __pyc_clone_constants__(key), value)
def __setitem__(self, key, value): return __pyc_primitive__(__pyc_symbol__("set_index_object"), self, key, value)
4300d8f5867fd3ff66f0f6069ebd9a691a0a4244 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6222/4300d8f5867fd3ff66f0f6069ebd9a691a0a4244/__pyc__.py
self.longTypes = set(('ACTI','ALCH','AMMO','FURN','MISC','MSTT','PROJ','WEAP','CONT','DOOR','LIGH','STAT', 'DEBR','EXPL','MGEF','SCPT','SPEL','SOUN','NPC_','WATR','TXST','ENCH','FLST','IPDS','STAT','NOTE','QUST'))
self.longTypes = set(('ACTI','ALCH','AMMO','ARMO','BOOK','CONT','CREA','DEBR','DIAL', 'DOOR','ENCH','EXPL','FACT','FLOR','FLST','FURN','INFO','INGR', 'IPDS','KEYM','LIGH','MGEF','MISC','MSTT','NOTE','NPC_','PROJ', 'QUST','SCPT','SOUN','SPEL','STAT','TERM','TXST','WATR','WEAP'))
def initPatchFile(self,patchFile,loadMods): """Prepare to handle specified patch mod. All functions are called after this.""" Patcher.initPatchFile(self,patchFile,loadMods) self.id_data = {} #--Names keyed by long fid. self.srcClasses = set() #--Record classes actually provided by src mods/files. self.sourceMods = self...
6073e968e057113196b5f851cf9eca178ed7ea76 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/6073e968e057113196b5f851cf9eca178ed7ea76/bosh.py
MelString('DESC','descriptio'),
MelString('DESC','description'),
def loadData(self,record,ins,type,size,readId): if size == 4: MelStruct.loadData(self,record,ins,type,size,readId) return elif size == 3: unpacked = ins.unpack('BBB',size,readId) else: raise "Unexpected size encountered for TERM:DNAM subrecord: %s" % size unpacked += self.defaults[len(unpacked):] setter = record.__seta...
e5bcee9d25077a57f557ff191c68e98bfa16e3c1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/e5bcee9d25077a57f557ff191c68e98bfa16e3c1/bosh.py
progress.setFull(len(self.sourceMods))
progress.setFull(1+len(self.sourceMods))
def checkMasterCellBlockData(cellBlock): if not cellBlock.cell.flags1.ignored: fid = cellBlock.cell.fid if fid not in tempCellData: return if fid not in cellData: cellData[fid] = {} cellData[fid+('flags',)] = {} for attr in attrs: if tempCellData[fid][attr] != cellBlock.cell.__getattribute__(attr): cellData[fid][attr] ...
1ff0958e86fd2e39ae9dca6669fae76aa5f3ddab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/1ff0958e86fd2e39ae9dca6669fae76aa5f3ddab/bosh.py
progress.setFull(len(self.sourceMods))
progress.setFull(1+len(self.sourceMods))
def initData(self,progress): """Get graphics from source files.""" if not self.isActive: return id_data = self.id_data recAttrs_class = self.recAttrs_class loadFactory = LoadFactory(False,*recAttrs_class.keys()) longTypes = self.longTypes & set(x.classType for x in self.recAttrs_class) progress.setFull(len(self.sourceM...
1ff0958e86fd2e39ae9dca6669fae76aa5f3ddab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/1ff0958e86fd2e39ae9dca6669fae76aa5f3ddab/bosh.py
progress.setFull(len(self.sourceMods))
progress.setFull(1+len(self.sourceMods))
def initData(self,progress): """Get graphics from source files.""" if not self.isActive: return id_data = self.id_data recAttrs_class = self.recAttrs_class loadFactory = LoadFactory(False,MreNpc,MreCrea) longTypes = self.longTypes & set(x.classType for x in self.actorClasses) progress.setFull(len(self.sourceMods)) cach...
1ff0958e86fd2e39ae9dca6669fae76aa5f3ddab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/1ff0958e86fd2e39ae9dca6669fae76aa5f3ddab/bosh.py
progress.setFull(len(self.sourceMods))
progress.setFull(1+len(self.sourceMods))
def initData(self,progress): """Get graphics from source files.""" if not self.isActive: return id_data = self.id_data recAttrs_class = self.recAttrs_class loadFactory = LoadFactory(False,*recAttrs_class.keys()) longTypes = self.longTypes & set(x.classType for x in self.recAttrs_class) progress.setFull(len(self.sourceM...
1ff0958e86fd2e39ae9dca6669fae76aa5f3ddab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/1ff0958e86fd2e39ae9dca6669fae76aa5f3ddab/bosh.py
progress.setFull(len(self.srcMods))
progress.setFull(1+len(self.srcMods))
def initData(self,progress): """Get data from source files.""" OOOandUOP = False if GPath("Oscuro's_Oblivion_Overhaul.esm") in self.srcMods or GPath("Oscuro's_Oblivion_Overhaul.esp") in self.srcMods: if GPath("Unofficial Oblivion Patch.esp") in self.srcMods: OOOandUOP = True longTypes = self.longTypes loadFactory = Loa...
1ff0958e86fd2e39ae9dca6669fae76aa5f3ddab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/1ff0958e86fd2e39ae9dca6669fae76aa5f3ddab/bosh.py
progress.setFull(len(self.sourceMods))
progress.setFull(1+len(self.sourceMods))
def initData(self,progress): """Get graphics from source files.""" if not self.isActive: return self.classestemp = set() id_data = self.id_data recAttrs_class = self.recAttrs_class loadFactory = LoadFactory(False,*recAttrs_class.keys()) longTypes = self.longTypes & set(x.classType for x in self.recAttrs_class) progress...
1ff0958e86fd2e39ae9dca6669fae76aa5f3ddab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/1ff0958e86fd2e39ae9dca6669fae76aa5f3ddab/bosh.py
progress.setFull(len(self.srcFiles))
progress.setFull(1+len(self.srcFiles))
def initData(self,progress): """Get names from source files.""" if not self.isActive: return actorFactions = ActorFactions(aliases=self.patchFile.aliases) progress.setFull(len(self.srcFiles)) for srcFile in self.srcFiles: srcPath = GPath(srcFile) patchesDir = dirs['patches'].list() if reModExt.search(srcFile.s): if src...
1ff0958e86fd2e39ae9dca6669fae76aa5f3ddab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/1ff0958e86fd2e39ae9dca6669fae76aa5f3ddab/bosh.py
progress.setFull(len(self.srcFiles))
progress.setFull(1+len(self.srcFiles))
def initData(self,progress): """Get names from source files.""" if not self.isActive: return factionRelations = FactionRelations(aliases=self.patchFile.aliases) progress.setFull(len(self.srcFiles)) for srcFile in self.srcFiles: srcPath = GPath(srcFile) patchesDir = dirs['patches'].list() if reModExt.search(srcFile.s): ...
1ff0958e86fd2e39ae9dca6669fae76aa5f3ddab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/1ff0958e86fd2e39ae9dca6669fae76aa5f3ddab/bosh.py
progress.setFull(len(self.sourceMods))
progress.setFull(1+len(self.sourceMods))
def initData(self,progress): """Get script links from source files.""" if not self.isActive: return self.classestemp = set() id_data = self.id_data recAttrs_class = self.recAttrs_class loadFactory = LoadFactory(False,*recAttrs_class.keys()) longTypes = self.longTypes & set(x.classType for x in self.recAttrs_class) prog...
1ff0958e86fd2e39ae9dca6669fae76aa5f3ddab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/1ff0958e86fd2e39ae9dca6669fae76aa5f3ddab/bosh.py
progress.setFull(len(self.sourceMods))
progress.setFull(1+len(self.sourceMods))
def initData(self,progress): """Get graphics from source files.""" if not self.isActive: return id_data = self.id_data recAttrs_class = self.recAttrs_class loadFactory = LoadFactory(False,*recAttrs_class.keys()) longTypes = self.longTypes & set(x.classType for x in self.recAttrs_class) progress.setFull(len(self.sourceM...
1ff0958e86fd2e39ae9dca6669fae76aa5f3ddab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/1ff0958e86fd2e39ae9dca6669fae76aa5f3ddab/bosh.py
progress.setFull(len(self.srcMods))
progress.setFull(1+len(self.srcMods))
def initData(self,progress): """Get data from source files.""" if not self.isActive or not self.srcMods: return loadFactory = LoadFactory(False,'CREA','NPC_','CONT') progress.setFull(len(self.srcMods)) for index,srcMod in enumerate(self.srcMods): srcInfo = modInfos[srcMod] srcFile = ModFile(srcInfo,loadFactory) srcFile...
1ff0958e86fd2e39ae9dca6669fae76aa5f3ddab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/1ff0958e86fd2e39ae9dca6669fae76aa5f3ddab/bosh.py
progress.setFull(len(self.srcFiles))
progress.setFull(1+len(self.srcFiles))
def initData(self,progress): """Get names from source files.""" if not self.isActive: return fullNames = FullNames(aliases=self.patchFile.aliases) progress.setFull(len(self.srcFiles)) for srcFile in self.srcFiles: srcPath = GPath(srcFile) patchesDir = dirs['patches'].list() if reModExt.search(srcFile.s): if srcPath not...
1ff0958e86fd2e39ae9dca6669fae76aa5f3ddab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/1ff0958e86fd2e39ae9dca6669fae76aa5f3ddab/bosh.py
progress.setFull(len(self.faceMods))
progress.setFull(1+len(self.faceMods))
def initData(self,progress): """Get faces from Project Beauty files.""" if not self.isActive: return faceData = self.faceData loadFactory = LoadFactory(False,MreNpc) progress.setFull(len(self.faceMods)) cachedMasters = {} for index,faceMod in enumerate(self.faceMods): if faceMod not in modInfos: continue temp_faceData ...
1ff0958e86fd2e39ae9dca6669fae76aa5f3ddab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/1ff0958e86fd2e39ae9dca6669fae76aa5f3ddab/bosh.py
progress.setFull(len(self.sourceMods))
progress.setFull(1+len(self.sourceMods))
def initData(self,progress): """Get cells from source files.""" if not self.isActive: return loadFactory = LoadFactory(False,MreCell,MreWrld,MreRoad) progress.setFull(len(self.sourceMods)) for srcMod in self.sourceMods: if srcMod not in modInfos: continue srcInfo = modInfos[srcMod] srcFile = ModFile(srcInfo,loadFactory...
1ff0958e86fd2e39ae9dca6669fae76aa5f3ddab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/1ff0958e86fd2e39ae9dca6669fae76aa5f3ddab/bosh.py
progress.setFull(len(self.sourceMods))
progress.setFull(1+len(self.sourceMods))
def initData(self,progress): """Get sounds from source files.""" if not self.isActive: return id_data = self.id_data recAttrs_class = self.recAttrs_class loadFactory = LoadFactory(False,*recAttrs_class.keys()) longTypes = self.longTypes & set(x.classType for x in self.recAttrs_class) progress.setFull(len(self.sourceMod...
1ff0958e86fd2e39ae9dca6669fae76aa5f3ddab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/1ff0958e86fd2e39ae9dca6669fae76aa5f3ddab/bosh.py
progress.setFull(len(self.srcFiles))
progress.setFull(1+len(self.srcFiles))
def initData(self,progress): """Get stats from source files.""" if not self.isActive: return itemStats = ItemStats(aliases=self.patchFile.aliases) progress.setFull(len(self.srcFiles)) for srcFile in self.srcFiles: srcPath = GPath(srcFile) patchesDir = dirs['patches'].list() if reModExt.search(srcFile.s): if srcPath not...
1ff0958e86fd2e39ae9dca6669fae76aa5f3ddab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/1ff0958e86fd2e39ae9dca6669fae76aa5f3ddab/bosh.py
progress.setFull(len(self.srcFiles))
progress.setFull(1+len(self.srcFiles))
def initData(self,progress): """Get stats from source files.""" if not self.isActive: return itemStats = SpellRecords(aliases=self.patchFile.aliases) progress.setFull(len(self.srcFiles)) for srcFile in self.srcFiles: srcPath = GPath(srcFile) patchesDir = dirs['patches'].list() if reModExt.search(srcFile.s): if srcPath ...
1ff0958e86fd2e39ae9dca6669fae76aa5f3ddab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/1ff0958e86fd2e39ae9dca6669fae76aa5f3ddab/bosh.py
progress.setFull(len(self.sourceMods))
progress.setFull(1+len(self.sourceMods))
def initData(self,progress): """Get graphics from source files.""" if not self.isActive: return id_data = self.id_data recAttrs_class = self.recAttrs_class loadFactory = LoadFactory(False,*recAttrs_class.keys()) longTypes = self.longTypes & set(x.classType for x in self.recAttrs_class) progress.setFull(len(self.sourceM...
1ff0958e86fd2e39ae9dca6669fae76aa5f3ddab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/1ff0958e86fd2e39ae9dca6669fae76aa5f3ddab/bosh.py
progress.setFull(len(self.srcFiles))
progress.setFull(1+len(self.srcFiles))
def initData(self,progress): """Get names from source files.""" if not self.isActive: return progress.setFull(len(self.srcFiles)) for srcFile in self.srcFiles: srcPath = GPath(srcFile) patchesDir = dirs['patches'].list() if srcPath not in patchesDir: continue self.readFromText(dirs['patches'].join(srcFile)) progress.pl...
1ff0958e86fd2e39ae9dca6669fae76aa5f3ddab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/1ff0958e86fd2e39ae9dca6669fae76aa5f3ddab/bosh.py
progress.setFull(len(self.srcMods))
progress.setFull(1+len(self.srcMods))
def initData(self,progress): """Get data from source files.""" if not self.isActive or not self.srcMods: return loadFactory = LoadFactory(False,MreRace) progress.setFull(len(self.srcMods)) cachedMasters = {} for index,srcMod in enumerate(self.srcMods): if srcMod not in modInfos: continue srcInfo = modInfos[srcMod] srcF...
1ff0958e86fd2e39ae9dca6669fae76aa5f3ddab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/1ff0958e86fd2e39ae9dca6669fae76aa5f3ddab/bosh.py
MelString('ICON','iconPath'),
MelString('ICON','largeIconPath'), MelString('MICO','smallIconPath'),
def getEffectsSummary(self,mgef_school=None,mgef_name=None): """Return a text description of magic effects.""" mgef_school = mgef_school or bush.mgef_school mgef_name = mgef_name or bush.mgef_name buff = cStringIO.StringIO() avEffects = bush.actorValueEffects aValues = bush.actorValues buffWrite = buff.write if self.ef...
7e2669c9f6649a0409cbceae49f1be241db5fb53 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/7e2669c9f6649a0409cbceae49f1be241db5fb53/bosh.py
MelStruct('ENIT','iB3s','value',(_flags,'flags',0L),('unused1',null3)),
MelStruct('ENIT','iB3sIfI','value',(_flags,'flags',0L),('unused1',null3), (FID,'withdrawalEffect',None),'addictionChance',(FID,'soundConsume',None)),
def getEffectsSummary(self,mgef_school=None,mgef_name=None): """Return a text description of magic effects.""" mgef_school = mgef_school or bush.mgef_school mgef_name = mgef_name or bush.mgef_name buff = cStringIO.StringIO() avEffects = bush.actorValueEffects aValues = bush.actorValues buffWrite = buff.write if self.ef...
7e2669c9f6649a0409cbceae49f1be241db5fb53 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/7e2669c9f6649a0409cbceae49f1be241db5fb53/bosh.py
GmstTweak(_('VATS Playback Delay'),
GmstTweak(False,_('VATS Playback Delay'),
def buildPatch(self,patchFile,keep,log): """Build patch.""" eids = ((self.key,),self.key)[isinstance(self.key,tuple)] for eid,value in zip(eids,self.choiceValues[self.chosen]): gmst = MreGmst(('GMST',0,0,0,0,0)) gmst.eid,gmst.value,gmst.longFids = eid,value,True fid = gmst.fid = keep(gmst.getFallout3Fid()) patchFile.GM...
8bd1d21af52def8e28a6cc31d7c142eb0739a4d4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/8bd1d21af52def8e28a6cc31d7c142eb0739a4d4/bosh.py
MelFid('CNAM','I','combatStyle'),
MelFid('CNAM','combatStyle'),
def mapFids(self,record,function,save=False): """Applies function to fids. If save is true, then fid is set to result of function.""" if self.subType == 'PLDT' and record.locType != 5: result = function(record.locId) if save: record.locId = result elif self.subType == 'PLD2' and record.locType2 != 5: result = function(...
2966e2bef0582ca05777ea82e12d82e392119c97 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/2966e2bef0582ca05777ea82e12d82e392119c97/bosh.py
record.entries = [x for x in record.entries if x.listId != empty]
record.fids = [x for x in record.fids if x != empty]
def buildPatch(self,log,progress): """Adds merged lists to patchfile.""" keep = self.patchFile.getKeeper() #--Reflsts/Deflsts List log.setHeader('= '+self.__class__.name,True) log.setHeader(_('=== Deflsters/Reflsters')) for leveler in (self.levelers or []): log('* '+self.getItemLabel(leveler)) #--Save to patch file for...
47e0596c6a74fd67dbccba1b4f01ae01379832dc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/47e0596c6a74fd67dbccba1b4f01ae01379832dc/bosh.py
try: (isFid, value) = record.__getattribute__(self.attr) except AttributeError: value = None
value = record.__getattribute__(self.attr) if value is None: return (isFid, value) = value
def dumpData(self,record,out): try: (isFid, value) = record.__getattribute__(self.attr) except AttributeError: value = None if value is not None: if record.dataType == 1: # text (string) out.packSub0(self.subType,value) elif record.dataType == 3: # voice (fid:DIAL) out.packRef(self.subType,value) else: raise ModError(i...
5b407d242e4b2cf20b3166a8b10177f3b047cc62 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/5b407d242e4b2cf20b3166a8b10177f3b047cc62/bosh.py
(isFid, value) = record.__getattribute__(self.attr)
value = record.__getattribute__(self.attr) if value is None: return (isFid, value) = value
def mapFids(self,record,function,save=False): (isFid, value) = record.__getattribute__(self.attr) if isFid: result = function(value) if save: record.__setattr__(self.attr,result)
5b407d242e4b2cf20b3166a8b10177f3b047cc62 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/5b407d242e4b2cf20b3166a8b10177f3b047cc62/bosh.py
try: (isFid, value) = record.__getattribute__(self.attr) except AttributeError: value = None
value = record.__getattribute__(self.attr) if value is None: return (isFid, value) = value
def dumpData(self,record,out): try: (isFid, value) = record.__getattribute__(self.attr) except AttributeError: value = None if value is not None: out.packRef(self.subType,value)
5b407d242e4b2cf20b3166a8b10177f3b047cc62 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/5b407d242e4b2cf20b3166a8b10177f3b047cc62/bosh.py
(isFid, value) = record.__getattribute__(self.attr)
value = record.__getattribute__(self.attr) if value is None: return (isFid, value) = value
def mapFids(self,record,function,save=False): (isFid, value) = record.__getattribute__(self.attr) if isFid: result = function(value) if save: record.__setattr__(self.attr,result)
5b407d242e4b2cf20b3166a8b10177f3b047cc62 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/5b407d242e4b2cf20b3166a8b10177f3b047cc62/bosh.py
for recClass in (MreAlch, MreAmmo, MreAppa, MreBook, MreIngr, MreKeym, MreLigh, MreMisc, MreSgst, MreSlgm, MreTree, MreNote):
for recClass in (MreAlch, MreAmmo, MreAppa, MreBook, MreIngr, MreKeym, MreLigh, MreMisc, MreSgst, MreSlgm, MreTree):
def initPatchFile(self,patchFile,loadMods): """Prepare to handle specified patch mod. All functions are called after this.""" Patcher.initPatchFile(self,patchFile,loadMods) self.id_data = {} #--Names keyed by long fid. self.srcClasses = set() #--Record classes actually provided by src mods/files. self.sourceMods = self...
5b407d242e4b2cf20b3166a8b10177f3b047cc62 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/5b407d242e4b2cf20b3166a8b10177f3b047cc62/bosh.py
self.longTypes = set(('BSGN','LSCR','CLAS','LTEX','REGN','ACTI','DOOR','FLOR','FURN','GRAS','STAT','ALCH','AMMO','BOOK','INGR','KEYM','LIGH','MISC','SGST','SLGM','WEAP','TREE','ARMO','CLOT','CREA','MGEF','EFSH','TXST','EXPL','IPCT','IPDS','PROJ'))
self.longTypes = set(('BSGN','LSCR','CLAS','LTEX','REGN','ACTI','DOOR','FLOR','FURN','GRAS','STAT','ALCH','AMMO','BOOK','INGR','KEYM','LIGH','MISC','SGST','SLGM','WEAP','TREE','ARMO','CLOT','CREA','MGEF','EFSH','TXST','EXPL','IPCT','IPDS','PROJ','NOTE','NPC_','DIAL'))
def initPatchFile(self,patchFile,loadMods): """Prepare to handle specified patch mod. All functions are called after this.""" Patcher.initPatchFile(self,patchFile,loadMods) self.id_data = {} #--Names keyed by long fid. self.srcClasses = set() #--Record classes actually provided by src mods/files. self.sourceMods = self...
5b407d242e4b2cf20b3166a8b10177f3b047cc62 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/5b407d242e4b2cf20b3166a8b10177f3b047cc62/bosh.py
if groupFid != cell.fid: raise ModError(self.inName,'Cell subgroup (%s) does not match CELL <%s> %s.' % (hex(groupFid), hex(cell.fid), cell.eid))
def loadData(self,ins,endPos): """Loads data from input stream. Called by load().""" cellType_class = self.loadFactory.getCellTypeClass() recCellClass = self.loadFactory.getRecClass('CELL') errLabel = 'World Block' cell = None block = None subblock = None cellBlocks = self.cellBlocks unpackCellBlocks = self.loadFactory...
536035b8b2f5ce4ff087dfd95532b3bcb08fa52f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/536035b8b2f5ce4ff087dfd95532b3bcb08fa52f/bosh.py
MelStruct('DATA','2BH',(_flags,'flags',0L),'flags2','unknown'),
MelFactData('DATA','2BH',(_flags,'flags',0L),'flags2','unknown'),
def loadData(self,record,ins,type,size,readId): if size == 224: MelStruct.loadData(self,record,ins,type,size,readId) return elif size == 96: #--Else 96 byte record (skips particle variables, and color keys # Only used twice in test shaders (0004b6d5, 0004b6d6) unpacked = ins.unpack('B3s3I3Bs9f3Bs8fI',size,readId) else:...
731203d62589855fe8bd96a522bd833f52918903 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/731203d62589855fe8bd96a522bd833f52918903/bosh.py
for recClass in (MreAlch, MreAmmo, MreAppa, MreBook, MreIngr, MreKeym, MreLigh, MreMisc, MreSgst, MreSlgm, MreTree):
for recClass in (MreLigh,): recAttrs_class[recClass] = ('iconPath','model') for recClass in (MreAlch, MreAmmo, MreAppa, MreBook, MreIngr, MreKeym, MreMisc, MreSgst, MreSlgm, MreTree):
def initPatchFile(self,patchFile,loadMods): """Prepare to handle specified patch mod. All functions are called after this.""" Patcher.initPatchFile(self,patchFile,loadMods) self.id_data = {} #--Names keyed by long fid. self.srcClasses = set() #--Record classes actually provided by src mods/files. self.sourceMods = self...
839c6d1f58c2e904a1fec10c2efb7e588904ef29 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/839c6d1f58c2e904a1fec10c2efb7e588904ef29/bosh.py
"""MISC (miscellaneous item) record."""
"""KEYM (key) record."""
def dumpData(self,record,out): if not record.schd_p: MelStruct.dumpData(self,record,out)
99172d4ed4977108c05b04adab7c91f861e1c635 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/99172d4ed4977108c05b04adab7c91f861e1c635/bosh.py
MelString('ICON','iconPath'),
MelString('ICON','largeIconPath'), MelString('MICO','smallIconPath'),
def dumpData(self,record,out): if not record.schd_p: MelStruct.dumpData(self,record,out)
99172d4ed4977108c05b04adab7c91f861e1c635 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/99172d4ed4977108c05b04adab7c91f861e1c635/bosh.py
bosh.dirs['app'].join('fomm.exe'),
bosh.dirs['app'].join('fomm\\fomm.exe'),
def InitStatusBar(): """Initialize status bar links.""" #--Bash Status/LinkBar #BashStatusBar.buttons.append(App_Fallout3()) BashStatusBar.buttons.append(Fose_Button()) BashStatusBar.buttons.append(AutoQuit_Button()) BashStatusBar.buttons.append( Fallout3_Button( bosh.dirs['app'].join('Fallout3.exe'), Image(r'images/fa...
215be538ae6b957464ec5a1a8d5c9d22761dc890 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/215be538ae6b957464ec5a1a8d5c9d22761dc890/basher.py
BashStatusBar.buttons.append( App_Tes4Gecko(None, Image(r'images/cog.png'), _("Launch Tes4Gecko")))
def InitStatusBar(): """Initialize status bar links.""" #--Bash Status/LinkBar #BashStatusBar.buttons.append(App_Fallout3()) BashStatusBar.buttons.append(Fose_Button()) BashStatusBar.buttons.append(AutoQuit_Button()) BashStatusBar.buttons.append( Fallout3_Button( bosh.dirs['app'].join('Fallout3.exe'), Image(r'images/fa...
215be538ae6b957464ec5a1a8d5c9d22761dc890 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/215be538ae6b957464ec5a1a8d5c9d22761dc890/basher.py
(bosh.dirs['app'].join('FO3Edit.exe'), '-view'),
(bosh.dirs['app'].join('FO3Edit\\FO3Edit.exe'), '-view'),
def InitStatusBar(): """Initialize status bar links.""" #--Bash Status/LinkBar #BashStatusBar.buttons.append(App_Fallout3()) BashStatusBar.buttons.append(Fose_Button()) BashStatusBar.buttons.append(AutoQuit_Button()) BashStatusBar.buttons.append( Fallout3_Button( bosh.dirs['app'].join('Fallout3.exe'), Image(r'images/fa...
215be538ae6b957464ec5a1a8d5c9d22761dc890 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/215be538ae6b957464ec5a1a8d5c9d22761dc890/basher.py
bosh.dirs['app'].join('FO3Edit.exe'),
bosh.dirs['app'].join('FO3Edit\\FO3Edit.exe'),
def InitStatusBar(): """Initialize status bar links.""" #--Bash Status/LinkBar #BashStatusBar.buttons.append(App_Fallout3()) BashStatusBar.buttons.append(Fose_Button()) BashStatusBar.buttons.append(AutoQuit_Button()) BashStatusBar.buttons.append( Fallout3_Button( bosh.dirs['app'].join('Fallout3.exe'), Image(r'images/fa...
215be538ae6b957464ec5a1a8d5c9d22761dc890 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/215be538ae6b957464ec5a1a8d5c9d22761dc890/basher.py
(bosh.dirs['app'].join('FO3Edit.exe'),'-translate'),
(bosh.dirs['app'].join('FO3Edit\\FO3Edit.exe'),'-translate'),
def InitStatusBar(): """Initialize status bar links.""" #--Bash Status/LinkBar #BashStatusBar.buttons.append(App_Fallout3()) BashStatusBar.buttons.append(Fose_Button()) BashStatusBar.buttons.append(AutoQuit_Button()) BashStatusBar.buttons.append( Fallout3_Button( bosh.dirs['app'].join('Fallout3.exe'), Image(r'images/fa...
215be538ae6b957464ec5a1a8d5c9d22761dc890 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/215be538ae6b957464ec5a1a8d5c9d22761dc890/basher.py
BashStatusBar.buttons.append( App_Button( bosh.dirs['app'].join('Tes4LodGen.exe'), Image(r'images/brick_go.png'), _("Launch Tes4LODGen")))
def InitStatusBar(): """Initialize status bar links.""" #--Bash Status/LinkBar #BashStatusBar.buttons.append(App_Fallout3()) BashStatusBar.buttons.append(Fose_Button()) BashStatusBar.buttons.append(AutoQuit_Button()) BashStatusBar.buttons.append( Fallout3_Button( bosh.dirs['app'].join('Fallout3.exe'), Image(r'images/fa...
215be538ae6b957464ec5a1a8d5c9d22761dc890 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/215be538ae6b957464ec5a1a8d5c9d22761dc890/basher.py
record.damage = ins.unpack('H',size,readId)
(record.damage,) = ins.unpack('H',size,readId)
def loadData(self,record,ins,type,size,readId): if size == 186: MelStruct.loadData(self,record,ins,type,size,readId) return elif size == 2: record.damage = ins.unpack('H',size,readId) return else: raise "Unexpected size encountered for WATR subrecord: %s" % size
884c237cd878effa1c2c0d117ff08f03730ae91a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/884c237cd878effa1c2c0d117ff08f03730ae91a/bosh.py
('Fallout - Meshes.bsa',1138575220), ('Fallout - Misc.bsa',1139433736), ('Fallout - Sounds.bsa',1138660560), ('Fallout - Textures - Compressed.bsa',1138162634), ('Fallout - Voices1.bsa',1138162934), ('Fallout - Voices2.bsa',1138166742),
('Fallout - MenuVoices.bsa',1138575220), ('Fallout - Meshes.bsa',1139433736), ('Fallout - Misc.bsa',1138660560), ('Fallout - Sounds.bsa',1138162634), ('Fallout - Textures.bsa',1138162934), ('Fallout - Voices.bsa',1138166742),
def resetMTimes(self): """Reset dates of bsa files to 'correct' values.""" #--Fix the data of a few archive files bsaTimes = ( ('Fallout - Meshes.bsa',1138575220), ('Fallout - Misc.bsa',1139433736), ('Fallout - Sounds.bsa',1138660560), ('Fallout - Textures - Compressed.bsa',1138162634), ('Fallout - Voices1.bsa',1138162...
2e6db0ec4099b9682b5a69f3ca23782f6cc992b2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/2e6db0ec4099b9682b5a69f3ca23782f6cc992b2/bosh.py
if flags.head or flags.hair or flags.headband or flags.hat: type = head elif flags.upperBody: type = body
if flags.upperBody: type = body elif flags.head or flags.hair or flags.headband or flags.hat: type = head
def buildPatch(self,log,progress,patchFile): """Edits patch file as desired. Will write to log.""" count = {} format = self.choiceValues[self.chosen][0] showStat = '%02d' in format keep = patchFile.getKeeper() codes = getattr(patchFile,'bodyTags','HAGPBFE') head,body,gloves,pipboy,backpack,fancy,accessory = [ x for x i...
2e6db0ec4099b9682b5a69f3ca23782f6cc992b2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/2e6db0ec4099b9682b5a69f3ca23782f6cc992b2/bosh.py
elif flags.backpack: type = backpack elif flags.necklace or flags.eyeGlasses or flags.noseRing or flags.earrings or flags.mask or flags.choker or flags.mouthObject: type = fancy elif flags.bodyAddOn1 or flags.bodyAddOn2 or flags.bodyAddOn3: type = accessory
def buildPatch(self,log,progress,patchFile): """Edits patch file as desired. Will write to log.""" count = {} format = self.choiceValues[self.chosen][0] showStat = '%02d' in format keep = patchFile.getKeeper() codes = getattr(patchFile,'bodyTags','HAGPBFE') head,body,gloves,pipboy,backpack,fancy,accessory = [ x for x i...
2e6db0ec4099b9682b5a69f3ca23782f6cc992b2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/2e6db0ec4099b9682b5a69f3ca23782f6cc992b2/bosh.py
'QUST','SCPT','SOUN','SPEL','STAT','TERM','TXST','WATR','WEAP'))
'QUST','REFR','SCPT','SOUN','SPEL','STAT','TERM','TXST','WATR', 'WEAP'))
def initPatchFile(self,patchFile,loadMods): """Prepare to handle specified patch mod. All functions are called after this.""" Patcher.initPatchFile(self,patchFile,loadMods) self.id_data = {} #--Names keyed by long fid. self.srcClasses = set() #--Record classes actually provided by src mods/files. self.sourceMods = self...
6772dcb0e8bcefdf0b6731eed865a577649ca1c0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/6772dcb0e8bcefdf0b6731eed865a577649ca1c0/bosh.py
MelString('ICON','iconPath'),
MelString('ICON','largeIconPath'), MelString('MICO','smallIconPath'),
def dumpData(self,record,out): """Conditionally dumps data.""" if record.entryType == 7 and self.subType == 'RDMD': MelOptStruct.dumpData(self,record,out)
7af65d5cb8642d4a7ed7404ec0d1375620c3647e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/7af65d5cb8642d4a7ed7404ec0d1375620c3647e/bosh.py
MelRegnStructA('RDWT', '2I', 'weather', (FID, 'weather'), 'chance')),
MelRegnStructA('RDWT', '3I', 'weather', (FID, 'weather', None), 'chance', (FID, 'global', None))),
def dumpData(self,record,out): """Conditionally dumps data.""" if record.entryType == 7 and self.subType == 'RDMD': MelOptStruct.dumpData(self,record,out)
7af65d5cb8642d4a7ed7404ec0d1375620c3647e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/7af65d5cb8642d4a7ed7404ec0d1375620c3647e/bosh.py
__slots__ = MelRecord.__slots__ + melSet.getSlotsUsed() + ['infoStamp','infos']
__slots__ = MelRecord.__slots__ + melSet.getSlotsUsed() + ['infoStamp','infoStamp2','infos']
def loadData(self,record,ins,type,size,readId): if size == 124: MelStruct.loadData(self,record,ins,type,size,readId) return elif size == 120: #--Else 120 byte record (skips flagsB unpacked = ins.unpack('2B2s8f2B2s3fB3s2f5B3s2f2B2s7fB3sf',size,readId) elif size == 112: #--112 byte record (skips flagsB, rushChance, unuse...
4f3c3521e6decae3aa6f97efc42bb421033759ee /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/4f3c3521e6decae3aa6f97efc42bb421033759ee/bosh.py
out.pack('4sIIII','GRUP',size,self.fid,7,self.infoStamp)
out.pack('4sIIIII','GRUP',size,self.fid,7,self.infoStamp,self.infoStamp2)
def dump(self,out): """Dumps self., then group header and then records.""" MreRecord.dump(self,out) if not self.infos: return size = 20 + sum([20 + info.getSize() for info in self.infos]) out.pack('4sIIII','GRUP',size,self.fid,7,self.infoStamp) for info in self.infos: info.dump(out)
4f3c3521e6decae3aa6f97efc42bb421033759ee /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/4f3c3521e6decae3aa6f97efc42bb421033759ee/bosh.py
for recClass in (MreActi,MreLigh):
for recClass in (MreActi,):
def initPatchFile(self,patchFile,loadMods): """Prepare to handle specified patch mod. All functions are called after this.""" Patcher.initPatchFile(self,patchFile,loadMods) self.id_data = {} #--Names keyed by long fid. self.srcClasses = set() #--Record classes actually provided by src mods/files. self.sourceMods = self...
5935b8483f13976a5220d49b0ee7a6ac7971f4f0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/5935b8483f13976a5220d49b0ee7a6ac7971f4f0/bosh.py
recAttrs_class[recClass] = ('sound','sounds')
recAttrs_class[recClass] = ('sounds',)
def initPatchFile(self,patchFile,loadMods): """Prepare to handle specified patch mod. All functions are called after this.""" Patcher.initPatchFile(self,patchFile,loadMods) self.id_data = {} #--Names keyed by long fid. self.srcClasses = set() #--Record classes actually provided by src mods/files. self.sourceMods = self...
5935b8483f13976a5220d49b0ee7a6ac7971f4f0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/5935b8483f13976a5220d49b0ee7a6ac7971f4f0/bosh.py
GmstTweak(_('UOP Vampire Aging and Face Fix.esp'), _("Duplicate of UOP component that disables vampire aging (fixes a bug). Use instead of 'UOP Vampire Aging & Face Fix.esp' to save an esp slot."), 'iVampirismAgeOffset', ('Fix it!',0),
GmstTweak(_('PipBoy Light Keypress-Delay'), _("Seconds of delay until the PipBoy Light switches on."), ('fPlayerPipBoyLightTimer'), (_('0.3'),0.3), (_('0.4'),0.4), (_('0.5'),0.5), (_('0.6'),0.6), (_('0.7'),0.7), (_('[0.8]'),0.8), (_('1.0'),1.0), ), GmstTweak(_('VATS Playback Delay'), _("Seconds of delay after the ...
def buildPatch(self,patchFile,keep,log): """Build patch.""" eids = ((self.key,),self.key)[isinstance(self.key,tuple)] for eid,value in zip(eids,self.choiceValues[self.chosen]): gmst = MreGmst(('GMST',0,0,0,0,0)) gmst.eid,gmst.value,gmst.longFids = eid,value,True fid = gmst.fid = keep(gmst.getFallout3Fid()) patchFile.GM...
5935b8483f13976a5220d49b0ee7a6ac7971f4f0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/5935b8483f13976a5220d49b0ee7a6ac7971f4f0/bosh.py
NamesTweak_Dwarven(),
def buildPatch(self,log,progress,patchFile): count = {} keep = patchFile.getKeeper() for type in self.activeTypes: if type not in patchFile.tops: continue for record in patchFile.tops[type].records: if not record.full: continue if not 'dwar' in record.full.lower(): continue if 'dwarven' in record.full: record.full = re...
5935b8483f13976a5220d49b0ee7a6ac7971f4f0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/5935b8483f13976a5220d49b0ee7a6ac7971f4f0/bosh.py