如何在莲花多米诺骨牌的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
最满意答案
写如下:
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. ThenDir::chdir
Changes the current working directory of the process to the given string. Remember if you are already inC:/Sites/todo
, then onlyDir.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 => " ...
-
Ruby on Windows XP:如何更改SSL证书的目录(Ruby on Windows XP: How to change directory of SSL certificates)[2022-05-08]
像这样,但是你会因为覆盖常量而得到警告 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 ... -
从ruby脚本更改调用shell的当前工作目录(Change present working directory of a calling shell from a ruby script)[2023-08-12]
你可能会死在一个新的shell中,但是我很难理解这一切。 如果您的用户要编辑这些文件,那么我想他们要么保留它们,要么您计划使用修改后的文件。 在第一种情况下,将文件放在合理的位置,您不必担心用户找到它们(当前工作目录)。 在第二种情况下,为位于scratch目录中的用户生成子shell,并指示他们编辑文件。 当子shell退出时,您可以继续从同一个ruby程序处理文件。 You could die into a new shell that sits at your scratch dir, but I a ... -
Ruby代码中的更改目录(Ruby change directory in code)[2024-02-05]
始终为当前程序保留当前工作目录。 更改程序中的工作目录不会影响任何其他正在运行的程序,包括其父程序。 因此,当您删除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 ...