码迷,mamicode.com
首页 >  
搜索关键字:raise    ( 709个结果
Odoo 8.0 new API 之constrains装饰
constrains装饰用于对字段进行限制应用举例:定义列:age = fields.Integer(string="age") 方法:@api.constrains('age')def _check_age(self): if self.age<16: raise Val...
分类:Windows程序   时间:2014-08-06 18:27:01    阅读次数:351
PyDeadObjectError: The C++ part of the CMainFrame object has been deleted, attribute access no longer allowed
在wxpython做的GUI主线程结束时,由于一个正在运行的子线程无法正常地结束而RAISE出了如标题所示的异常。原因是wxpython的frame已经析构而不可访问其属性。 KILL一个子线程,方法有二:1. threading.setDaemon(True)为后台线程,当主线程结束时随之退...
分类:数据库   时间:2014-08-03 15:04:05    阅读次数:376
蜗牛—ORACLE基础之事务学习(五)
---------------事务---当执行到commit时 事务才算是完成,不然 会执行rollback操作。 declare v_money acount.money%type:=1223; ex exception; begin update acount set money=money-v_money where id=1; raise ex; update acount ...
分类:数据库   时间:2014-08-01 13:39:21    阅读次数:222
uboot中raise:Signal #8 caught的根本原因
在移植uboot时编译一切正常,但uboot启动中加载自己写的网卡驱动出现问题,一直在打印raise:Signal #8 caught google  百度了一番,也有很多人遇到了这个问题,大家都说出了解决问题的办法, 就是自己编写的驱动中有出现除以0的误操作,就会一直打印raise:Signal #8 caught 将除操作改为位移操作,或者避免除数为0,就可以解决这个问题。 那为什么有...
分类:其他好文   时间:2014-07-03 13:56:42    阅读次数:270
python property属性
可以检查参数,一直没注意这个语言特性,忽略了很多细节,感谢 vitrox class Person( object ): def __init__( self, name ): if not isinstance( name, str ): raise TypeError( '...' ) else:...
分类:编程语言   时间:2014-07-01 10:00:34    阅读次数:181
Linux环境编程之信号(三):一些信号函数
(一)kill和raise函数 kill函数将信号发送给进程或进程组。raise函数则允许进程自身发送信号。        #include        #include        int kill(pid_t pid, int sig);        int raise(int  signo);  //返回值:若成功则返回0,若出错则返回-1。 参数:pid参数有4种...
分类:系统相关   时间:2014-05-18 08:50:13    阅读次数:360
asp中的md5/sha1/sha256算法收集
对于asp这种古董级的技术,这年头想找一些有用的资料已经不容易了,下面是一些常用的加密算法:md5 (将以下代码另存为md5.inc) 31 Then Err.Raise 6 End If If (lValue And m_l2Power(31 - iShiftBits))...
分类:Web程序   时间:2014-05-16 03:19:31    阅读次数:608
android 控制手机音量的大小 切换声音的模式
(1)程序说明    在android API的AudioManager中,提供了调节手机音量的办法。 audioMa.adjustVolume(AudioManager.ADJUST_LOWER, 0);audioMa.adjustVolume(AudioManager.ADJUST_RAISE, 0);也可以调节手机声音的模式为震动或者静音 audioMa.setRingerMode(A...
分类:移动开发   时间:2014-05-09 20:54:59    阅读次数:464
CentOS环境下,gdb调试中出现:Missing separate debuginfos, use: debuginfo-install.....的问题
在gdb调试时segmentation fault问题时,遇到下面的了问题:Program received signal SIGABRT, Aborted.0x00007ffff73eb925 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/...
分类:数据库   时间:2014-05-09 11:40:36    阅读次数:422
709条   上一页 1 ... 69 70 71
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!