# THIS FILE IS AUTOMATICALLY GENERATED.  EDIT THE SOURCE FILE NOT THIS ONE

"""Various descriptions of data specific to Motorola V3m phones"""

from prototypes import *
from prototypes_moto import *
from p_etsi import *
from p_moto import *
from p_motov710 import *

import fnmatch

# We use LSB for all integer like fields
UINT=UINTlsb
BOOL=BOOLlsb

PB_TOTAL_ENTRIES=1000
PB_RANGE=xrange(1,PB_TOTAL_ENTRIES+1)

_WP_EXCLUSION=frozenset(['*.ran*', 'customer_opening.gif',
                         'customer_closing.gif'])
_RT_EXCLUSION=frozenset(['*.mp_'])

def valid_wp_filename(filename):
    global _WP_EXCLUSION
    for _name in _WP_EXCLUSION:
        if fnmatch.fnmatch(filename, _name):
            return False
    return True

def valid_rt_filename(filename):
    global _RT_EXCLUSION
    for _name in _RT_EXCLUSION:
        if fnmatch.fnmatch(filename, _name):
            return False
    return True

OBEX_Filename_Prefix='motorola/shared/'
OBEX_Filename_Prefix_Len=len(OBEX_Filename_Prefix)
def OBEXName(filename):
    if filename.startswith(OBEX_Filename_Prefix):
        return filename[OBEX_Filename_Prefix_Len:]
    raise ValueError

