首页 \ 问答 \ 如何在莲花多米诺骨牌的webcontent下公开访问文件(How to give public access to files under webcontent in lotus domino)

如何在莲花多米诺骨牌的webcontent下公开访问文件(How to give public access to files under webcontent in lotus domino)

我有一个XPage的多米诺骨牌应用程序,我想公开。 所以,我在ACL中设置了“存入者级别”的“默认”级别,并且读取公共文档选项,以便公开它。

当我想要使用图像资源时,我会转到其属性安全选项卡,并启用“可供公共访问用户”复选框。

现在,我想在我的应用程序中使用font-awesome,并且在webcontent文件夹下有其子文件夹和文件的font-awesome文件夹。

我如何让他们公开? (在非公开的应用程序中,font-awesome通常使用webcontent文件夹下的font-awesome文件夹)


I have a domino application with XPages that i want to be public. So, i set in the ACL the "Default" to Depositor level with read public documents option, so as to make it public.

When i want to use an image resource i go to its properties security tab and i enable the "available to public access users" checkbox.

Now, I want to use font-awesome in my application and i have font-awesome's folder with its subfolders and files under webcontent folder.

How can i make them public? (in a non-public app, font-awesome works normally with font-awesome's folder under webcontent folder)


原文:https://stackoverflow.com/questions/31520079
更新时间:2023-03-10 13:03

最满意答案

写如下:

Dir.chdir(Dir.pwd+"/app/assets")

Dir::pwd 以字符串形式返回此进程的当前工作目录的路径。 然后Dir::chdir 将进程的当前工作目录更改为给定的字符串。 请记住,如果您已经在C:/Sites/todo ,则只有Dir.chdir("app/assets")可以使用。

一个例子来说明这一点:

irb(main):001:0> Dir.chdir('C:\Users\rakshiar')
=> 0
irb(main):002:0> Dir.pwd
=> "C:/Users/rakshiar"
irb(main):003:0> Dir.chdir('userdata\Tax form Demo')
=> 0
irb(main):004:0> Dir.pwd
=> "C:/Users/rakshiar/userdata/Tax form Demo"
irb(main):005:0>

Write as below :

Dir.chdir(Dir.pwd+"/app/assets")

Dir::pwd Returns the path to the current working directory of this process as a string. Then Dir::chdir Changes the current working directory of the process to the given string. Remember if you are already in C:/Sites/todo, then only Dir.chdir("app/assets") will work.

One example to illustrate this :

irb(main):001:0> Dir.chdir('C:\Users\rakshiar')
=> 0
irb(main):002:0> Dir.pwd
=> "C:/Users/rakshiar"
irb(main):003:0> Dir.chdir('userdata\Tax form Demo')
=> 0
irb(main):004:0> Dir.pwd
=> "C:/Users/rakshiar/userdata/Tax form Demo"
irb(main):005:0>

相关问答

更多
  • 看起来您正在尝试两次更改目录,这会导致错误发生。 def pr_cartella @cartella=ARGV[0] Dir.mkdir @cartella # This makes the directory if Dir.exist? @cartella # Assuming the mkdir passed, the always succeeds puts "bene la cartella è stata creata" Dir.chdir @cartella # T ...
  • 使用Dir.chdir : Dir.chdir "my_app" Use Dir.chdir: Dir.chdir "my_app"
  • fileformats选项是全局的 。 但是, fileformat选项对每个缓冲区都是本地的。 使用以下命令,您可以检查这些设置的方式: :verbose set ff? ffs? 在我的.vimrc我设置了以下内容: set fileformats=unix,dos,mac 它只是工作。 The fileformats option is global. The fileformat option however is local to each buffer. With the following ...
  • 不,这是不可能的。 实际上,没有子进程可以更改其父进程的当前工作目录。 当您从命令shell执行脚本(或任何程序)时,您实际上正在执行“fork / exec”对 ,这意味着您创建了一个“子进程”,它在很多方面与shell“父进程”分开。 孩子可以对自己的环境进行更改,但不能(通常)更改父环境。 No, it is not possible. In fact, no child process can change the current working directory of its parent pr ...
  • 写如下: Dir.chdir(Dir.pwd+"/app/assets") Dir::pwd 以字符串形式返回此进程的当前工作目录的路径。 然后Dir::chdir 将进程的当前工作目录更改为给定的字符串。 请记住,如果您已经在C:/Sites/todo ,则只有Dir.chdir("app/assets")可以使用。 一个例子来说明这一点: irb(main):001:0> Dir.chdir('C:\Users\rakshiar') => 0 irb(main):002:0> Dir.pwd => " ...
  • 像这样,但是你会因为覆盖常量而得到警告 OpenSSL::X509::DEFAULT_CERT_FILE = 'C:/Users/Gebruiker/cert.pem' puts OpenSSL::X509::DEFAULT_CERT_FILE 或者像这样 ENV['SSL_CERT_FILE']="C:/users/username/cert.pem" #make sure a correct certificate is there 在这两种情况下都是如此 http.use_ssl = true ...
  • 一般来说, fopen的语法如下: fopen("path/to/file", ...) 如果只给出了名称,则假定它与可执行文件位于同一文件夹中。 所以,如果你想在另一个文件夹中做东西,你应该把这个文件夹的路径放在这样: fp = fopen("/a.txt", "w"); In general fopen is syntaxed like this: fopen("path/to/file", ...) If only a name is given, then it is assumed t ...
  • 你可能会死在一个新的shell中,但是我很难理解这一切。 如果您的用户要编辑这些文件,那么我想他们要么保留它们,要么您计划使用修改后的文件。 在第一种情况下,将文件放在合理的位置,您不必担心用户找到它们(当前工作目录)。 在第二种情况下,为位于scratch目录中的用户生成子shell,并指示他们编辑文件。 当子shell退出时,您可以继续从同一个ruby程序处理文件。 You could die into a new shell that sits at your scratch dir, but I a ...
  • 始终为当前程序保留当前工作目录。 更改程序中的工作目录不会影响任何其他正在运行的程序,包括其父程序。 因此,当您删除Ruby脚本中的目录并将Ruby进程的工作目录更改为一级时,这不会影响已启动Ruby脚本的shell进程。 The current working directory is always kept for the current program only. Changing the working directory in a program won't affect any other ru ...
  • 尝试: Dir.chdir方法。 参考: http : //www.ruby-doc.org/core-2.1.0/Dir.html#method-c-chdir Dir.chdir(directory) do run("bower install", capture: true, verbose: false) end 上面的示例代码将更改为directory变量表示的directory ,然后运行您传递给此块的任何命令。 try: Dir.chdir method. Reference: http ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)