Package phones :: Module p_motov3m
[hide private]
[frames] | no frames]

Source Code for Module phones.p_motov3m

 1  # THIS FILE IS AUTOMATICALLY GENERATED.  EDIT THE SOURCE FILE NOT THIS ONE 
 2   
 3  """Various descriptions of data specific to Motorola V3m phones""" 
 4   
 5  from prototypes import * 
 6  from prototypes_moto import * 
 7  from p_etsi import * 
 8  from p_moto import * 
 9  from p_motov710 import * 
10   
11  import fnmatch 
12   
13  # We use LSB for all integer like fields 
14  UINT=UINTlsb 
15  BOOL=BOOLlsb 
16   
17  PB_TOTAL_ENTRIES=1000 
18  PB_RANGE=xrange(1,PB_TOTAL_ENTRIES+1) 
19   
20  _WP_EXCLUSION=frozenset(['*.ran*', 'customer_opening.gif', 
21                           'customer_closing.gif']) 
22  _RT_EXCLUSION=frozenset(['*.mp_']) 
23   
24 -def valid_wp_filename(filename):
25 global _WP_EXCLUSION 26 for _name in _WP_EXCLUSION: 27 if fnmatch.fnmatch(filename, _name): 28 return False 29 return True
30
31 -def valid_rt_filename(filename):
32 global _RT_EXCLUSION 33 for _name in _RT_EXCLUSION: 34 if fnmatch.fnmatch(filename, _name): 35 return False 36 return True
37 38 OBEX_Filename_Prefix='motorola/shared/' 39 OBEX_Filename_Prefix_Len=len(OBEX_Filename_Prefix)
40 -def OBEXName(filename):
41 if filename.startswith(OBEX_Filename_Prefix): 42 return filename[OBEX_Filename_Prefix_Len:] 43 raise ValueError
44