我使用命令启动PostgreSQL:
$ sudo /etc/init.d/postgresql start
Run Code Online (Sandbox Code Playgroud)
Pg没有启动.报告的错误是:
* Starting PostgreSQL 8.4 database server
* The PostgreSQL server failed to start. Please check the log output:
2010-01-21 22:10:00 PST FATAL: private key file "server.key" has group or world access
2010-01-21 22:10:00 PST DETAIL: File must be owned by the database user or root, must have no write permission for "group", and must have no permissions for "other".
Run Code Online (Sandbox Code Playgroud)
......当我尝试访问psql的postgres与用户:
$ sudo su postgres
$ psql
Run Code Online (Sandbox Code Playgroud)
它给了我一个错误:
could not connect …Run Code Online (Sandbox Code Playgroud) 我正在学习OpenERP开发,我遇到了一个问题,我认为应该是显而易见的.
我做了一个非常简单的模块,但我无法安装它.它一直在说
验证字段arch时发生ValidateError错误:View Architecture的XML无效!
这是我的模块:
init .py
import testmod
__openerp__.py
{
'name': "Test Module",
'description': "Basic example of a (future) web module",
'category': 'Hidden',
'depends': ['base'],
'data': [
'test_view.xml',
],
'installable': True,
'application': False,
'auto_install': False,
}
Run Code Online (Sandbox Code Playgroud)
testmod.py
from openerp.osv import fields, osv
class testmod_test(osv.Model):
_name = 'testmod.test'
_description = 'Test Model'
_columns = {
'test1': fields.char('Test 1', size=32, required=True, help='Test 1 help'),
'test2': fields.float('Test 2', help='Test 2 help'),
}
testmod_test()
Run Code Online (Sandbox Code Playgroud)
test_view.xml
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="testmod_test_form" model="ir.ui.view"> …Run Code Online (Sandbox Code Playgroud) 如何在OpenERP v7中进行调试?
在以前版本的OpenERP中,它很容易调试.但在最新版本中,调试起来很困难.
我创建了一个新的Groups,它是一个Personnel Group,但在View Metadata中,我创建的新Group没有XML ID,在哪里可以找到XML ID,或者在外部ID中添加新组的XML ID菜单我找不到ID.
我正在用rails 2.3.17,我已经用过fedex。
如何使用联邦快递验证送货地址?fedex api 是否有任何适当的文档来验证地址?
任何帮助表示赞赏。
谢谢
编辑
我已经使用了插件https://github.com/kdonovan/fedex
请看一下
我有两个清单,
l1 = [1,2,3,4,5,6]
l2 = [3,2]
Run Code Online (Sandbox Code Playgroud)
我想要的是删除l2中的列表l1的元素,因为我做了类似的事情,
for x in l1:
if x in l2:
l1.remove(x)
Run Code Online (Sandbox Code Playgroud)
它给出了类似的输出
[1, 3, 4, 5, 6]
Run Code Online (Sandbox Code Playgroud)
但输出应该是这样的
[1, 4, 5, 6]
Run Code Online (Sandbox Code Playgroud)
任何人都可以阐明这一点.
我需要使用XMLRPC从特定语言中获取odoo的翻译数据,默认情况下odoo使用默认语言发送数据,即英语
api.execute_kw(db, uid, pwd, 'res.country', 'search_read', [[]], {'fields': ['name']})
Run Code Online (Sandbox Code Playgroud)
如何为此请求添加上下文以使用特定的翻译语言.
我是 UPS api 的新手,我正在尝试向 UPS 调用 ShipmentConfirmRequest,这是我使用 python 发送到 wwwcie.ups.com/ups.app/xml/ShipConfirm 的 xml 格式。
<?xml version="1.0"?>
<AccessRequest xml:lang='en-US'>
<AccessLicenseNumber>NUMBER</AccessLicenseNumber>
<UserId>UUUUU</UserId>
<Password>PASSWORD</Password>
</AccessRequest>
<?xml version="1.0"?>
<ShipmentConfirmRequest>
<Request>
<TransactionReference>
<CustomerContext>00001</CustomerContext>
<XpciVersion>1.0001</XpciVersion>
</TransactionReference>
<RequestAction>ShipConfirm</RequestAction>
<RequestOption>nonvalidate</RequestOption>
</Request>
<Shipment>
<Description>00001</Description>
<!--InvoiceLineTotal>
<CurrencyCode>EUR</CurrencyCode>
<MonetaryValue>4887</MonetaryValue>
</InvoiceLineTotal-->
<Shipper>
<Name>HELICONIA</Name>
<AttentionName>HELICONIA</AttentionName>
<Address>
<AddressLine1></AddressLine1>
<AddressLine2></AddressLine2>
<AddressLine3></AddressLine3>
<City></City>
<StateProvinceCode></StateProvinceCode>
<CountryCode></CountryCode>
<PostalCode></PostalCode>
</Address>
<PhoneNumber></PhoneNumber>
<ShipperNumber>NUMBER</ShipperNumber>
<TaxIdentificationNumber></TaxIdentificationNumber>
<FaxNumber></FaxNumber>
<EMailAddress></EMailAddress>
</Shipper>
<ShipTo>
<CompanyName>Agriiolait</CompanyName>
<AttentionName></AttentionName>
<Address>
<AddressLine1>Agriiolait</AddressLine1>
<AddressLine2>69 rue de Chimay</AddressLine2>
<AddressLine3></AddressLine3>
<City>Wavre</City>
<StateProvinceCode></StateProvinceCode>
<CountryCode>BE</CountryCode>
<PostalCode></PostalCode>
</Address>
<PhoneNumber>+32 10 588 558</PhoneNumber>
<FaxNumber></FaxNumber>
<EMailAddress>info@agroiilait.com</EMailAddress>
<TaxIdentificationNumber></TaxIdentificationNumber>
<LocationID></LocationID>
</ShipTo> …Run Code Online (Sandbox Code Playgroud) 我是openerp framwork的初学者我想知道如何使用write()和create()方法,它的目的是什么?我已经阅读了openerp的文档,但我仍然没有得到它.
如何使用python制作我的Android应用程序.有没有办法使用python制作Android应用程序?