小编ych*_*che的帖子

PHP警告:PHP启动:第0行的Unknown中的库(可能不是PHP库)无效

想补充一下 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)

php php-extension

3
推荐指数
1
解决办法
1万
查看次数

如何在SugarCRM中克服错误40"访问被拒绝 - 您无权访问"?

以下是请求参数(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)

编辑

每当子查询格式错误时都会触发此错误,不一定是当一个子查询无法访问模块时,因此应该知道它.

api rest sugarcrm

2
推荐指数
1
解决办法
1981
查看次数

模块列表更新后,OpenERP自定义模块未显示

 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)

python openerp

2
推荐指数
1
解决办法
1650
查看次数

正则表达式捕获版本号

我有这样一条线

<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 ......我不擅长任何一个.

编辑

什么语言/工具的模式如".+?" 和".*?" 应该尽可能返回最短的比赛?我确定我在某个地方看到了这个,但不记得在哪里.

regex awk grep sed

1
推荐指数
1
解决办法
486
查看次数

标签 统计

api ×1

awk ×1

grep ×1

openerp ×1

php ×1

php-extension ×1

python ×1

regex ×1

rest ×1

sed ×1

sugarcrm ×1