问题标签 [status]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
2097 浏览

xml - 在哪里可以获得“svn status --xml”的所有可能的标签/值?

svn status --xml打印所有文件状态,它比解析svn status输出更有用。

  1. XML 文件中是否有所有可能的标签/部分及其值的列表?我可以阅读 SVN 源代码,但它耗时且方法肮脏。

  2. 是否也可以找到从svn status --xml值到svn status状态字符的干净映射?

0 投票
3 回答
11904 浏览

php - Wordpress 创建一个新的帖子状态?

在 Wordpress 中,您会获得默认的帖子状态:已发布、草稿和待审核。是否可以通过活动主题的 function.php 文件注册来添加更多帖子类型?

也可以编辑 Publish Meta Box 的标签吗?我提交的内容真的不是发布...

还想补充一下,我只希望在我所做的自定义帖子类型中进行这些更改。

亲切的问候

斯科特

0 投票
4 回答
43454 浏览

python - 进程退出状态 3 是什么意思?

我已经3在几个重启进程的python 脚本中看到了退出状态的使用。据我所知,该约定只是关于Unix/Linux 上的0“而不是”。0

是否有定义其他值的约定,例如3.

0 投票
3 回答
366 浏览

php - 方法返回状态:bool、string、const... (PHP)

这个问题:Best way to return status flag and message from a method in Java与我的类似,但是我会用PHP而不是Java(在这里可能会略有不同)。

问题:

有一种方法可以产生成功的结果(这可能会改变为更成功的结果)或“有问题的”结果。后者意味着操作失败,但知道原因也很重要。想象一个 Authentication 类的方法:

成功和失败返回true和false是微不足道的,但是如何报告失败的原因呢?

可能的解决方案:

  • 返回true或false并编写另一个方法(getStatus())来获取具体问题:这对我来说感觉有点尴尬
  • 使用例外:因为禁止用户并不是例外(例外是如果用户在打字时死亡,正如本网站上的另一位作者所指出的那样)在这些情况下使用例外是完全错误的(但是如果查询失败,方法可能会引发数据库异常)
  • 成功时返回 true,失败时返回字符串,并带有指示问题的错误代码:使用 PHP,可以通过这种方式获得干净的块,如下所示:

    /li>
  • 返回一个一般的状态(状态)对象:非常优雅的解决方案,也是面向未来的(如果状态的数量变化或稍后应该返回额外的数据没有问题),也许是最好的一个:

    /li>
  • 上述两种中的任何一种,但不是纯字符串而是类常量:

    这样就没有必要在文档中解释错误代码,并且也会感觉更“自然”(至少对我而言)。

问题:

您会使用什么(上述解决方案或任何其他解决方案)?从长远来看,什么被证明是好方法?

先感谢您!

0 投票
2 回答
577 浏览

python - 如何从 IDManager 获取下载进度信息到 python?

我最近在做一个项目,以便在我离开时远程获取下载进度信息。我用谷歌搜索了一下,但我找不到任何有用的信息。在这个问题上,我正在使用 Internet 下载管理器。请帮助:/我感谢任何关于使用 python 制作软件的建议,但 C 也可以。如果有解决方案 替代文字

0 投票
1 回答
1202 浏览

c# - 如何知道我的应用程序是在后台还是前台运行?

我正在使用 C sharp 制作 Windows Mobile 6.5 应用程序。

在应用程序中,我在一个案例中打开了默认浏览器。当我打开浏览器时,应用程序仍在后台运行。但我希望应用程序没有运行,当用户返回应用程序时,应用程序再次运行。

所以,我应该知道应用程序在后台或前台运行的状态。这怎么知道???

如果有人知道,请回复我。提前致谢。

0 投票
1 回答
75 浏览

user-interface - Critique for an approach to send status messages to the UI?

We are writing an application hosted in Excel 2002 (groan). One requirement is that, during certain operations, we submit progress messages to the user from the business layer. However, these messages can be displayed at multiple sites, one being the Excel status bar, and another being a label on a form, and possibly others in the future. In some situations, we desire to only post the message to the Excel status bar, in others, just the label on the form, and in others, both.

Currently, we have a message "hub" to which business logic can post status messages. The Excel status bar and also the form label both observe this hub, and if any messages are posted, both intercept the messages and display them- similar to mass mailings via a post office, where the sender is unconcerned with the destination.

First: Is this a generally accepted pattern?

Second: Would it be prudent for the business layer to have knowledge of the destination to which it needs to post a message? Even though the business layer is relatively decoupled from the UI through the use of the post office, what is your opinion of imbuing the business layer with, essentially, address/target/destination information?

Thanks.

0 投票
11 回答
6220 浏览

php - PHP system() - 返回状态始终为 0

我需要运行以下脚本。

现在我的问题:在我的 Windows 系统上script_b.phpint(1)预期运行。在我们的 Unix 服务器上,我总是得到int(0). 是什么让我无法检查,如果在script_a.php.

有谁知道这个问题以及如何解决它?

0 投票
2 回答
11118 浏览

php - Magento 订单状态与状态

在 Magento 中找出订单“状态”与“状态”之间的区别时,我玩得很开心。

我们设置了一个自定义流程来将订单发送给第三方履行,我们还有一些自定义逻辑来检查潜在的欺诈订单并将它们标记为由管理员用户手动批准发货以进行履行。

我在模块配置中添加了“待发货”状态和“可以发货”状态,如下所示:

...而且我使用内置的“可疑欺诈”状态来解决所有这些问题。问题是“可疑欺诈”状态被分组在“付款审查”状态下,如果订单被标记为“可疑欺诈”或“付款审查”,管理员不允许您选择除此之外的任何其他状态那些 2. 理想情况下,“OK To Ship”选项将可用,但在“Processing”的“state”下分组。在这里,我在“payment_review”状态下有“OK To Ship”,它使该选项可用,但是当我拉下订单并检查 canShip() 时,它失败了,因为它是“Payment Review”状态。

因此,如果有人可以帮助我了解状态/状态如何在 Magento 中工作以及如何最好地配置这种情况,我将不胜感激。

0 投票
1 回答
519 浏览

php - 在鼠标悬停时隐藏状态链接(例如) 如何?

既然没人知道,就别问了。