
Search In
Thread pool basically manages the pool of worker thread or it manages the collection of runnable and worker threads execute Runnable from queue.
Here is an example of creating threads 20 times and calling its runnable methods like this :
public cl
Step-1 Go to audittrail module.
Step-2 audittrail->audittrail.py.
Step-3 After that used below code in audittrail.py file.
if self.check_rules(cr, SUPERUSER_ID, field_obj._obj, method):
x2m_model_ids = pool.get('ir.model').se
You're given an array of N integer numbers.
The maximal sum of the array is the maximal sum of the elements of a nonempty consecutive subarray of this array. For example, the maximal sum of the array [1, -2, 3, -2, 5] is 6 because the sum of the
2) Right Outer Join -> It is also known as Right join . In right join all the content of right table will come in resultant and from the left table only matching rows will come . If no rows is matched from left table then null value will be return
If you want to define many2many field in OpenERP use like below code -
class test (osv.osv):
_inherit='sale.order.line'
_columns={
'product1_cat':fields.char('product academy'),
'product&_cat':fields.many2one('produc
JAVA
1) Java is completely an object oriented language.
2) Java does not have template classes.
3) Java supports multiple inheritance by the use of interface.
4) Java does not support concept of pointers.
5) java does not have header files
C++
1)
equals() and equalsIgnoreCase():
Both are used to compare two strings for equality and both methods are of String class.
equals() general form:
boolean equals(Object str)
It returns true if the invoking string and the string passed in the equals
In Javascript it is possible to pass a function as an argument to another function just like we pass a normal variable to a function.
Suppose i have a requirement that i want to call 2 functions one after the other and the second function has to be
Array_merge
Array_merge merges the elements of two or more array in one array such that the value of second array is appended to the value of first array. If two or more array elements have same key, then the later value will overrides the pre
Description:
Compare two strings by comparing the sum of their letter-Values (char-Value).
For comparing treat all letters as UpperCase.
Empty and null-Strings should be treated as they are equal.
If the string contains other characters than letter
