[REF] renamed openerp-server.py to openerp-server.
bzr revid: vmt@openerp.com-20110324095012-a5joofz60zrhbit5
This commit is contained in:
parent
fc1eb1ee38
commit
7766fcca62
|
@ -14,6 +14,6 @@ if __name__ == "__main__":
|
||||||
os.chdir(os.path.normpath(os.path.dirname(__file__)))
|
os.chdir(os.path.normpath(os.path.dirname(__file__)))
|
||||||
os.chdir('..')
|
os.chdir('..')
|
||||||
# ... and execute the new executable.
|
# ... and execute the new executable.
|
||||||
os.execv('openerp-server.py', sys.argv)
|
os.execv('openerp-server', sys.argv)
|
||||||
|
|
||||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||||
|
|
|
@ -49,7 +49,7 @@ def to_decode(s):
|
||||||
return s
|
return s
|
||||||
|
|
||||||
def start_server(root_path, port, netport, addons_path):
|
def start_server(root_path, port, netport, addons_path):
|
||||||
os.system('python2.5 %sopenerp-server.py --pidfile=openerp.pid --no-xmlrpcs --xmlrpc-port=%s --netrpc-port=%s --addons-path=%s' %(root_path, str(port),str(netport),addons_path))
|
os.system('python2.5 %sopenerp-server --pidfile=openerp.pid --no-xmlrpcs --xmlrpc-port=%s --netrpc-port=%s --addons-path=%s' %(root_path, str(port),str(netport),addons_path))
|
||||||
def clean():
|
def clean():
|
||||||
if os.path.isfile('openerp.pid'):
|
if os.path.isfile('openerp.pid'):
|
||||||
ps = open('openerp.pid')
|
ps = open('openerp.pid')
|
||||||
|
|
|
@ -2690,7 +2690,7 @@ class orm(orm_template):
|
||||||
self._table, k)
|
self._table, k)
|
||||||
except Exception:
|
except Exception:
|
||||||
msg = "WARNING: unable to set column %s of table %s not null !\n"\
|
msg = "WARNING: unable to set column %s of table %s not null !\n"\
|
||||||
"Try to re-run: openerp-server.py --update=module\n"\
|
"Try to re-run: openerp-server --update=module\n"\
|
||||||
"If it doesn't work, update records and execute manually:\n"\
|
"If it doesn't work, update records and execute manually:\n"\
|
||||||
"ALTER TABLE %s ALTER COLUMN %s SET NOT NULL"
|
"ALTER TABLE %s ALTER COLUMN %s SET NOT NULL"
|
||||||
self.__logger.warn(msg, k, self._table, self._table, k)
|
self.__logger.warn(msg, k, self._table, self._table, k)
|
||||||
|
|
|
@ -24,4 +24,4 @@ This file should/will be moved on a proper documentation place later.
|
||||||
|
|
||||||
- Run the main script, again specifying the PYTHONPATH:
|
- Run the main script, again specifying the PYTHONPATH:
|
||||||
> PYTHONPATH=/home/openerp/openerp-tmp/lib/python2.6/site-packages/ \
|
> PYTHONPATH=/home/openerp/openerp-tmp/lib/python2.6/site-packages/ \
|
||||||
bin/openerp-server.py
|
/home/openerp/openerp-tmp/bin/openerp-server
|
||||||
|
|
4
setup.py
4
setup.py
|
@ -74,7 +74,7 @@ py2exe_data_files = []
|
||||||
if os.name == 'nt':
|
if os.name == 'nt':
|
||||||
import py2exe
|
import py2exe
|
||||||
py2exe_keywords['console'] = [
|
py2exe_keywords['console'] = [
|
||||||
{ "script": "openerp-server.py",
|
{ "script": "openerp-server",
|
||||||
"icon_resources": [(1, join("pixmaps","openerp-icon.ico"))],
|
"icon_resources": [(1, join("pixmaps","openerp-icon.ico"))],
|
||||||
}]
|
}]
|
||||||
py2exe_keywords['options'] = {
|
py2exe_keywords['options'] = {
|
||||||
|
@ -123,7 +123,7 @@ setup(name = name,
|
||||||
(join('man', 'man5'), ['man/openerp_serverrc.5']),
|
(join('man', 'man5'), ['man/openerp_serverrc.5']),
|
||||||
('doc', filter(isfile, glob.glob('doc/*'))),
|
('doc', filter(isfile, glob.glob('doc/*'))),
|
||||||
] + py2exe_data_files,
|
] + py2exe_data_files,
|
||||||
scripts = ['openerp-server.py'],
|
scripts = ['openerp-server'],
|
||||||
packages = find_packages(),
|
packages = find_packages(),
|
||||||
include_package_data = True,
|
include_package_data = True,
|
||||||
package_data = {
|
package_data = {
|
||||||
|
|
Loading…
Reference in New Issue