以编程方式将约会添加到 Oracle Calendar 10

发布于 2024-08-10 06:03:30 字数 804 浏览 1 评论 0原文

我正在尝试将 Web 日程安排设备与我组织的日历系统 Oracle Calendar 10 集成。召开会议只需解析 UNIPOUTR 输出即可,我以为我可以通过 UNICPINR 召开会议,但我'我遇到了一些奇怪的错误。

基本上,我从 UNIPOUTR 获取房间描述,附加新会议的数据,写入 /usr/tmp,然后尝试导入生成的文件。我创建了一个测试资源来尝试一些东西,但有些事情变得奇怪。以下是来自 UNICPINR 的资源描述:

{
F Unison Export File
V A.02.53
E FALSE
X
R a Test Resource
R b
R c 10
R d
R e
R f
R g
I
P 4 480 1080 1 30 190 2 1 60 0 0 10
N 0
}

但是尝试使用它作为导入文件的基础会导致相当奇怪的错误:

"R=Test Resource/N=Test Resou/CA=10/LOC=10/PHONE=10/EXT=10/FAX=10/PSW=g" 
does not exist

尝试使用 UNICPINR 上的 -ls 标志获取资源的句柄,正如

unicpinr -ls /usr/tmp/meeting.test

吐出的那样

unicpinr: file pattern not found - First

在消息后 如何使用该实用程序。

是否有人对这个系统足够熟悉,可以告诉我这里出了什么问题,或者更好地建议另一种方式来召开新会议?

I'm trying to integrate a Web scheduling appliance with my organization's calendar system, Oracle Calendar 10. Getting meetings out is just a matter of parsing the UNICPOUTR output, and I thought I had a handle on getting meetings in with UNICPINR, but I'm getting a couple of odd errors.

Basically I grab the room description from UNICPOUTR, append the data for the new meeting, write out to /usr/tmp, and try to import the resulting file. I created a test resource to try things out, but something's gone odd. Here's the resource description from UNICPOUTR:

{
F Unison Export File
V A.02.53
E FALSE
X
R a Test Resource
R b
R c 10
R d
R e
R f
R g
I
P 4 480 1080 1 30 190 2 1 60 0 0 10
N 0
}

But trying to use this as a basis for an import file results in the rather odd error:

"R=Test Resource/N=Test Resou/CA=10/LOC=10/PHONE=10/EXT=10/FAX=10/PSW=g" 
does not exist

Trying to get a handle on the resource with the -ls flag on UNICPINR, as

unicpinr -ls /usr/tmp/meeting.test

just spits out

unicpinr: file pattern not found - First

after a message on how to use the utility.

Is anybody out there familiar enough with the system that they can tell me what's going wrong here, or better yet suggest an alternate way to get new meetings in?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不念旧人 2024-08-17 06:03:30

好吧,经过一天的思考,我想出了这个解决方案。这里工作中存在一些问题(尽管我还没有调查 -ls )。

首先:虽然 UNICOUTR 将为资源描述中可接受的空值生成空行,但 UNICPINR 出于某种原因会假设空行意味着使用前一行输入中的值。

其次:UNICPINR 似乎无法搜索除资源名称以外的任何内容。

解决方案:取出资源描述块,过滤掉以X(房间管理员)、I(房间密码)、“R b”到“R g”(各种资源标识符)开头的行。 UNICPINR 可以使用“R a”进行搜索。

然而,由此产生的导入使所有会议都认为它们是由房间本身创建 (M) 和拥有 (W) 的,但原始创建者/所有者位于注释部分,开头为“事件创建者:”和“事件所有者:” “,这样我就可以处理这个问题了。

这可能是一个只有我会遇到的问题,但留下解决方案是有责任的,无论它多么笨拙,以防其他人在那里盲目摸索。所以就是这样。

Okay, so after spending a day chewing on it, I've come up with this solution. There were a couple problems at work here (notwithstanding the -ls which I haven't investigated).

First: while UNICPOUTR will produce blank lines for acceptable nulls in the resource description, UNICPINR will for some reason assume that a blank line means to use the value from the previous line of input.

Second: UNICPINR doesn't seem to be able to search on anything other than the resource name.

Solution: take the resource description block and filter out the lines that start with X (room administrator), I (room password), and "R b" through "R g" (various resource identifiers). UNICPINR can run a search with "R a" just fine.

The resulting import, however, leaves all the meetings thinking they were created (M) and owned (W) by the room itself, but the original creator/owner are in the comments section prefaced by "Event creator: " and "Event owner: ", so I can work with that.

This may be a problem that only I will ever face, but it's responsible to leave the solution, however kludgy, in case someone else is out there groping about blindly. So here it is.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文