想补充一下 GD zip扩展到php,完成了phpize ./configure make make install例程,还是找不到 GD压缩.任何的想法 ?
root@audio-mon[10.10.10.82] ~/DOWNLOADS/php-5.5.23/ext/zip # phpize
Configuring for:
PHP Api Version: 20121113
Zend Module Api No: 20121212
Zend Extension Api No: 220121212
root@audio-mon[10.10.10.82] ~/DOWNLOADS/php-5.5.23/ext/zip # ./configure
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking …Run Code Online (Sandbox Code Playgroud) 以下是请求参数(url = http://sugarcrm.localhost/service/v4_1/rest.php):
method=get_entry_list&input_type=json&response_type=json
&rest_data {"session":"2q67jvlce802e4htsqc94oshkat9henvicvfclprhrbd8ef6k0o0",
"module_name":"Contacts",
"query":"email1=ychaouche@feeder.fr",
"order_by":"",
"offset":0,
"select_fields":[],
"link_name_to_fields_array":[],
"max_results":0,
"deleted":false}
Run Code Online (Sandbox Code Playgroud)
我得到了这个结果:
"{"name":"Access Denied","number":40,"description":"You do not have access"}"
Run Code Online (Sandbox Code Playgroud)
编辑
每当子查询格式错误时都会触发此错误,不一定是当一个子查询无法访问模块时,因此应该知道它.
Put module in addons-path [x]
Technical Features [x]
Restart openerp-server [x]
Click the update module list button [x]
Clear the "installed" filter in the search box [x]
Run Code Online (Sandbox Code Playgroud)
我的自定义模块在模块列表中仍然不可见.
但是,通过代码找到它:
import openerp
pool = openerp.modules.registry.RegistryManager.get("test")
cr = pool.db.cursor()
uid = openerp.SUPERUSER_ID
module = pool.get("ir.module.module")
module_id = module.search(cr,uid,[("name","=","helloworld")])[0]
helloworld = module.browse(cr,uid,module_id)
In [4]: helloworld.name
Out[4]: u'helloworld'
In [7]: helloworld.state
Out[7]: u'uninstalled'
Run Code Online (Sandbox Code Playgroud)
编辑
模块结构
chaouche@karabeela ~/CODE/OPENERP/addons/helloworld $ ls
total 20K
-rw-r--r-- 1 chaouche chaouche 222 Mar 7 19:27 client.py
-rw-r--r-- 1 chaouche chaouche …Run Code Online (Sandbox Code Playgroud) 我有这样一条线
<zimlet name="com_feeder_sugarbee" version="0.7.1" description="Sugar Bee v0.7.1">
Run Code Online (Sandbox Code Playgroud)
我想只提取字符串0.7.1
你会建议什么工具?
我试过sed,awk,grep ......我不擅长任何一个.
编辑
什么语言/工具的模式如".+?" 和".*?" 应该尽可能返回最短的比赛?我确定我在某个地方看到了这个,但不记得在哪里.