
Featured
-
How Regression Testing Detects Integral Errors In Business Processes
Humans are forever changing and evolving and so to
by kristina.rigina -
Get Display Banner Advertising Opportunity on FindNerd Platform
“Do you have a product or service that nee
by manoj.rawat -
Android O Released with Top 7 New Features for App Developers
Android was founded by Andy Rubin, Rich Miner, Nic
by sudhanshu.tripathi -
Top 5 Features That Make Laravel the Best PHP Framework for Development
Laravel is a free open source Web Framework of PHP
by abhishek.tiwari.458 -
Objective C or Swift - Which Technology to Learn for iOS Development?
Swift programming language is completely based on
by siddharth.sindhi
Tags
How to create Picking List when planned date if it is greater than value in OpenERP
To create the picking list of User defined argument and to the calculates planned date if it is greater than value and than if condition is true and its also user defined argument so you have to validate the Name of field and also Value of field ...
How to create models in dijango
To create models in dijango to following thses step in given below:
Step1- First you check your mysql is proparlly working in your systems.
Step2- Than DB setting in the settings.py in your project like as
DATABASES = {
'default': {...
How to create project in dijango-1.4
In dijango-1.4 to create project in under django framwork use the below commands step by step :-
Step1- First you have to check your dijango framework in proparly worked or not.
Step2- Than Go to the django framwork location:
...
How to install Djanog-1.4 with python in ubuntu
Use these step to install the django-1.4 in ubuntu
Step1- First check the python-2.7 version by use this commond
python -V
Step2- than use below link and install django-1.4 version
https://pypi.python.org/pypi/Django/1.4 ...
How do I debug this code of the 'TypeError: 'int' object is not callable' error in Python?
Hey guys! I want to write a program that finds the sum of cubed terms. i.e. 1**3 + 2**3 + n**3
I wrote down the following code:
// n = input('Give the value of n.')
n = int (n)
s = ((n(n+1))/2)**2
print ('Sum...
Setup Django framework in wondows
Hi All,
If you want to setup Django framework in your system then you just need to read this blog only .
Python Installation : - You need to install python first.You can install python from here . I'm using 3.5.2 version of pyt...
Sorting Tuple/List In Python
Hi All,
In programming world, we have to perform some basic operation on list or tuple but in python , it is easy to perform any operation on list or tuple. for example:-
If you have a number tuple/list like
data = [[1,10,8], [4,...
Make A Simple Sign In User Interface Using Python For Windows
Hi All,
In this blog, I will tell you , how to make a simple Sign-In/Log-In UI for User. I'm using python27 for this code. Python give you IDLE, which is a good python editor. There are many libraries to make User interface in python, but ...
Returning Multiple Values in Python using Dictionary?
# A Python program returning multiple values from a method using dictionary
# Function is define that returns a dictionary
def fun():
d = dict();
d['str'] = "Demo"
d['x'] = 20
return d
# Driver code to test abo...
Returning Multiple Values in Python using tuple?
# A Python program returning multiple values from a method using tuple
# Function is defined that returns a tuple
def fun():
str = "Demo"
x = 20
return str, x; # Returning a tuple
# Driver code to test above method
...
Returning Multiple Values in Python using list?
# A Python program returning multiple values from a method using list
# Defining a function which returns a list
def fun():
str = "Demo"
x = 20
return [str, x];
# Driver code to test above function
list = fun() ...
How to create search function in python
In python search function searches for first occurrence of RE pattern within string with optional flags.
The search function is used to re.search function and returns a match object on success.
use the below syntax for search function in .py ...
How to initialization the function in python
In python your extension module is the initialization function and This function is called by the Python interpreter when the module is loaded. the function is named initModule.
use the below function in your own module in .py file,
PyMODINIT...
method mapping table in python
In python method mapping table is an array of PyMethodDef structures which creates this (PyMethodDef) structure through a function and the table needs to be terminated with a sentinel that consists of NULL and 0 values for the appropriate members...
Sending Attachments as an E-mail in Python
To send an e-mail with mixed content you requires to set Content-type header to multipart/mixed. Then, text and attachment sections can be specified within boundaries.
A boundary started with two hyphens followed by a unique number, which cannot...
How to create Simple Client in python
In python simple client program opens a connection to a given port 9876543 and given host. It is very simple to create a socket client using Python's socket module function. The socket.connect(hosname, port ) opens a TCP connection to hostname on...
How to create A Simple Server in python
In python simple server is Internet servers, we use the socket function available in socket module to create a socket object. After then a socket object is used to call other functions to setup a socket server. after this call bind(hostname, port...
what is the socket Module in python
In python socket Module create socket and also use the function name socket.socket() function. This function is also available in socket module. There are many type of socket method in python like- Server Socket Methods and Client Socket Methods...
How to create the match Function in python
In python match Function is a function witch attempts to match RE pattern to string with optional flags and re.match function returns a match object on success, None on failure.
Here is the syntax for this function:
re.match(pattern, string, ...
How to create class in python
In python class statement creates a new class definition and The class has a documentation string which can be accessed via ClassName.__doc__. The class_suite consists of all the component statements defining class members, data attributes and fu...
Synchronizing Threads in Python
With the help of threading module we can implement locking mechanism that allows you to synchronize threads. And a new lock is created by calling the Lock() method, which returns the new lock and thread in threads module.
For example you can see...
How to handle Simple Mail Transfer Protocol (SMTP) in python
In python Simple Mail Transfer Protocol (SMTP) is a protocol. Python provide smtplib module to handle the email system and SMTP client session object which is used to send mail to any Internet machine with an SMTP or ESMTP listener daemon along w...
How to use the dis Module in python
In python dis module converts byte codes to a format and You can run the disassembler from the command line and It compiles the given script and prints the disassembled byte codes to the stdout . The dis function takes a class, method, function o...
How to create tuples in python?
In python, tuples is just like a list but little differ form list, To say correctly tuples is a sequence of immutable Python objects and it can not be change just like a list also tuples use parentheses.
Creating a tuple is as simple you have to...
what is loop control statements in python
In python loop control statements means(CSM) that CSM is change execution from its normal sequence and When execution leaves a scope, all automatic objects that were created in that scope are destroyed.
python support three statements of loop co...
How to create for loop in python?
In python to create for loop refers to executes a sequence of statements multiple times and abbreviates the code that manages the loop variable.
Use the below example to create for loop:
test = raw_input("what is for loop ")
for letter i...
The return Statement in Python
The return statement indicate that return exits in a function and optionally pass back an expression to the caller variable and return statement with no arguments is the same as return None variable.
For example you can see below code and try it...
What is python ?
Python is a general-purpose interpreted, interactive, object-oriented and high-level programming language
Python programs are portable, i.e. they can be ported to other operating systems like Windows, Linux, Unix and Mac OS X, and they can be ru...
Activate the developer mode and Updates, Update Apps List and Apply Scheduled Upgrades in Odoo-9
Step-1 Go to browser.
Step-2 Click on Question Mark which is located under your (?) in the top right corner of Odoo.
Step-3 Click on about and Updates,Update Apps List and Apply Scheduled Upgrades.
Step-4 Click on acti...
Create many2one and one2many relationship in OpenERP
In OpenERP we can create many2one and one2many relationships between models very easily by creating many2one and one2many fields. You just need to declare a field in _columns and then using this field normally in the rest programming and views a...