跳转至内容
  • 版块
  • 标签
  • 热门
  • 用户
  • 群组
皮肤
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • 默认(Flatly)
  • 不使用皮肤
折叠

Odoo 中文社区

B

baialaps

@baialaps
关于
帖子
9
主题
4
群组
0
粉丝
0
关注
0

帖子

最新 最佳 有争议的

  • Web开发中怎么处理多参数
    B baialaps

    谢谢总监


  • Web开发中怎么处理多参数
    B baialaps

    请教一下, 在web开发中,只带一个参数的时候官方文档中是这样写:

    <br />@http.route(&#039;/say_hello&#039;, type=&quot;http&quot;) <br />	def say_hello(self, name): <br />		return &quot;&lt;h1&gt;Hello %s&lt;/h1&gt;&quot; % name <br />
    


    这样可以在say_hello?name=myname
    直接打印出参数来。

    但是如果我要传入多个参数的时候,要怎么写呢?

    希望得到各位的帮助! 谢谢


  • 请教openerp web controllers的参数问题
    B baialaps

    openerp 的web中,有代码如下:

    <br />class Home(openerpweb.Controller):<br />&nbsp; &nbsp; _cp_path = &#039;/&#039;<br /><br />&nbsp; &nbsp; @openerpweb.httprequest<br />&nbsp; &nbsp; def index(self, req, s_action=None, db=None, **kw):<br />&nbsp; &nbsp; &nbsp; &nbsp; db, redir = db_monodb_redirect(req)<br />&nbsp; &nbsp; &nbsp; &nbsp; if redir:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return redirect_with_hash(req, redir)<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; js = &quot;\n&nbsp; &nbsp; &nbsp; &nbsp; &quot;.join(&#039;&lt;script type=&quot;text/javascript&quot; src=&quot;%s&quot;&gt;&lt;/script&gt;&#039; % i for i in manifest_list(req, &#039;js&#039;, db=db))<br />&nbsp; &nbsp; &nbsp; &nbsp; css = &quot;\n&nbsp; &nbsp; &nbsp; &nbsp; &quot;.join(&#039;&lt;link rel=&quot;stylesheet&quot; href=&quot;%s&quot;&gt;&#039; % i for i in manifest_list(req, &#039;css&#039;, db=db))<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; r = html_template % {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#039;js&#039;: js,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#039;css&#039;: css,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#039;modules&#039;: simplejson.dumps(module_boot(req, db=db)),<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#039;init&#039;: &#039;var wc = new s.web.WebClient();wc.appendTo($(document.body));&#039;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; return r<br /><br />&nbsp; &nbsp; @openerpweb.httprequest<br />&nbsp; &nbsp; def login(self, req, db, login, key):<br />&nbsp; &nbsp; &nbsp; &nbsp; return login_and_redirect(req, db, login, key)<br /><br />
    


    请问要如何得到req中的数据?
    get和post中有什么区别?要如何获取?
    我使用mac没有能成功安装调试工具,麻烦有安装的童鞋帮一下忙,谢谢


  • Web开发中的参数
    B baialaps

    谢谢校长帮忙 ;D


  • Web开发中的参数
    B baialaps

    想开发oe的web, 但是不知道要怎么样查看req参数中的变量值,请指导一下,谢谢


  • [分享]buke 分享的一个关于自定义 widget 的例子.
    B baialaps

    哈哈,感觉buke && 感谢总监


  • OpenERP7.0暑期讲座 实录
    B baialaps

    不公开的吗? 😄


  • 在win7下安装oe7时无法选择postgresql安装
    B baialaps

    安装了一个openerp7之后删除,再安装的时候,就出现了标题所述的问题。
    经总监 校长 老七等支招,终于搞定

    步骤一:
    运行中输入: regedit注册表

    步骤二:
    点击编辑菜单下的查找 ,搜索postgresql

    步骤三:
    找到一个postgresql文件夹,直接删除

    ok了.再次感谢各位热心帮助


  • Java xml rpc 访问openerp的详细例子
    B baialaps

    哈,经典。 为很多android + openerp整合的人铺路了

  • 登录

  • 没有帐号? 注册

  • 登录或注册以进行搜索。
  • 第一个帖子
    最后一个帖子
0
  • 版块
  • 标签
  • 热门
  • 用户
  • 群组