Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/s/m/Smap-2.0.bcb1a7/smap/driver.py   Smap(Download)
    def __join_id(self, id):
        if util.is_string(id) and id.startswith('/'):
            return util.norm_path(self.__attach_point + '/' + id)
            return id

src/f/r/fragit-main-HEAD/src/template.py   fragit-main(Download)
    def _setTemplateType(self,value):
        if not util.is_string(value): raise ValueError("Template type is a string value.")
        if not filenames.has_key(value): raise ValueError("Template type '%s' is not valid." % value)
        self.template_type = value
    def _setLoadStructureString(self,value):
        if not util.is_string(value): raise ValueError("Load structure string is a string value.")

src/s/m/Smap-2.0.bcb1a7/smap/schema.py   Smap(Download)
def convert_uuids(obj):
    id = obj.get('uuid', None)
    if util.is_string(id):
        id = uuid.UUID(id)
    if id: obj['uuid'] = id.bytes