首页 \ 问答 \ svn安装权限问题(svn setup permission issues)

svn安装权限问题(svn setup permission issues)

我在设置我的svn时遇到了麻烦。 我使用apt-get install subversion来安装软件。 默认的svn文件夹是/ home / svn /我将文件夹的所有权更改为管理员帐户(不是root)和颠覆用户组我设置。 我通过所有子文件夹递归地将文件夹权限设置为0760。

然而,无论何时我尝试连接到repo,我都会得到:“提交失败(详细信息如下):无法打开'/ home / svn / bftc / format'文件:Permission denied”。

我不知道什么是错的!


I'm having trouble setting up my svn. I used apt-get install subversion to install the software. The default svn folder was /home/svn/ I changed the ownership of the folder to an administrator account (not root) and a subversion user group I setup. I set the folder permissions to 0760 recursively through all the subfolders.

Yet whenever I try connecting to the repo I get this: "Commit failed (details follow): Can't open file '/home/svn/bftc/format': Permission denied".

I have no idea what's wrong!


原文:https://stackoverflow.com/questions/1704873
更新时间:2022-04-05 13:04

最满意答案

你必须处理两种情况:

  • 当所选日期更改时:使用onSelect事件更改按钮的title属性
  • 在初始渲染时:遗憾的是,日期选择器尚未实现窗口小部件工厂(因此没有create事件),您必须在窗口小部件初始化后手动更新标题属性。

不要忘记将选择器的默认日期设置为字段的初始值,否则默认选择的日期为“今天”

像这样的东西:

// as you have several instances, loops through them
$(".deadline_picker_on").each(function() {

    var dt = $(this);

    dt.datepicker({
        showOn: "button",
        buttonText: '',
        // set the default date to the value of the field
        defaultDate: dt.val(),
        duration: 100,
        dateFormat: 'yy-mm-dd',
        showOptions: {
            direction: 'right'
        },
        onSelect: function(dateText, inst) {
            // on data selection, change the title attribute of the button
            $(this).next().attr('title', dateText);
        }
    })
    // get the button (next element)
    .next()
    // set the title attribute with the formatted initial date from the picker
    .attr('title', $.datepicker.formatDate('yy-mm-dd', dt.datepicker('getDate')));
});
​

You have to handle two cases:

  • When the selected date changes: use the onSelect event to change the button's title attribute
  • On initial rendering: unfortunately, the datepicker does not implement the widget factory (yet) so there is no create event, you'll have to update the title attribute manually after the widget has initialized.

Don't forget to set the default date of the picker to the initial value of the field, otherwise the default selected date is "today"

Something like this:

// as you have several instances, loops through them
$(".deadline_picker_on").each(function() {

    var dt = $(this);

    dt.datepicker({
        showOn: "button",
        buttonText: '',
        // set the default date to the value of the field
        defaultDate: dt.val(),
        duration: 100,
        dateFormat: 'yy-mm-dd',
        showOptions: {
            direction: 'right'
        },
        onSelect: function(dateText, inst) {
            // on data selection, change the title attribute of the button
            $(this).next().attr('title', dateText);
        }
    })
    // get the button (next element)
    .next()
    // set the title attribute with the formatted initial date from the picker
    .attr('title', $.datepicker.formatDate('yy-mm-dd', dt.datepicker('getDate')));
});
​

相关问答

更多
  • 你可以尝试这样的事情: d = $("#myDatepicker1").datepicker("getDate"); $("#myDatepicker2").datepicker("setDate", new Date(d.getFullYear()+1,d.getMonth(),d.getDate())); 编辑: 这是增加一年的解决方案,只是为了确保这是缺少的权利?! 关闭它的工作正常吗?! You can try something like that: d = $("#myDatepicker1" ...
  • 找到问题的修复程序,也可能使用较少的代码。 以为我会分享,如果有人卡住,他们可以使用它。