cr在代码中没有定义也没有Import,在代码中为什么直接就用了呢?
cr在代码中没有定义也没有Import,在代码中为什么直接就用了呢?
例如在tinyerp-server-4.2.3.4binosvorm.py中的
def _field_create(self, cr):
cr.execute("SELECT id FROM ir_model WHERE model='%s'" % self._name)
if not cr.rowcount:
# reference model in order to have a description of its fonctionnality in custom_report
cr.execute("INSERT INTO ir_model (model, name, info) VALUES (%s, %s, %s)", (self._name, self._description, self.doc))
cr.commit()
谢谢:)
wangdan_8948
- 
 新手求助关于源代码的问题
- 
 求助:在原代码中psycopg和cr代表什么?cr在代码中没有定义也没有Import,在代码中为什么直接就用了呢? 
 例如在tinyerp-server-4.2.3.4binosvorm.py中的
 def _field_create(self, cr):
 cr.execute("SELECT id FROM ir_model WHERE model='%s'" % self._name)
 if not cr.rowcount:
 # reference model in order to have a description of its fonctionnality in custom_report
 cr.execute("INSERT INTO ir_model (model, name, info) VALUES (%s, %s, %s)", (self._name, self._description, self.doc))
 cr.commit()
 谢谢:)
- 
 求助:在原代码中psycopg和cr代表什么?我知道pscycopg是用来连接PostgreSQL的但在TinyERP中没有找到相关的代码 
 import psycopg
 cr是什么意思啊,在代码中也没找到相关的信息
 cr.execute('select inst_type,inst_id,obj_id from inherit where obj_type=%s and obj_id in ('+','.join(map(str,args[0]))+')', (obj,))
- 
 求助:如何通过修改源代码是TinyERP和SQLserver连接我想问一下大家,如何通过修改源代码是TinyERP和SQLserver连接。 
 也可同时将数据传给PostgreSQl和SQLserver。
 谢谢大家:)
- 
 请教:库存管理的数据库连接源代码具体在哪里?我是从源码安装TinyERP的,我想问一下库存管理的数据库连接源代码具体在哪个位置。 
 谢谢大家。
- 
 请教:大家知不知道库存管理的数据库连接源代码在哪?我是从源码安装TinyERP的,我想问一下库存管理的数据库连接源代码具体在哪个位置。 
 谢谢大家。
- 
 大家有最新的 中国会计科目表 吗?大家有最新的 中国会计科目表 吗? 
- 
 请教关于从代码进行TinyERP安装时出现的问题我已经从源代码安装成功了, 
 谢谢大家的帮忙:)
- 
 从代码安装Tinyerp-client时遇到的问题谢谢大家,我已经安装上了。 
- 
 请教 关于如何从源代码汉化大家好,我想问一下。我是从原代码安装TinyERP的。但装完后除了菜单栏是中文外,其余都是英文,我想问一下,有没有汉化的办法,谢谢大家了。 
- 
 请教 关于如何从源代码汉化大家好,我想问一下。我是从原代码安装TinyERP的。但装完后除了菜单栏是中文外,其余都是英文,我想问一下,有没有汉化的办法,谢谢大家了 
- 
 从代码安装Tinyerp-client时遇到的问题按照教程上说的,从源代码安装到TinyERP-client时出现了以下问题。 
 D:a TinyERptinyerp-client-4.2.3.4tinyerp-client-4.2.3.4bin>python tinyerp-c
 lient.py
 Traceback (most recent call last):
 File "tinyerp-client.py", line 60, in <module>
 import pygtk
 ImportError: No module named pygtk好像是pygtk软件装错了,我也重新下了一个,但还是同样的问题。 
 请大家帮忙。
- 
 新手 源码安装完成后如何运用呢?大家好我刚接触TinyERP,我想问一下源码安装完成后如何运用呢? 
 是从命令窗口进行吗?
 是不是没有办法进行可视化啊?
- 
 请问windows平台的”Tiny ERP”源码程序在哪下载啊。。。openerp.com/downloads.html 
- 
 新手 源码安装完成后如何运用呢?大家好我刚接触TinyERP,我想问一下源码安装完成后如何运用呢? 
 是从命令窗口进行吗?
 是不是没有办法进行可视化啊?
- 
 请问各位 TinyERP 源码在哪能下载啊。。。?openerp.com/downloads.html 
- 
 请教关于从代码进行TinyERP安装时出现的问题To start postgresql use pg_ctl in same directory. To create a database for your OpenERP server, open a command prompt (cmd window) and use this manual command (the current working directory doesn't matter if you have in PATH the postgresql bin directory): createdb <your_tinyerp_databasename> --encoding=UNICODE --username=<your_database_admin_username> 
 orcreatedb <your_tinyerp_databasename> -E UNICODE -U <your_database_admin_username> 
 Sample command prompt:C:terptestserv>createdb terp --encoding=UNICODE --username postgresadmin Password: <enter password again>CREATE DATABASE C:terptestserv>Your output may differ, and if you're prompted a second time for the password just input it again. You can try the same command again, and after entering the password it would display this error: createdb: database creation failed: ERROR: database "terp" already existsNow you are ready to setup the OpenERP server. 
- 
 请教关于从代码进行TinyERP安装时出现的问题大家好,我已经把,从代码安装TinyERP的软件装好了,可是在PostgreSQL代码命令窗口中输入createdb <your_tinyerp_databasename> --encoding=UNICODE --username=<your_database_admin_username> 
 时,出现提示The syntax of the command is incorrect. 大家知道省么原因吗?