Did I find the right examples for you? yes no

All Samples(11)  |  Call(8)  |  Derive(0)  |  Import(3)
Device Not Found exception class

Raised when pywurfl cannot find a device by using either select_*
API functions.

src/p/y/pywurfl-7.2.1/doc/examples/wsgi_middleware.py   pywurfl(Download)
 
from pywurfl.algorithms import JaroWinkler
from pywurfl.exceptions import DeviceNotFound
 
 

src/p/y/pywurfl-7.2.1/pywurfl/__init__.py   pywurfl(Download)
from copy import copy
 
from pywurfl.exceptions import (WURFLException, ActualDeviceRootNotFound,
                                DeviceNotFound, ExistsException)
from pywurfl.algorithms.wurfl import normalizers
                return device
        else:
            raise DeviceNotFound(devua)
 
    def select_id(self, devid, actual_device_root=False, instance=True):
                return device
        else:
            raise DeviceNotFound(devid)
 
    def add_group(self, group):
        _unicode_check(u'devua', devua)
        if parent not in self.devids:
            raise DeviceNotFound(parent)
        if devid in self.devids:
            raise ExistsException(u"'%s' device already exists" % devid)
            raise WURFLException(u"cannot insert device before generic device")
        if child not in self.devids:
            raise DeviceNotFound(child)
        if devid in self.devids:
            raise ExistsException(u"'%s' device already exists" % devid)

src/p/y/pywurfl-7.2.1/pywurfl/algorithms/__init__.py   pywurfl(Download)
import re
 
from pywurfl.exceptions import DeviceNotFound
from pywurfl.algorithms.wurfl.handlers import handlers
 
            return devices.devuas[match[1]]
        else:
            raise DeviceNotFound(ua)